[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/poker 2e12d6b 03/12: * poker/poker.el (poker-combinatio
From: |
Stefan Monnier |
Subject: |
[elpa] externals/poker 2e12d6b 03/12: * poker/poker.el (poker-combinations, poker-possible-hands): Fix tests. |
Date: |
Tue, 1 Dec 2020 16:46:49 -0500 (EST) |
branch: externals/poker
commit 2e12d6bd56a1418abfbc5bfc00fbcb9ebdda3cad
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* poker/poker.el (poker-combinations, poker-possible-hands): Fix tests.
---
poker.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/poker.el b/poker.el
index c7a33a5..55f22be 100644
--- a/poker.el
+++ b/poker.el
@@ -839,14 +839,14 @@ FCR-FN specifies a function to use when a fold-call-raise
decision is required."
;;; Tests:
(ert-deftest poker-combinations ()
- (equal 21 (length (poker-combinations 5 (last poker-deck 7))))
- (equal 1326 (length (poker-combinations 2 poker-deck))))
+ (should (equal 21 (length (poker-combinations 5 (last poker-deck 7)))))
+ (should (equal 1326 (length (poker-combinations 2 poker-deck)))))
(ert-deftest poker-possible-hands ()
- (equal (poker-possible-hands '(1 2 3 4 5 6 7))
- (poker-combinations 5 '(1 2 3 4 5 6 7)))
- (equal (poker-possible-hands '(1 2 3 4 5 6))
- (poker-combinations 5 '(1 2 3 4 5 6))))
+ (should (equal (poker-possible-hands '(1 2 3 4 5 6 7))
+ (poker-combinations 5 '(1 2 3 4 5 6 7))))
+ (should (equal (poker-possible-hands '(1 2 3 4 5 6))
+ (poker-combinations 5 '(1 2 3 4 5 6)))))
(ert-deftest poker ()
(let ((players (list (poker-make-player "Angela" #'poker-automatic-fcr)
- [elpa] branch externals/poker created (now 30f3985), Stefan Monnier, 2020/12/01
- [elpa] externals/poker 725cbdf 01/12: Add new simple package poker.el., Stefan Monnier, 2020/12/01
- [elpa] externals/poker 937e353 02/12: [poker] Add to the games menu., Stefan Monnier, 2020/12/01
- [elpa] externals/poker 2e12d6b 03/12: * poker/poker.el (poker-combinations, poker-possible-hands): Fix tests.,
Stefan Monnier <=
- [elpa] externals/poker 7d978b1 05/12: Very slightly improve performance, Stefan Monnier, 2020/12/01
- [elpa] externals/poker b9debcb 04/12: Fix some quoting problems in doc strings, Stefan Monnier, 2020/12/01
- [elpa] externals/poker fcdb916 08/12: Add a pre-flop hand strength table and an ert test for poker-hand-value, Stefan Monnier, 2020/12/01
- [elpa] externals/poker 37e54e3 06/12: Improve poker-hand-value performance by 25%, Stefan Monnier, 2020/12/01
- [elpa] externals/poker 56469f2 10/12: [poker] Version 0.2, update copyright years and add todo, Stefan Monnier, 2020/12/01
- [elpa] externals/poker 30f3985 12/12: * .gitignore: New file, Stefan Monnier, 2020/12/01
- [elpa] externals/poker 423994e 07/12: Improve performance of poker-hand-value by a factor of 4, Stefan Monnier, 2020/12/01
- [elpa] externals/poker 351b253 11/12: Fix typo in poker-describe-hand (Bug#34241), Stefan Monnier, 2020/12/01
- [elpa] externals/poker fe8a532 09/12: Set default number of iterations to 300, Stefan Monnier, 2020/12/01