Sha256: 26f06a76d162bb2a76c24f17a1af2dbb47d2528c0fcbf68c08e92dd4d9db7086

Contents?: true

Size: 760 Bytes

Versions: 63

Compression:

Stored size: 760 Bytes

Contents

open Base
open OUnit2
open Run_length_encoding

let ae exp got _test_ctxt = assert_equal exp got ~printer:Fn.id

let (* SUITE run-length_encode_a_string *)encode_tests = [
(* TEST
   "$description" >::
     ae $expected (encode $string);
   END TEST *)
]
(* END SUITE *)

let (* SUITE run-length_decode_a_string *)decode_tests = [
(* TEST
   "$description" >::
     ae $expected (decode $string);
   END TEST *)
]
(* END SUITE *)

let (* SUITE encode_and_then_decode *)encode_and_then_decode_tests = [
(* TEST
   "$description" >::
     ae $expected (encode $string |> decode);
   END TEST *)
]
(* END SUITE *)

let () =
  run_test_tt_main (
    "run length encoding tests" >:::
      List.concat [encode_tests; decode_tests; encode_and_then_decode_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/run-length-encoding/test.ml
trackler-2.2.1.179 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.178 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.177 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.176 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.175 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.174 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.173 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.172 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.171 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.170 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.169 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.167 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.166 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.165 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.164 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.163 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.162 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.161 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.160 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml