Skip to content

Commit 2aa66a5

Browse files
committed
Make the tests work with the latest compiler version
Apparently type inference for vec!() doesn't work anymore.
1 parent a311478 commit 2aa66a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/board/test/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ fn legal_moves_should_return_nothing_after_a_resign() {
141141

142142
b.play(Resign(Black));
143143

144-
assert_eq!(vec!(), b.legal_moves_without_superko_check());
144+
assert_eq!(0, b.legal_moves_without_superko_check().len());
145145
}
146146

147147
#[test]
@@ -150,7 +150,7 @@ fn legal_moves_without_eyes_should_return_nothing_after_a_resing() {
150150

151151
b.play(Resign(Black));
152152

153-
assert_eq!(vec!(), b.legal_moves_without_eyes());
153+
assert_eq!(0, b.legal_moves_without_eyes().len());
154154
}
155155

156156

0 commit comments

Comments
 (0)