Skip to content

Commit e39ec1c

Browse files
committed
fix: test error assertion
1 parent a662baa commit e39ec1c

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/plugin/test/advance_test.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,7 @@ mod tests {
143143

144144
pyo3::prepare_freethreaded_python();
145145
Python::with_gil(|_| {
146-
assert_eq!(
147-
result.unwrap_err().to_string(),
148-
"HUIError: Card not owned"
149-
);
146+
assert_eq!(result.unwrap_err().to_string(), "HUIError: Card not owned");
150147
})
151148
}
152149

@@ -163,7 +160,7 @@ mod tests {
163160
Python::with_gil(|_| {
164161
assert_eq!(
165162
result.unwrap_err().to_string(),
166-
"HUIError: Cannot enter field without any cards"
163+
"HUIError: Not enough carrots or no card to play"
167164
);
168165
})
169166
}
@@ -179,10 +176,7 @@ mod tests {
179176

180177
pyo3::prepare_freethreaded_python();
181178
Python::with_gil(|_| {
182-
assert_eq!(
183-
result.unwrap_err().to_string(),
184-
"HUIError: No card to play"
185-
);
179+
assert_eq!(result.unwrap_err().to_string(), "HUIError: No card to play");
186180
})
187181
}
188182

0 commit comments

Comments
 (0)