All checks were successful
Build and Push Docker Image / docker (push) Successful in 9s
15 lines
530 B
JavaScript
15 lines
530 B
JavaScript
import { scoreTitle } from '../src/server/game/answerCheck.js';
|
|
|
|
const cases = [
|
|
['Why', '"Why"'],
|
|
['World Hold On', 'World Hold on (Children of the Sky) [Radio Edit]'],
|
|
['Respect', 'Respect (2019 Remaster)'],
|
|
['No Woman No Cry', 'No Woman, No Cry (Live)'],
|
|
['It\'s My Life', 'It\'s My Life (Single Version)'],
|
|
];
|
|
|
|
for (const [guess, truth] of cases) {
|
|
const r = scoreTitle(guess, truth);
|
|
console.log(JSON.stringify({ guess, truth, pass: r.pass, sim: +r.sim.toFixed(3), jac: +r.jac.toFixed(3), g: r.g, t: r.t }));
|
|
}
|