Sha256: d8362424d811e97b6a6141bbebbb33d2f8631ec598846163914c74223e390b24

Contents?: true

Size: 739 Bytes

Versions: 92

Compression:

Stored size: 739 Bytes

Contents

;;; acronym-test.el --- Tests for Acronym (exercism)

;;; Commentary:

;;; Code

(load-file "acronym.el")

(ert-deftest basic ()
  (should (equal "PNG" (acronym "Portable Network Graphics"))))

(ert-deftest lowercase-words ()
  (should (equal "ROR" (acronym "Ruby on Rails"))))

(ert-deftest punctuation ()
  (should (equal "FIFO" (acronym "First In, First Out"))))

(ert-deftest all-caps-words ()
  (should (equal "PHP" (acronym "PHP: Hypertext Preprocessor"))))

(ert-deftest non-acronym-all-caps-word ()
  (should (equal "GIMP" (acronym "GNU Image Manipulation Program"))))

(ert-deftest hyphenated ()
  (should (equal "CMOS" (acronym "Complementary metal-oxide semiconductor"))))

(provide 'acronym-test)
;;; acronym-test.el ends here

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.179 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.178 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.177 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.176 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.175 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.174 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.173 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.172 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.171 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.170 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.169 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.167 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.166 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.165 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.164 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.163 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.162 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.161 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.160 tracks/elisp/exercises/acronym/acronym-test.el