Sha256: 353e8fe896d9efbad3df76bac1d7b08091dfaa20b84a46176d8e03ba43f3a93a

Contents?: true

Size: 614 Bytes

Versions: 149

Compression:

Stored size: 614 Bytes

Contents

open Core
open OUnit2
open Say

let ae exp got _ctx = assert_equal ~printer:(Option.value ~default:"None") exp got

let tests = [
(* TEST
   "$description" >:: (
      ae $expected
        (in_english $input));
   END TEST *)
  "all numbers from 1 to 10_000 can be spelt">::(fun _ ->
      assert_bool "range test" (Sequence.range 0 10_000
                                |> Sequence.map ~f:(fun n -> Int64.of_int n |> in_english)
                                |> Sequence.filter ~f:(Option.is_none)
                                |> Sequence.is_empty));
]

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

Version data entries

149 entries across 149 versions & 1 rubygems

Version Path
trackler-2.2.1.108 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.107 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.106 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.105 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.104 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.103 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.102 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.101 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.100 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.99 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.98 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.97 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.96 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.95 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.94 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.93 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.92 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.91 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.90 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.89 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml