Skip to content

Commit ba5ea8f

Browse files
committed
features -> feature :-)
1 parent 5943e95 commit ba5ea8f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/tests/calpoker.rs

+10-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::channel_handler::game::Game;
99
use crate::common::types::{AllocEncoder, Amount, Error, GameID, Hash, Sha256Input};
1010
use crate::tests::game::{GameAction, GameActionResult};
1111

12-
#[cfg(features = "sim-tests")]
12+
#[cfg(feature = "sim-tests")]
1313
use crate::tests::simenv::SimulatorEnvironment;
1414

1515
pub fn load_calpoker(allocator: &mut AllocEncoder, game_id: GameID) -> Result<Game, Error> {
@@ -20,7 +20,7 @@ pub fn load_calpoker(allocator: &mut AllocEncoder, game_id: GameID) -> Result<Ga
2020
)
2121
}
2222

23-
#[cfg(features = "sim-tests")]
23+
#[cfg(feature = "sim-tests")]
2424
#[test]
2525
fn test_load_calpoker() {
2626
let mut allocator = AllocEncoder::new();
@@ -35,7 +35,7 @@ fn test_load_calpoker() {
3535
.expect("should get a sim env");
3636
}
3737

38-
#[cfg(features = "sim-tests")]
38+
#[cfg(feature = "sim-tests")]
3939
fn run_calpoker_play_test(
4040
allocator: &mut AllocEncoder,
4141
moves: &[GameAction],
@@ -82,7 +82,7 @@ pub fn test_moves_1(allocator: &mut AllocEncoder) -> [GameAction; 5] {
8282
]
8383
}
8484

85-
#[cfg(features = "sim-tests")]
85+
#[cfg(feature = "sim-tests")]
8686
#[test]
8787
fn test_play_calpoker_happy_path() {
8888
let mut allocator = AllocEncoder::new();
@@ -91,8 +91,8 @@ fn test_play_calpoker_happy_path() {
9191
debug!("play_result {test1:?}");
9292
}
9393

94-
#[cfg(features = "sim-tests")]
9594
#[test]
95+
#[cfg(feature = "sim-tests")]
9696
fn test_play_calpoker_on_chain_after_1_move_p1() {
9797
let mut allocator = AllocEncoder::new();
9898

@@ -106,8 +106,8 @@ fn test_play_calpoker_on_chain_after_1_move_p1() {
106106
debug!("play_result {test2:?}");
107107
}
108108

109-
#[cfg(features = "sim-tests")]
110109
#[test]
110+
#[cfg(feature = "sim-tests")]
111111
fn test_play_calpoker_on_chain_after_1_move_p0_lost_message() {
112112
let mut allocator = AllocEncoder::new();
113113
let moves = test_moves_1(&mut allocator);
@@ -118,8 +118,8 @@ fn test_play_calpoker_on_chain_after_1_move_p0_lost_message() {
118118
debug!("play_result {test3:?}");
119119
}
120120

121-
#[cfg(features = "sim-tests")]
122121
#[test]
122+
#[cfg(feature = "sim-tests")]
123123
fn test_play_calpoker_on_chain_after_1_move_p0() {
124124
let mut allocator = AllocEncoder::new();
125125
let moves = test_moves_1(&mut allocator);
@@ -129,8 +129,8 @@ fn test_play_calpoker_on_chain_after_1_move_p0() {
129129
debug!("play_result {test3:?}");
130130
}
131131

132-
#[cfg(features = "sim-tests")]
133132
#[test]
133+
#[cfg(feature = "sim-tests")]
134134
fn test_play_calpoker_on_chain_after_2_moves_p0() {
135135
let mut allocator = AllocEncoder::new();
136136
let moves = test_moves_1(&mut allocator);
@@ -140,8 +140,9 @@ fn test_play_calpoker_on_chain_after_2_moves_p0() {
140140
let test4 = run_calpoker_play_test(&mut allocator, &on_chain_moves_3).expect("should work");
141141
debug!("play_result {test4:?}");
142142
}
143-
#[cfg(features = "sim-tests")]
143+
144144
#[test]
145+
#[cfg(feature = "sim-tests")]
145146
fn test_play_calpoker_on_chain_after_2_moves_p1() {
146147
let mut allocator = AllocEncoder::new();
147148
let moves = test_moves_1(&mut allocator);

0 commit comments

Comments
 (0)