Sha256: def6bb6f3ee26238c6b0882e118549416e2916401d168368f93c5b6e304a4f6c

Contents?: true

Size: 427 Bytes

Versions: 91

Compression:

Stored size: 427 Bytes

Contents

open Core.Std
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 $input);
   END TEST *)
]

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

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
trackler-2.1.0.21 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.20 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.19 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.18 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.17 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.16 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.15 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.14 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.13 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.12 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.11 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.10 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.9 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.8 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.7 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.6 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.5 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.4 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.3 tracks/ocaml/tools/test-generator/templates/word-count/template.ml
trackler-2.1.0.2 tracks/ocaml/tools/test-generator/templates/word-count/template.ml