fix(curriculum): fixed test for binary search tree challenge (#44993)

pull/44997/head
Matt 2022-02-02 04:06:25 +02:00 committed by GitHub
parent a95f0de3e7
commit d750a7b4ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -128,14 +128,15 @@ assert(
if (typeof test.remove !== 'function') { if (typeof test.remove !== 'function') {
return false; return false;
} }
test.add(-1); test.add(1);
test.add(4);
test.add(3); test.add(3);
test.add(7); test.add(2);
test.add(16); test.add(6);
test.remove(16); test.add(8);
test.remove(7); test.remove(6);
test.remove(3); test.remove(3);
return test.inorder().join('') == '-1'; return test.inorder().join('') == '1248';
})() })()
); );
``` ```