exercism

Exercism solutions.
git clone git://code.dwrz.net/exercism
Log | Files | Refs

two-fer-test.el (490B)


      1 ;;; two-fer-test.el --- Tests for Two-fer (exercism)
      2 
      3 ;;; Commentary:
      4 ;; Common test data version: 1.2.0 4fc1acb
      5 
      6 ;;; Code:
      7 
      8 (load-file "two-fer.el")
      9 
     10 (ert-deftest no-name-given ()
     11   (should (equal (two-fer) "One for you, one for me.")))
     12 
     13 (ert-deftest a-name-given ()
     14   (should (equal (two-fer "Alice") "One for Alice, one for me.")))
     15 
     16 (ert-deftest another-name-given ()
     17   (should (equal (two-fer "Bob") "One for Bob, one for me.")))
     18 
     19 (provide 'two-fer-test)
     20 
     21 ;;; two-fer-test.el ends here