Sha256: c5d020f6c423f71b159898b991c681687aaeef5b672b4548a157582e15dda8af

Contents?: true

Size: 383 Bytes

Versions: 80

Compression:

Stored size: 383 Bytes

Contents

open Core.Std
open OUnit2
open Hello_world

let ae exp got _test_ctxt = assert_equal ~printer:String.to_string exp got

let tests = [
     "no name" >:: ae "Hello, World!" (greet None);
     "sample name" >:: ae "Hello, Alice!" (greet (Some "Alice"));
     "other sample name" >:: ae "Hello, Bob!" (greet (Some "Bob"));
]

let () =
  run_test_tt_main ("Hello World tests" >::: tests)

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
trackler-2.0.6.6 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.6.5 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.6.4 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.6.3 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.6.2 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.6.1 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.6.0 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.5.18 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.5.17 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.5.16 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.5.15 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.5.14 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.5.13 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.5.12 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.5.11 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.5.10 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.5.9 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.5.8 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.5.7 tracks/ocaml/exercises/hello-world/test.ml
trackler-2.0.5.6 tracks/ocaml/exercises/hello-world/test.ml