Sha256: a171457b092ede8b2bb7f8d46ab835a857802ac8b63eff728a3de3e1a5baec01

Contents?: true

Size: 615 Bytes

Versions: 63

Compression:

Stored size: 615 Bytes

Contents

open Base
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 $number));
   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

63 entries across 63 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.179 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.178 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.177 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.176 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.175 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.174 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.173 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.172 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.171 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.170 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.169 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.167 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.166 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.165 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.164 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.163 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.162 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.161 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml
trackler-2.2.1.160 tracks/ocaml/tools/test-generator/templates/ocaml/say/test.ml