···50505151 describe('Sanity Checks', function() {
52525353- describe('scores identical when strings are identical', function() {
5353+ describe('scores 100 when strings are identical', function() {
5454 for(const [name, strat] of Object.entries(strategies)) {
5555 it(`${name}: strings are identical`, function() {
5656 const res = strat.strategy(sameString, sameString);
5757- assert.equal(100, res.score);
5757+ assert.equal(res.score, 100);
5858+ });
5959+ }
6060+ });
6161+6262+ describe('scores not 100 when strings are close but not identical', function() {
6363+ for(const [name, strat] of Object.entries(strategies)) {
6464+ it(`${name}: strings are close but not identical`, function() {
6565+ const res = strat.strategy('Another Brick in the Wall, Pt. 1', 'Another Brick in the Wall, Pt. 2');
6666+ assert.isAtMost(res.score, 99);
5867 });
5968 }
6069 });
61706271 describe('scores near zero when strings are completely different', function() {
6372 for(const [name, strat] of Object.entries(strategies)) {
6464- it(`${name}: string are completely different`, function() {
7373+ it(`${name}: strings are completely different`, function() {
6574 const res = strat.strategy(sameString, 'pay bull blood for voice');
6675 assert.isAtMost(res.score, 10);
6776 });