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.2.1.49 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.48 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.47 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.46 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.45 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.44 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.43 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.42 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.41 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.40 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.39 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.38 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.37 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.36 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.35 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.34 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.33 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.32 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.31 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.30 tracks/ocaml/exercises/acronym/test.ml