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
- start_bottles INTEGER NOT NULL ,
14
- take_down INTEGER NOT NULL ,
15
- expected TEXT 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
+ start_bottles INTEGER NOT NULL ,
15
+ take_down INTEGER NOT NULL ,
16
+ expected TEXT NOT NULL
16
17
);
17
18
18
- INSERT INTO tests (uuid, description, start_bottles, take_down, expected)
19
+ INSERT INTO
20
+ tests (
21
+ uuid,
22
+ description,
23
+ start_bottles,
24
+ take_down,
25
+ expected
26
+ )
19
27
VALUES
20
- (' d4ccf8fc-01dc-48c0-a201-4fbeb30f2d03' ,' first generic verse' ,10 ,1 ,' Ten green bottles hanging on the wall,
28
+ (
29
+ ' d4ccf8fc-01dc-48c0-a201-4fbeb30f2d03' ,
30
+ ' first generic verse' ,
31
+ 10 ,
32
+ 1 ,
33
+ ' Ten green bottles hanging on the wall,
21
34
Ten green bottles hanging on the wall,
22
35
And if one green bottle should accidentally fall,
23
- There' ' ll be nine green bottles hanging on the wall.' ),
24
- (' 0f0aded3-472a-4c64-b842-18d4f1f5f030' ,' last generic verse' ,3 ,1 ,' Three green bottles hanging on the wall,
36
+ There' ' ll be nine green bottles hanging on the wall.'
37
+ ),
38
+ (
39
+ ' 0f0aded3-472a-4c64-b842-18d4f1f5f030' ,
40
+ ' last generic verse' ,
41
+ 3 ,
42
+ 1 ,
43
+ ' Three green bottles hanging on the wall,
25
44
Three green bottles hanging on the wall,
26
45
And if one green bottle should accidentally fall,
27
- There' ' ll be two green bottles hanging on the wall.' ),
28
- (' f61f3c97-131f-459e-b40a-7428f3ed99d9' ,' verse with 2 bottles' ,2 ,1 ,' Two green bottles hanging on the wall,
46
+ There' ' ll be two green bottles hanging on the wall.'
47
+ ),
48
+ (
49
+ ' f61f3c97-131f-459e-b40a-7428f3ed99d9' ,
50
+ ' verse with 2 bottles' ,
51
+ 2 ,
52
+ 1 ,
53
+ ' Two green bottles hanging on the wall,
29
54
Two green bottles hanging on the wall,
30
55
And if one green bottle should accidentally fall,
31
- There' ' ll be one green bottle hanging on the wall.' ),
32
- (' 05eadba9-5dbd-401e-a7e8-d17cc9baa8e0' ,' verse with 1 bottle' ,1 ,1 ,' One green bottle hanging on the wall,
56
+ There' ' ll be one green bottle hanging on the wall.'
57
+ ),
58
+ (
59
+ ' 05eadba9-5dbd-401e-a7e8-d17cc9baa8e0' ,
60
+ ' verse with 1 bottle' ,
61
+ 1 ,
62
+ 1 ,
63
+ ' One green bottle hanging on the wall,
33
64
One green bottle hanging on the wall,
34
65
And if one green bottle should accidentally fall,
35
- There' ' ll be no green bottles hanging on the wall.' ),
36
- (' a4a28170-83d6-4dc1-bd8b-319b6abb6a80' ,' first two verses' ,10 ,2 ,' Ten green bottles hanging on the wall,
66
+ There' ' ll be no green bottles hanging on the wall.'
67
+ ),
68
+ (
69
+ ' a4a28170-83d6-4dc1-bd8b-319b6abb6a80' ,
70
+ ' first two verses' ,
71
+ 10 ,
72
+ 2 ,
73
+ ' Ten green bottles hanging on the wall,
37
74
Ten green bottles hanging on the wall,
38
75
And if one green bottle should accidentally fall,
39
76
There' ' ll be nine green bottles hanging on the wall.
40
77
41
78
Nine green bottles hanging on the wall,
42
79
Nine green bottles hanging on the wall,
43
80
And if one green bottle should accidentally fall,
44
- There' ' ll be eight green bottles hanging on the wall.' ),
45
- (' 3185d438-c5ac-4ce6-bcd3-02c9ff1ed8db' ,' last three verses' ,3 ,3 ,' Three green bottles hanging on the wall,
81
+ There' ' ll be eight green bottles hanging on the wall.'
82
+ ),
83
+ (
84
+ ' 3185d438-c5ac-4ce6-bcd3-02c9ff1ed8db' ,
85
+ ' last three verses' ,
86
+ 3 ,
87
+ 3 ,
88
+ ' Three green bottles hanging on the wall,
46
89
Three green bottles hanging on the wall,
47
90
And if one green bottle should accidentally fall,
48
91
There' ' ll be two green bottles hanging on the wall.
@@ -55,8 +98,14 @@ There''ll be one green bottle hanging on the wall.
55
98
One green bottle hanging on the wall,
56
99
One green bottle hanging on the wall,
57
100
And if one green bottle should accidentally fall,
58
- There' ' ll be no green bottles hanging on the wall.' ),
59
- (' 28c1584a-0e51-4b65-9ae2-fbc0bf4bbb28' ,' all verses' ,10 ,10 ,' Ten green bottles hanging on the wall,
101
+ There' ' ll be no green bottles hanging on the wall.'
102
+ ),
103
+ (
104
+ ' 28c1584a-0e51-4b65-9ae2-fbc0bf4bbb28' ,
105
+ ' all verses' ,
106
+ 10 ,
107
+ 10 ,
108
+ ' Ten green bottles hanging on the wall,
60
109
Ten green bottles hanging on the wall,
61
110
And if one green bottle should accidentally fall,
62
111
There' ' ll be nine green bottles hanging on the wall.
@@ -104,4 +153,5 @@ There''ll be one green bottle hanging on the wall.
104
153
One green bottle hanging on the wall,
105
154
One green bottle hanging on the wall,
106
155
And if one green bottle should accidentally fall,
107
- There' ' ll be no green bottles hanging on the wall.' );
156
+ There' ' ll be no green bottles hanging on the wall.'
157
+ );
0 commit comments