|
1 | 1 | DROP TABLE IF EXISTS tests;
|
| 2 | + |
2 | 3 | CREATE TABLE IF NOT EXISTS tests (
|
3 |
| - -- uuid and description are taken from the test.toml file |
4 |
| - uuid TEXT PRIMARY KEY, |
5 |
| - description TEXT NOT NULL, |
6 |
| - -- The following section is needed by the online test-runner |
7 |
| - status TEXT DEFAULT 'fail', |
8 |
| - message TEXT, |
9 |
| - output TEXT, |
10 |
| - test_code TEXT, |
11 |
| - task_id INTEGER DEFAULT NULL, |
12 |
| - -- Here are columns for the actual tests |
13 |
| - sentence TEXT NOT NULL, |
14 |
| - expected BOOLEAN NOT NULL |
| 4 | + -- uuid and description are taken from the test.toml file |
| 5 | + uuid TEXT PRIMARY KEY, |
| 6 | + description TEXT NOT NULL, |
| 7 | + -- The following section is needed by the online test-runner |
| 8 | + status TEXT DEFAULT 'fail', |
| 9 | + message TEXT, |
| 10 | + output TEXT, |
| 11 | + test_code TEXT, |
| 12 | + task_id INTEGER DEFAULT NULL, |
| 13 | + -- Here are columns for the actual tests |
| 14 | + sentence TEXT NOT NULL, |
| 15 | + expected BOOLEAN NOT NULL |
15 | 16 | );
|
16 | 17 |
|
17 |
| -INSERT INTO tests (uuid, description, sentence, expected) |
18 |
| - VALUES |
19 |
| - ('64f61791-508e-4f5c-83ab-05de042b0149', 'empty sentence', '', false), |
20 |
| - ('74858f80-4a4d-478b-8a5e-c6477e4e4e84', 'perfect lower case', 'abcdefghijklmnopqrstuvwxyz', true), |
21 |
| - ('61288860-35ca-4abe-ba08-f5df76ecbdcd', 'only lower case', 'the quick brown fox jumps over the lazy dog', true), |
22 |
| - ('6564267d-8ac5-4d29-baf2-e7d2e304a743', 'missing the letter ''x''', 'a quick movement of the enemy will jeopardize five gunboats', false), |
23 |
| - ('c79af1be-d715-4cdb-a5f2-b2fa3e7e0de0', 'missing the letter ''h''', 'five boxing wizards jump quickly at it', false), |
24 |
| - ('d835ec38-bc8f-48e4-9e36-eb232427b1df', 'with underscores', 'the_quick_brown_fox_jumps_over_the_lazy_dog', true), |
25 |
| - ('8cc1e080-a178-4494-b4b3-06982c9be2a8', 'with numbers', 'the 1 quick brown fox jumps over the 2 lazy dogs', true), |
26 |
| - ('bed96b1c-ff95-45b8-9731-fdbdcb6ede9a', 'missing letters replaced by numbers', '7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog', false), |
27 |
| - ('938bd5d8-ade5-40e2-a2d9-55a338a01030', 'mixed case and punctuation', '"Five quacking Zephyrs jolt my wax bed."', true), |
28 |
| - ('7138e389-83e4-4c6e-8413-1e40a0076951', 'a-m and A-M are 26 different characters but not a pangram', 'abcdefghijklm ABCDEFGHIJKLM', false); |
| 18 | +INSERT INTO |
| 19 | + tests (uuid, description, sentence, expected) |
| 20 | +VALUES |
| 21 | + ( |
| 22 | + '64f61791-508e-4f5c-83ab-05de042b0149', |
| 23 | + 'empty sentence', |
| 24 | + '', |
| 25 | + false |
| 26 | + ), |
| 27 | + ( |
| 28 | + '74858f80-4a4d-478b-8a5e-c6477e4e4e84', |
| 29 | + 'perfect lower case', |
| 30 | + 'abcdefghijklmnopqrstuvwxyz', |
| 31 | + true |
| 32 | + ), |
| 33 | + ( |
| 34 | + '61288860-35ca-4abe-ba08-f5df76ecbdcd', |
| 35 | + 'only lower case', |
| 36 | + 'the quick brown fox jumps over the lazy dog', |
| 37 | + true |
| 38 | + ), |
| 39 | + ( |
| 40 | + '6564267d-8ac5-4d29-baf2-e7d2e304a743', |
| 41 | + 'missing the letter ''x''', |
| 42 | + 'a quick movement of the enemy will jeopardize five gunboats', |
| 43 | + false |
| 44 | + ), |
| 45 | + ( |
| 46 | + 'c79af1be-d715-4cdb-a5f2-b2fa3e7e0de0', |
| 47 | + 'missing the letter ''h''', |
| 48 | + 'five boxing wizards jump quickly at it', |
| 49 | + false |
| 50 | + ), |
| 51 | + ( |
| 52 | + 'd835ec38-bc8f-48e4-9e36-eb232427b1df', |
| 53 | + 'with underscores', |
| 54 | + 'the_quick_brown_fox_jumps_over_the_lazy_dog', |
| 55 | + true |
| 56 | + ), |
| 57 | + ( |
| 58 | + '8cc1e080-a178-4494-b4b3-06982c9be2a8', |
| 59 | + 'with numbers', |
| 60 | + 'the 1 quick brown fox jumps over the 2 lazy dogs', |
| 61 | + true |
| 62 | + ), |
| 63 | + ( |
| 64 | + 'bed96b1c-ff95-45b8-9731-fdbdcb6ede9a', |
| 65 | + 'missing letters replaced by numbers', |
| 66 | + '7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog', |
| 67 | + false |
| 68 | + ), |
| 69 | + ( |
| 70 | + '938bd5d8-ade5-40e2-a2d9-55a338a01030', |
| 71 | + 'mixed case and punctuation', |
| 72 | + '"Five quacking Zephyrs jolt my wax bed."', |
| 73 | + true |
| 74 | + ), |
| 75 | + ( |
| 76 | + '7138e389-83e4-4c6e-8413-1e40a0076951', |
| 77 | + 'a-m and A-M are 26 different characters but not a pangram', |
| 78 | + 'abcdefghijklm ABCDEFGHIJKLM', |
| 79 | + false |
| 80 | + ); |
0 commit comments