summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/slots.rs8
-rw-r--r--tests/tofu.rs4
2 files changed, 4 insertions, 8 deletions
diff --git a/tests/slots.rs b/tests/slots.rs
index df4af28..3035800 100644
--- a/tests/slots.rs
+++ b/tests/slots.rs
@@ -11,9 +11,9 @@ fn make_game() -> SlotsGame {
11#[test] 11#[test]
12fn three_of_a_kind_pays() { 12fn three_of_a_kind_pays() {
13 let game = make_game(); 13 let game = make_game();
14 // CCC = 5x 14 // CCC = 2x
15 assert_eq!(game.calculate_payout(&['C', 'C', 'C'], 100), 200); 15 assert_eq!(game.calculate_payout(&['C', 'C', 'C'], 100), 200);
16 // SSS = 100x 16 // SSS = 28x
17 assert_eq!(game.calculate_payout(&['S', 'S', 'S'], 10), 280); 17 assert_eq!(game.calculate_payout(&['S', 'S', 'S'], 10), 280);
18} 18}
19 19
@@ -21,9 +21,9 @@ fn three_of_a_kind_pays() {
21#[test] 21#[test]
22fn two_adjacent_pays() { 22fn two_adjacent_pays() {
23 let game = make_game(); 23 let game = make_game();
24 // CC? = 2x 24 // CC? = 1x
25 assert_eq!(game.calculate_payout(&['C', 'C', 'D'], 100), 100); 25 assert_eq!(game.calculate_payout(&['C', 'C', 'D'], 100), 100);
26 // ?LL = 3x 26 // ?LL = 1x
27 assert_eq!(game.calculate_payout(&['D', 'L', 'L'], 50), 50); 27 assert_eq!(game.calculate_payout(&['D', 'L', 'L'], 50), 50);
28} 28}
29 29
diff --git a/tests/tofu.rs b/tests/tofu.rs
index 359c192..4f59d6d 100644
--- a/tests/tofu.rs
+++ b/tests/tofu.rs
@@ -1,8 +1,4 @@
1//! TOFU trust tests. 1//! TOFU trust tests.
2//!
3//! These pin the not-yet-implemented TOFU behavior: every test here is
4//! expected to FAIL until the corresponding feature lands in `src/tofu.rs`
5//! and the client storage layer.
6 2
7use std::path::PathBuf; 3use std::path::PathBuf;
8use std::process::Command; 4use std::process::Command;