Sha256: e9cf8d434b23664028189fb53668fb808bae177f3136159fc37cfa0474ebc7ec

Contents?: true

Size: 433 Bytes

Versions: 63

Compression:

Stored size: 433 Bytes

Contents

open Core_kernel
open OUnit2
open Word_count

module SMap = String.Map

let ae exp got _test_ctxt =
  let printer m = SMap.sexp_of_t Int.sexp_of_t m |> Sexp.to_string_hum ~indent:1 in
  assert_equal (SMap.of_alist_exn exp) got ~cmp:(SMap.equal (=)) ~printer

let tests = [
(* TEST
   "$description" >::
      ae $expected
         (word_count $sentence);
   END TEST *)
]

let () =
  run_test_tt_main ("word_count tests" >::: tests)

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/ocaml/tools/test-generator/templates/ocaml/word-count/test.ml
trackler-2.2.1.118 tracks/ocaml/tools/test-generator/templates/ocaml/word-count/test.ml
trackler-2.2.1.117 tracks/ocaml/tools/test-generator/templates/ocaml/word-count/test.ml