Add tests for wikimedia comons edge cases

This commit is contained in:
Pieter Vander Vennet 2021-10-06 17:48:07 +02:00
parent 5628be3632
commit b5d2b99ced
5 changed files with 118 additions and 17 deletions

View file

@ -40,6 +40,14 @@ export default class T {
throw "Expected true, but got false: " + msg
}
}
static equals(a, b, msg?){
if(a !== b){
throw "Not the same: "+(msg??"")+"\n" +
"Expcected: "+a+"\n" +
"Got : "+b
}
}
static isFalse(b: boolean, msg: string) {
if (b) {