Skip to content
Snippets Groups Projects
Commit 96d4e7b1 authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Repaired oracles for the exercise on switch statements.

parent bd76b9c1
Branches
No related tags found
No related merge requests found
...@@ -2,21 +2,21 @@ import { decodeCountingNumber } from './switchStatements.js'; ...@@ -2,21 +2,21 @@ import { decodeCountingNumber } from './switchStatements.js';
describe('the `decodeCountingNumber` function', () => { describe('the `decodeCountingNumber` function', () => {
test('correctly interprets the word "zero"', () => { test('correctly interprets the word "zero"', () => {
expect(decodeCountingNumber('zero')).toBe('The word "zero" is associated with the meaning `0`.'); expect(decodeCountingNumber('zero')).toBe('The word "zero" is associated with the meaning 0.');
}); });
test('correctly interprets the word "one"', () => { test('correctly interprets the word "one"', () => {
expect(decodeCountingNumber('one')).toBe('The word "one" is associated with the meaning `1`.'); expect(decodeCountingNumber('one')).toBe('The word "one" is associated with the meaning 1.');
}); });
test('correctly interprets the word "two"', () => { test('correctly interprets the word "two"', () => {
expect(decodeCountingNumber('two')).toBe('The word "two" is associated with the meaning `2`.'); expect(decodeCountingNumber('two')).toBe('The word "two" is associated with the meaning 2.');
}); });
test('correctly interprets the word "three"', () => { test('correctly interprets the word "three"', () => {
expect(decodeCountingNumber('three')).toBe('The word "three" is associated with the meaning `3`.'); expect(decodeCountingNumber('three')).toBe('The word "three" is associated with the meaning 3.');
}); });
test('correctly interprets the word "four"', () => { test('correctly interprets the word "four"', () => {
expect(decodeCountingNumber('four')).toBe('The word "four" is associated with the meaning `4`.'); expect(decodeCountingNumber('four')).toBe('The word "four" is associated with the meaning 4.');
}); });
test('correctly interprets the word "five"', () => { test('correctly interprets the word "five"', () => {
expect(decodeCountingNumber('five')).toBe('The word "five" is associated with the meaning `undefined`.'); expect(decodeCountingNumber('five')).toBe('The word "five" is associated with the meaning undefined.');
}); });
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment