[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 05c88e5eef 100/472: UTs for pacmacs--object-at-p (
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 05c88e5eef 100/472: UTs for pacmacs--object-at-p (#75) |
Date: |
Thu, 6 Jan 2022 21:59:16 -0500 (EST) |
branch: elpa/pacmacs
commit 05c88e5eef27a556a3f93630972563bc6685002e
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
UTs for pacmacs--object-at-p (#75)
---
test/pacmacs-test.el | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/test/pacmacs-test.el b/test/pacmacs-test.el
index 1c18aa2316..a8a17974d0 100644
--- a/test/pacmacs-test.el
+++ b/test/pacmacs-test.el
@@ -18,3 +18,15 @@
[nil nil nil nil nil]]))
(should (equal expected-board
(pacmacs--init-board width height)))))
+
+(ert-deftest pacmacs--object-at-p-test ()
+ (let ((pacmacs-board-width 5)
+ (pacmacs-board-height 4)
+ (objects (-map #'(lambda (x)
+ (list :row x
+ :column x))
+ (number-sequence 0 3))))
+ (should (pacmacs--object-at-p 0 0 objects))
+ (should (not (pacmacs--object-at-p 0 1 objects)))
+ (should (pacmacs--object-at-p 0 5 objects))
+ (should (not (pacmacs--object-at-p 1 5 objects)))))
- [nongnu] elpa/pacmacs 7285f61d45 164/472: Require pacmacs-board in the pacmacs-render module, (continued)
- [nongnu] elpa/pacmacs 7285f61d45 164/472: Require pacmacs-board in the pacmacs-render module, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs b00db2f7fa 240/472: Use hashmap for tile cache instead of vector (#131), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 838833da41 414/472: Go to the beginning if score is not featured, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 75f7ddd459 418/472: Add UT for position-of-new-score func (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs fb4885d0fc 420/472: Add UT for make-submit-nickname-action func (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs f53a6d57b7 451/472: Fix the compilation error (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9d839d08c6 460/472: Bottom padding for object board (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs c6436982fe 462/472: Merge pull request #207 from codingteam/feature/awesome-score-sign-203, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 67660062fd 042/472: Add LICENSE files (#28), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 05e30ca856 076/472: Implement support for frame duration. Close #23, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 05c88e5eef 100/472: UTs for pacmacs--object-at-p (#75),
ELPA Syncer <=
- [nongnu] elpa/pacmacs 01388a06a0 104/472: UTs for pacmacs--track-object (#75), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs d9ddd5dab4 132/472: Refactor pacmacs--detect-ghost-collision (#97), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 7601c1ae5c 143/472: Rename board vars to buffers (#105), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e69a35e2b3 168/472: Small typo in the README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 63e41ffe23 169/472: Fix the dev workflow in the README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9525cd168b 172/472: Update README about the pause feature, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 98599015bb 229/472: Fix UTs broken by #133 implementation, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e294101a92 231/472: Fix Game Over sign for connected walls (#131), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs a7a4146732 234/472: Fix the wall corner gaps (#131), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 528ca62e28 251/472: Merge branch 'drop-xbm-support-141'. Close #141, ELPA Syncer, 2022/01/06