Sha256: aacc93dbde3e845cc17b0e807b1c014552e87b5976f2956724f1fc00459b920e

Contents?: true

Size: 728 Bytes

Versions: 151

Compression:

Stored size: 728 Bytes

Contents

open Core
open OUnit2
open Hexadecimal

let ae exp got _test_ctxt = assert_equal exp got

let tests = ["1 to 1"    >:: ae 1 (to_int "1");
             "c to 12"   >:: ae 12 (to_int "c");
             "10 to 16"  >:: ae 16 (to_int "10");
             "af to 175" >:: ae 175 (to_int "af");
             "100 to 256" >:: ae 256 (to_int "100");
             "19ace to 105166" >:: ae 105166 (to_int "19ace");
             "carrot to 0" >:: ae 0 (to_int "carrot");
             "000000 to 0" >:: ae 0 (to_int "000000");
             "ffffff to 16777215" >:: ae 16777215 (to_int "ffffff");
             "ffff00 to 16776960" >:: ae 16776960 (to_int "ffff00");
            ]

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

Version data entries

151 entries across 151 versions & 1 rubygems

Version Path
trackler-2.1.0.53 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.52 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.51 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.50 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.49 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.48 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.47 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.46 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.45 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.44 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.43 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.42 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.41 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.40 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.39 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.38 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.37 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.36 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.34 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.1.0.33 tracks/ocaml/exercises/hexadecimal/test.ml