[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 7a713ac0b7 010/472: Add UTs again
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 7a713ac0b7 010/472: Add UTs again |
Date: |
Thu, 6 Jan 2022 21:59:01 -0500 (EST) |
branch: elpa/pacmacs
commit 7a713ac0b7c80ea8a39af1bf747fc8a40e895d89
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Add UTs again
---
test/pacman-test.el | 6 ++++++
test/test-helper.el | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/test/pacman-test.el b/test/pacman-test.el
new file mode 100644
index 0000000000..b14ff48281
--- /dev/null
+++ b/test/pacman-test.el
@@ -0,0 +1,6 @@
+(ert-deftest pacman-anim-get-frame-test ()
+ (let ((anim (list :frames (number-sequence 1 5)
+ :current-frame 2)))
+ (should (equal 3
+ (pacman-anim-get-frame anim)
+ ))))
diff --git a/test/test-helper.el b/test/test-helper.el
new file mode 100644
index 0000000000..840eac6771
--- /dev/null
+++ b/test/test-helper.el
@@ -0,0 +1,4 @@
+(require 'el-mock)
+
+(add-to-list 'load-path ".")
+(load "pacman.el")
- [nongnu] elpa/pacmacs 043c660152 038/472: Clean up usage instructions in README, (continued)
- [nongnu] elpa/pacmacs 043c660152 038/472: Clean up usage instructions in README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 58cf91b060 032/472: Enable undercover (#27), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 30b5c43879 040/472: License header (#28):, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 59b5b95c2d 039/472: Share the sprites source files. Close #25, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 5780c37396 044/472: Add UT for pacman-make-anim function, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1f32ee2489 048/472: Implement board state (#5), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1b26ae45fc 055/472: Convert sprites to XPM. Close #49, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 03a96041d9 056/472: Add a README note about limitations. Close #45, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 13593c3f25 003/472: Remove logging, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e788307d07 007/472: Implement animation. Close #10, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 7a713ac0b7 010/472: Add UTs again,
ELPA Syncer <=
- [nongnu] elpa/pacmacs da5576a321 008/472: Add UTs. Close #6, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 515b977a4c 026/472: Add UT for pacman-anim-next-frame function (#22), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 03bdb3388f 012/472: Add README. Close #18, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 8283a893c2 018/472: Update README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0828edabf2 019/472: Don't remove elc files during Travis build (#20), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 63bfb71c85 029/472: Add UT for pacman-aseprite-frame-get-order (#22), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3554251103 033/472: Add coveralls badge (#27), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 56968d5966 034/472: Require undercover in test-helpers (#27), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 833e2d8de2 041/472: Add a note about the licensing to README (#28), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs cb29133875 045/472: Add UT for pacman-load-anim function, ELPA Syncer, 2022/01/06