Sha256: eba1943ec7a35aad1911d07a90b0c3acb4ef555980077f996d06aef9ae65900d

Contents?: true

Size: 562 Bytes

Versions: 149

Compression:

Stored size: 562 Bytes

Contents

open Core
open OUnit2
open Prime_factors

(* Assert Equals *)
let ae exp got _test_ctxt =
  let printer = List.to_string ~f:Int64.to_string in
  assert_equal exp got ~printer

let to_int64s = List.map ~f:Int64.of_int

(* 64 bits integers are needed for the last number.
 *
 * If you happen to use a 64 bits machine normal ints would do as well, but this
 * works for everybody.
 *)
let tests = [
(* TEST
   "$description" >::
      ae (to_int64s $expected) (factors_of $(input)L);
   END TEST *)
]

let () =
  run_test_tt_main ("prime-factors 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/prime-factors/test.ml
trackler-2.2.1.107 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.106 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.105 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.104 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.103 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.102 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.101 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.100 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.99 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.98 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.97 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.96 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.95 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.94 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.93 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.92 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.91 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.90 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml
trackler-2.2.1.89 tracks/ocaml/tools/test-generator/templates/ocaml/prime-factors/test.ml