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.89 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.88 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.87 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.86 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.85 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.84 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.83 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.82 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.81 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.80 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.79 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.78 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.77 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.76 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.75 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.74 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.73 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.72 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.71 tracks/ocaml/exercises/acronym/test.ml
trackler-2.2.1.70 tracks/ocaml/exercises/acronym/test.ml