You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
864 B
24 lines
864 B
import { describe, expect, it } from 'vitest';
|
|
import { formacionVocalDe } from './carpeta.mjs';
|
|
|
|
describe('formacionVocalDe', () => {
|
|
it.each([
|
|
['powerful female vocal', 'mujer'],
|
|
['warm baritone vocals', 'hombre'],
|
|
['Voix Homme/Femme, double vocals', 'dueto-mixto'],
|
|
['mixed duet with piano', 'dueto-mixto'],
|
|
['female duet with piano', 'dueto-femenino'],
|
|
['male duet with acoustic guitars', 'dueto-masculino'],
|
|
['female vocal ensemble', 'multiple-femenino'],
|
|
['male vocal ensemble', 'multiple-masculino'],
|
|
['mixed choir', 'multiple-mixto']
|
|
])('reconoce %s', (prompt, formacion) => {
|
|
expect(formacionVocalDe(prompt)).toBe(formacion);
|
|
});
|
|
|
|
it('no inventa una voz cuando el prompt no la declara', () => {
|
|
expect(formacionVocalDe('pop rock, alternative rock, atmospheric')).toBeNull();
|
|
expect(formacionVocalDe(null)).toBeNull();
|
|
});
|
|
});
|