mirror of
https://github.com/lichess-org/dartchess.git
synced 2026-05-26 13:51:01 +00:00
test: enable Atomic and Crazyhouse perft tests, they pass now :)
closes #15, closes #16
This commit is contained in:
@@ -99,10 +99,10 @@ void main() async {
|
||||
}
|
||||
}
|
||||
});
|
||||
/*
|
||||
|
||||
group('Atomic', () {
|
||||
final tests =
|
||||
Parser().parse(File('test/resources/atomic.perft').readAsStringSync());
|
||||
final tests = Parser()
|
||||
.parse(io.File('test/resources/atomic.perft').readAsStringSync());
|
||||
for (final perftTest in tests) {
|
||||
final position = Atomic.fromSetup(Setup.parseFen(perftTest.fen));
|
||||
for (final testCase in perftTest.cases
|
||||
@@ -115,11 +115,10 @@ void main() async {
|
||||
}
|
||||
}
|
||||
});
|
||||
*/
|
||||
/*
|
||||
|
||||
group('Crazyhouse', () {
|
||||
final tests = Parser()
|
||||
.parse(File('test/resources/crazyhouse.perft').readAsStringSync());
|
||||
.parse(io.File('test/resources/crazyhouse.perft').readAsStringSync());
|
||||
for (final perftTest in tests) {
|
||||
final position = Crazyhouse.fromSetup(Setup.parseFen(perftTest.fen));
|
||||
for (final testCase in perftTest.cases
|
||||
@@ -132,7 +131,7 @@ void main() async {
|
||||
}
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
group('Horde', () {
|
||||
final tests = Parser()
|
||||
.parse(io.File('test/resources/horde.perft').readAsStringSync());
|
||||
|
||||
Reference in New Issue
Block a user