[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 4924601822 341/472: UT for unterrify-ghost functio
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 4924601822 341/472: UT for unterrify-ghost function (#171) |
Date: |
Thu, 6 Jan 2022 21:59:37 -0500 (EST) |
branch: elpa/pacmacs
commit 49246018227501d7346c28593cf573809872c1aa
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
UT for unterrify-ghost function (#171)
---
test/pacmacs-test.el | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/test/pacmacs-test.el b/test/pacmacs-test.el
index dd40d74ca8..ee71130d3a 100644
--- a/test/pacmacs-test.el
+++ b/test/pacmacs-test.el
@@ -83,3 +83,27 @@
(mock (pacmacs-load-anim "Terrified-Ghost") => 'terrified-ghost-animation)
(should (equal terrified-ghost
(pacmacs--terrify-ghost ghost))))))
+
+(ert-deftest pacmacs--unterrify-ghost-test ()
+ (let* ((pacmacs--ghost-terrified-time-ms 60065)
+ (terrified-ghost (list :property-1 1
+ :property-2 2
+ :direction 'right
+ :current-animation 'terrified-ghost-animation
+ :switch-direction-callback
'terrified-ghost-direction-switcher
+ :type 'terrified-ghost
+ :terrified-timer
pacmacs--ghost-terrified-time-ms))
+ (ghost (list :property-1 1
+ :property-2 2
+ :direction 'right
+ :current-animation 'terrified-ghost-animation
+ :switch-direction-callback 'ghost-direction-switcher
+ :type 'ghost
+ :terrified-timer pacmacs--ghost-terrified-time-ms)))
+ (with-mock
+ (mock (pacmacs--switch-direction * 'right))
+ (mock (pacmacs--switch-direction-animation-callback "Red-Ghost")
+ => 'ghost-direction-switcher)
+
+ (should (equal ghost
+ (pacmacs--unterrify-ghost terrified-ghost))))))
- [nongnu] elpa/pacmacs 52fec0d180 241/472: Normalize wall generating bits (#131), (continued)
- [nongnu] elpa/pacmacs 52fec0d180 241/472: Normalize wall generating bits (#131), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e06beacb11 242/472: Assign wall tiles on load map (#131), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9e7685b818 248/472: Drop XBM support for wall tiles (#141), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 5ec5ce8e67 267/472: Remove that pacmacs--object-at-p already!, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs c571f5874c 272/472: Extract wall bits normalization, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9a9ecb6679 283/472: Implement direction switching callbacks (#153), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e710f00f69 295/472: Remove pacmacs--unterrify-all-ghosts (#153), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e1ae35d526 316/472: Minimal version of 24.4 as the package requirement, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 73fcaa8a91 324/472: Remove pacmacs--vector+ (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e228a3c95d 334/472: Add 5th big pill level (#162), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 4924601822 341/472: UT for unterrify-ghost function (#171),
ELPA Syncer <=
- [nongnu] elpa/pacmacs 0990672a5b 348/472: Fix stupid typos and mistakes -_-, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9cb0cbab39 352/472: Merge pull request #172 from codingteam/unterrified-original-possition-171, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 61c37f08b1 355/472: Update URL in the headers (#178), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs fad3786449 361/472: Use push instead of add-to-list (#173), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 6a91d72f35 359/472: terrify-ghost instead of reset-terrified-ghost, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs f7f962303b 371/472: Use background for start gradient color (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs c7a3a4cbac 388/472: Merge pull request #184 from codingteam/update-readme-179, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs ecf71a3f49 378/472: Rename put-bits-dot to put-wall-tile-corner (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs d7c9d248e6 385/472: Pass wall bits to create-wall-tile as list (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 66cdd67cbb 387/472: Merge pull request #186 from codingteam/prettier-walls-138, ELPA Syncer, 2022/01/06