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.159 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.158 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.157 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.156 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.155 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.154 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.153 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.152 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.151 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.150 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.149 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.148 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.147 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.146 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.145 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.144 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.143 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.142 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.141 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml
trackler-2.2.1.140 tracks/ocaml/tools/test-generator/templates/ocaml/run-length-encoding/test.ml