Sha256: 9c786a9502da00dbe1c25a3c03fc3c570f8d0647ad5e3491d3c11372dff490d5
Contents?: true
Size: 485 Bytes
Versions: 396
Compression:
Stored size: 485 Bytes
Contents
;;; leap-test.el --- Tests for Leap exercise (exercism) ;;; Commentary: ;;; Code: (load-file "leap.el") (ert-deftest vanilla-leap-year () (should (leap-year-p 1996))) (ert-deftest any-old-year () (should-not (leap-year-p 1997))) (ert-deftest non-leap-even-year () (should-not (leap-year-p 1997))) (ert-deftest century () (should-not (leap-year-p 1900))) (ert-deftest exceptional-century () (should (leap-year-p 2000))) (provide 'leap-test) ;;; leap-test.el ends here
Version data entries
396 entries across 396 versions & 1 rubygems