Sha256: 29fb2cc652a9377f885e22212207934e41af2782b46e08f01844e294f103b3d4

Contents?: true

Size: 612 Bytes

Versions: 81

Compression:

Stored size: 612 Bytes

Contents

open OUnit
open Palindrome_products

let show_result printer = function
| Error e -> "Error " ^ e
| Ok a -> "Ok " ^ printer a

let eq_results eq x y = match (x, y) with
| (Error e1, Error e2) -> String.equal e1 e2
| (Ok x, Ok y) -> eq x y
| _ -> false

let ae exp got _test_ctxt = 
  assert_equal ~printer:(show_result show_palindrome_products) ~cmp:(eq_results equal_palindrome_products) exp got

let tests = [
(* TEST
   "$description" >::
      ae ($expected)
         ($property ~min:$input_min ~max:$input_max);
   END TEST *)
]

let () =
  ignore @@ run_test_tt_main ("palindrome product tests" >::: tests)

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
trackler-2.2.1.48 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.47 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.46 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.45 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.44 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.43 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.42 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.41 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.40 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.39 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.38 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.37 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.36 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.35 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.34 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.33 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.32 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.31 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.30 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml
trackler-2.2.1.29 tracks/ocaml/tools/test-generator/templates/ocaml/palindrome-products/test.ml