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.2.1.110 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.109 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.108 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.107 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.106 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.105 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.104 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.103 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.102 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.101 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.100 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.99 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.98 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.97 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.96 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.95 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.94 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.93 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.92 tracks/ocaml/exercises/hexadecimal/test.ml
trackler-2.2.1.91 tracks/ocaml/exercises/hexadecimal/test.ml