forked from MapComplete/MapComplete
Add tests for wikimedia comons edge cases
This commit is contained in:
parent
5628be3632
commit
b5d2b99ced
5 changed files with 118 additions and 17 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue