Created
January 10, 2012 15:39
-
-
Save syohex/1589679 to your computer and use it in GitHub Desktop.
sample of el-test-more
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syohei@gretsch:% prove -v --exec='emacs -Q --script' sample.el | |
sample.el .. | |
1..3 | |
ok 1 - string type test | |
ok 2 - add test | |
ok 3 - matching test test | |
ok | |
All tests successful. | |
Files=1, Tests=3, 0 wallclock secs ( 0.01 usr 0.00 sys + 0.04 cusr 0.00 csys = 0.05 CPU) | |
Result: PASS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-to-list 'load-path ".") | |
(require 'test-more) | |
(test-more:import) | |
(plan 3) | |
(ok (typep "test-more" 'string) "string type test") | |
(is (+ 1 1) 2 "add test") | |
(like "987" "^[0-9]+$" "matching test test") | |
(finalize) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment