[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs ee76ee2dc0 299/472: UT for pacmacs--run-away-direc
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs ee76ee2dc0 299/472: UT for pacmacs--run-away-direction (#153) |
Date: |
Thu, 6 Jan 2022 21:59:33 -0500 (EST) |
branch: elpa/pacmacs
commit ee76ee2dc0afc9256a23f947ce43951dd5fbc98a
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
UT for pacmacs--run-away-direction (#153)
---
test/pacmacs-test.el | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/test/pacmacs-test.el b/test/pacmacs-test.el
index 4120384e4f..3852eca864 100644
--- a/test/pacmacs-test.el
+++ b/test/pacmacs-test.el
@@ -54,3 +54,15 @@
(pacmacs--decrease-terrified-timers)
(should (equal expected-outcome
pacmacs--terrified-ghosts))))
+
+(ert-deftest pacmacs--run-away-direction-test ()
+ (let ((runner '(:row 2 :column 2))
+ (bogey '(:row 2 :column 3))
+ (walls '((1 . 2)
+ (3 . 2)))
+ (blocked-tile-predicate (-lambda (row column)
+ (-find (-partial #'equal (cons row column))
+ walls))))
+ (should (equal (pacmacs--run-away-direction runner bogey
+ blocked-tile-predicate)
+ 'left))))
- [nongnu] elpa/pacmacs e294101a92 231/472: Fix Game Over sign for connected walls (#131), (continued)
- [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
- [nongnu] elpa/pacmacs 7d58295e93 281/472: Fix pacmacs--render-score-table function, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs c501625be6 282/472: Add Blinking Terrified Ghost animation. Close #155, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs da727a84c1 287/472: Double dash play state logic function (#153), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs d49e28e468 293/472: Remove pacmacs--opposite-direction-name (#153), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e12ed88fe7 298/472: Generalize run-away-direction function (#153), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs be52b6410f 294/472: UT for pacmacs--squared-distance (#153), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0103a77462 302/472: Remove replace-filtered-game-objects (#153), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs ee76ee2dc0 299/472: UT for pacmacs--run-away-direction (#153),
ELPA Syncer <=
- [nongnu] elpa/pacmacs cec13dd618 308/472: Fix Emacs 24.3 build fail (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e662ec9be7 313/472: Disable Emacs 24.3 in the Travis build (#165), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs fa83e10d82 325/472: Get rid of dup code in track object mech (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 51117fc5db 336/472: Rename 5th big pill level accordingly (#162), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0a33c04fc1 333/472: Add fourth big pill level (#162), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 402d176003 339/472: Remove unused functions (#171), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 71b977fd22 343/472: Transform it-recorder.el to an additional module, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs ad5cdc8efd 349/472: Add att.txt to gitignore, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 8d63cc3f30 358/472: Multicolor walls (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs aed2853780 373/472: Move wall weight to the constants (#138), ELPA Syncer, 2022/01/06