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.29 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.28 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.27 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.26 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.25 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.24 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.23 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.22 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.21 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.20 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.19 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.18 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.17 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.16 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.15 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.14 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.13 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.12 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.11 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.10 tracks/ocaml/exercises/acronym/test.ml