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.159 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.158 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.157 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.156 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.155 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.154 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.153 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.152 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.151 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.150 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.149 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.148 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.147 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.146 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.145 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.144 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.143 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.142 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.141 tracks/elisp/exercises/acronym/acronym-test.el
trackler-2.2.1.140 tracks/elisp/exercises/acronym/acronym-test.el