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.109 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.108 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.107 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.106 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.105 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.104 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.103 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.102 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.101 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.100 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.99 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.98 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.97 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.96 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.95 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.94 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.93 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.92 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.91 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.90 tracks/ocaml/exercises/acronym/test.ml