[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 93f031ae4e 382/472: Fix create-wall-tile UT (#138)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 93f031ae4e 382/472: Fix create-wall-tile UT (#138) |
Date: |
Thu, 6 Jan 2022 21:59:41 -0500 (EST) |
branch: elpa/pacmacs
commit 93f031ae4ea6859bbeacacc92b44bc72f12d6595
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Fix create-wall-tile UT (#138)
---
test/pacmacs-image-test.el | 27 +++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/test/pacmacs-image-test.el b/test/pacmacs-image-test.el
index bc334715b7..4ab1c4cabe 100644
--- a/test/pacmacs-image-test.el
+++ b/test/pacmacs-image-test.el
@@ -54,18 +54,21 @@
bit-list)))))))
(ert-deftest pacmacs--create-wall-tile-test ()
- (with-mock
- (mock (pacmacs--bit-list-to-integer *) => 0)
- (mock (gethash * *) => nil)
- (mock (puthash * * *) => nil)
- (mock (create-image * * *) => nil)
- (mock (pacmacs--wall-tile-to-xpm [[nil t t t]
- [t t t t]
- [t t t t]
- [t t t t]]
- 4 4))
- (pacmacs--create-wall-tile 4 4 t t nil nil
- nil nil nil nil)))
+ (let ((pacmacs--wall-weight 3))
+ (with-mock
+ (mock (pacmacs--color-hex-gradient * * *) => '("khooy1" "khooy2"
"khooy3"))
+ (mock (pacmacs--bit-list-to-integer *) => 0)
+ (mock (gethash * *) => nil)
+ (mock (puthash * * *) => nil)
+ (mock (create-image * * *) => nil)
+ (mock (pacmacs--wall-tile-to-xpm [[nil 2 1 0]
+ [2 2 1 0]
+ [1 1 1 0]
+ [0 0 0 0]]
+ 4 4
+ '("khooy1" "khooy2" "khooy3")))
+ (pacmacs--create-wall-tile 4 4 t t nil nil
+ nil nil nil nil))))
(ert-deftest pacmacs--wall-tile-to-xpm-test ()
(should (string= (concat "/* XPM */\n"
- [nongnu] elpa/pacmacs af0fe59457 309/472: Fix FIXME regarding Emacs 24.3 support (#159), (continued)
- [nongnu] elpa/pacmacs af0fe59457 309/472: Fix FIXME regarding Emacs 24.3 support (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0326ad4081 318/472: Add module for working with vectors (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 84598f8f20 328/472: UT for pacmacs--load-next-level, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 4862789072 335/472: Terrify/unterrify ghost without losing state, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1e4d6cd8b7 340/472: UT for terrified-ghost function (#171), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3e25c67590 345/472: Add script for semi-automatic ATT measuring, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 70d381a0ca 362/472: UT for terrify-all-ghosts (#173), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs dec42c790d 374/472: Update the screenshots, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 10705b45c5 376/472: Rename bits-to-xpm to wall-tile-to-xpm (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs a5583b6255 377/472: Fix wall-tile-to-xpm UT (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 93f031ae4e 382/472: Fix create-wall-tile UT (#138),
ELPA Syncer <=
- [nongnu] elpa/pacmacs 2c7e23070b 380/472: Fix put-vertical-bar UT (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs dc14097468 400/472: Add emacs mode for game over (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 98816141d5 398/472: Merge pull request #189 from codingteam/remove-make-terrified-ghost, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 30442797d3 404/472: Add consts for nick and table sizes (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0eeb82ebc9 425/472: Merge pull request #193 from codingteam/rework-nick-after-death-134, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs ce1054fab3 433/472: Remove redundant find-resource-file call (#191), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 21a99294ad 440/472: Add score sign (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9fd3009e5a 442/472: Merge pull request #206 from codingteam/bug/quit-game-over-with-q-202, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 95cce606fd 024/472: Support for Aseprite animation format. Close #16, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 09aa49c6b0 065/472: UTs for pacman-image. Close #52, ELPA Syncer, 2022/01/06