remove old ceval test case

pull/5228/head
Niklas Fiekas 2019-06-25 21:30:31 +02:00
parent 0c040203ea
commit ecb5fb3a7c
3 changed files with 24 additions and 1056 deletions

View File

@ -21,16 +21,12 @@
},
"homepage": "https://github.com/ornicar/lila",
"scripts": {
"compile": "tsc",
"pretest": "tsc",
"test": "nodeunit dist/test"
"compile": "tsc"
},
"devDependencies": {
"@types/jquery": "^2.0",
"@types/nodeunit": "0.0.30",
"@types/lichess": "1.0.0",
"@types/defer-promise": "1.0.0",
"nodeunit": "^0.11.0",
"typescript": "^3"
},
"dependencies": {

View File

@ -1,15 +0,0 @@
import { Test } from 'nodeunit';
import pv2san from '../src/pv2san';
import { initialFen } from 'chess';
export function testCrazyhouse(test: Test) {
var fen = 'r4b1N~/1ppk1P2/p1b5/6p1/8/1PBPPq2/P1PR1P2/1K4N1/PNBRPPPrqnn b - - 71 36';
test.equal(pv2san('crazyhouse', fen, false, 'N@a3 b1b2 R@b1'.split(' '), -2), '36... N@a3+ 37. Kb2 R@b1#');
test.done();
}
export function testKingMove(test: Test) {
test.equal(pv2san('standard', initialFen, false, 'e2e4 e7e5 e1e2'.split(' ')), '1. e4 e5 2. Ke2');
test.done();
}

1059
yarn.lock

File diff suppressed because it is too large Load Diff