-
Notifications
You must be signed in to change notification settings - Fork 0
/
einfache_eingaben.test.js
29 lines (28 loc) · 4.13 KB
/
einfache_eingaben.test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const markErrors = require('./autoCorrection');
test('Hupe --> upe', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Hu-pe', 'upe', null, null, true)).toBe('3/4')})
test('Hose --> Hse', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Ho-se', 'Hse', null, null, true)).toBe('3/4')})
test('Finale --> Winale', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Fi-na-le', 'Winale', null, null, true)).toBe('5/6')})
test('Tapete --> Tabete', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Ta-pe-te', 'Tabete', null, null, true)).toBe('5/6')})
test('Domino --> Donino', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Do-mi-no', 'Donino', null, null, true)).toBe('5/6')})
test('Dusche --> Duschh', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Du-sche', 'Duschh', null, null, true)).toBe('3/4')})
test('Auslauf --> Auzlauf', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Aus-lauf', 'Auzlauf', null, null, true)).toBe('4/5')})
test('Umtausch --> Qmtausch', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Um-tausch', 'Qmtausch', null, null, true)).toBe('4/5')})
test('Döner --> Düna', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Dö-ner', 'Düna', null, null, true)).toBe('2/5')})
test('Wein --> Wain', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Wein', 'Wain', null, null, true)).toBe('2/3')})
test('Alter --> Alta', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Al-ter', 'Alta', null, null, true)).toBe('3/5')})
test('Kilometer --> Kilometa', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Ki-lo-me-ter', 'Kilometa', null, null, true)).toBe('7/9')})
test('Möwenfeder --> Mödeweda', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Mö-wen-fe-der', 'Mödeweda', null, null, true)).toBe('5/10')})
test('Ampel --> Ambel', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Am-pel', 'Ambel', null, null, true)).toBe('4/5')})
test('Lederhose --> Leterhose', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Le-der-ho-se', 'Leterhose', null, null, true)).toBe('8/9')})
test('Hafen --> Hafer', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Ha-fen', 'Hafer', null, null, true)).toBe('4/5')})
test('Ofen --> Ufen', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'O-fen', 'Ufen', null, null, true)).toBe('3/4')})
test('Pirat --> Pirad', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Pi-rat', 'Pirad', null, null, true)).toBe('4/5')})
test('Kamin --> Kamil', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Ka-min', 'Kamil', null, null, true)).toBe('4/5')})
test('Geige --> Geike', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Gei-ge', 'Geike', null, null, true)).toBe('3/4')})
test('Gemüse --> Gemuse', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Ge-mü-se', 'Gemuse', null, null, true)).toBe('5/6')})
test('Scheunentor --> SchaunenTor', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Scheu-nen-tor', 'SchaunenTor', null, null, true)).toBe('7/8')})
test('Möbelwagen --> Möbel', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Mö-bel-wa-gen', 'Möbel', null, null, true)).toBe('5/10')})
// wrong correction, right graphem treffer
test('Lebewesen --> Lebwese', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Le-be-we-sen', 'Lebwese', null, null, true)).toBe('7/9')})
test('Ofenfäuer --> Ofenfauer', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'O-fen-feu-er', 'Ofenfauer', null, null, true)).toBe('7/8')})
test('Biber --> Biba', () => {expect(markErrors('pupilsWriting 3', 'pupilSheet1', null, null, null, 'Bi-ber', 'Biba', null, null, true)).toBe('3/5')})