Sha256: ebed3e7f13c2b0a3102a10ef0b5dacb66d41ba50117da8aae30df84139bbd0e9

Contents?: true

Size: 666 Bytes

Versions: 150

Compression:

Stored size: 666 Bytes

Contents

(* Test/exercise version: "1.1.0" *)

open Core
open OUnit2
open Acronym

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

let tests = [
  "basic" >::
    ae "PNG" (acronym "Portable Network Graphics");
  "lowercase words" >::
    ae "ROR" (acronym "Ruby on Rails");
  "punctuation" >::
    ae "FIFO" (acronym "First In, First Out");
  "all caps words" >::
    ae "PHP" (acronym "PHP: Hypertext Preprocessor");
  "non-acronym all caps word" >::
    ae "GIMP" (acronym "GNU Image Manipulation Program");
  "hyphenated" >::
    ae "CMOS" (acronym "Complementary metal-oxide semiconductor");
]

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

Version data entries

150 entries across 150 versions & 1 rubygems

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