You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/practice/house/test_house.zig
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ test "verse one - the house that jack built" {
9
9
constexpected: []constu8=
10
10
\\This is the house that Jack built.
11
11
;
12
-
constactual=house.recite(&buffer, 1, 1);
12
+
constactual=tryhouse.recite(&buffer, 1, 1);
13
13
trytesting.expectEqualStrings(expected, actual);
14
14
}
15
15
@@ -19,7 +19,7 @@ test "verse two - the malt that lay" {
19
19
constexpected: []constu8=
20
20
\\This is the malt that lay in the house that Jack built.
21
21
;
22
-
constactual=house.recite(&buffer, 2, 2);
22
+
constactual=tryhouse.recite(&buffer, 2, 2);
23
23
trytesting.expectEqualStrings(expected, actual);
24
24
}
25
25
@@ -29,7 +29,7 @@ test "verse three - the rat that ate" {
29
29
constexpected: []constu8=
30
30
\\This is the rat that ate the malt that lay in the house that Jack built.
31
31
;
32
-
constactual=house.recite(&buffer, 3, 3);
32
+
constactual=tryhouse.recite(&buffer, 3, 3);
33
33
trytesting.expectEqualStrings(expected, actual);
34
34
}
35
35
@@ -39,7 +39,7 @@ test "verse four - the cat that killed" {
39
39
constexpected: []constu8=
40
40
\\This is the cat that killed the rat that ate the malt that lay in the house that Jack built.
41
41
;
42
-
constactual=house.recite(&buffer, 4, 4);
42
+
constactual=tryhouse.recite(&buffer, 4, 4);
43
43
trytesting.expectEqualStrings(expected, actual);
44
44
}
45
45
@@ -49,7 +49,7 @@ test "verse five - the dog that worried" {
49
49
constexpected: []constu8=
50
50
\\This is the dog that worried the cat that killed the rat that ate the malt that lay in the house that Jack built.
51
51
;
52
-
constactual=house.recite(&buffer, 5, 5);
52
+
constactual=tryhouse.recite(&buffer, 5, 5);
53
53
trytesting.expectEqualStrings(expected, actual);
54
54
}
55
55
@@ -59,7 +59,7 @@ test "verse six - the cow with the crumpled horn" {
59
59
constexpected: []constu8=
60
60
\\This is the cow with the crumpled horn that tossed the dog that worried the cat that killed the rat that ate the malt that lay in the house that Jack built.
61
61
;
62
-
constactual=house.recite(&buffer, 6, 6);
62
+
constactual=tryhouse.recite(&buffer, 6, 6);
63
63
trytesting.expectEqualStrings(expected, actual);
64
64
}
65
65
@@ -69,7 +69,7 @@ test "verse seven - the maiden all forlorn" {
69
69
constexpected: []constu8=
70
70
\\This is the maiden all forlorn that milked the cow with the crumpled horn that tossed the dog that worried the cat that killed the rat that ate the malt that lay in the house that Jack built.
71
71
;
72
-
constactual=house.recite(&buffer, 7, 7);
72
+
constactual=tryhouse.recite(&buffer, 7, 7);
73
73
trytesting.expectEqualStrings(expected, actual);
74
74
}
75
75
@@ -79,7 +79,7 @@ test "verse eight - the man all tattered and torn" {
79
79
constexpected: []constu8=
80
80
\\This is the man all tattered and torn that kissed the maiden all forlorn that milked the cow with the crumpled horn that tossed the dog that worried the cat that killed the rat that ate the malt that lay in the house that Jack built.
81
81
;
82
-
constactual=house.recite(&buffer, 8, 8);
82
+
constactual=tryhouse.recite(&buffer, 8, 8);
83
83
trytesting.expectEqualStrings(expected, actual);
84
84
}
85
85
@@ -89,7 +89,7 @@ test "verse nine - the priest all shaven and shorn" {
89
89
constexpected: []constu8=
90
90
\\This is the priest all shaven and shorn that married the man all tattered and torn that kissed the maiden all forlorn that milked the cow with the crumpled horn that tossed the dog that worried the cat that killed the rat that ate the malt that lay in the house that Jack built.
91
91
;
92
-
constactual=house.recite(&buffer, 9, 9);
92
+
constactual=tryhouse.recite(&buffer, 9, 9);
93
93
trytesting.expectEqualStrings(expected, actual);
94
94
}
95
95
@@ -99,7 +99,7 @@ test "verse 10 - the rooster that crowed in the morn" {
99
99
constexpected: []constu8=
100
100
\\This is the rooster that crowed in the morn that woke the priest all shaven and shorn that married the man all tattered and torn that kissed the maiden all forlorn that milked the cow with the crumpled horn that tossed the dog that worried the cat that killed the rat that ate the malt that lay in the house that Jack built.
101
101
;
102
-
constactual=house.recite(&buffer, 10, 10);
102
+
constactual=tryhouse.recite(&buffer, 10, 10);
103
103
trytesting.expectEqualStrings(expected, actual);
104
104
}
105
105
@@ -109,7 +109,7 @@ test "verse 11 - the farmer sowing his corn" {
109
109
constexpected: []constu8=
110
110
\\This is the farmer sowing his corn that kept the rooster that crowed in the morn that woke the priest all shaven and shorn that married the man all tattered and torn that kissed the maiden all forlorn that milked the cow with the crumpled horn that tossed the dog that worried the cat that killed the rat that ate the malt that lay in the house that Jack built.
111
111
;
112
-
constactual=house.recite(&buffer, 11, 11);
112
+
constactual=tryhouse.recite(&buffer, 11, 11);
113
113
trytesting.expectEqualStrings(expected, actual);
114
114
}
115
115
@@ -119,7 +119,7 @@ test "verse 12 - the horse and the hound and the horn" {
119
119
constexpected: []constu8=
120
120
\\This is the horse and the hound and the horn that belonged to the farmer sowing his corn that kept the rooster that crowed in the morn that woke the priest all shaven and shorn that married the man all tattered and torn that kissed the maiden all forlorn that milked the cow with the crumpled horn that tossed the dog that worried the cat that killed the rat that ate the malt that lay in the house that Jack built.
121
121
;
122
-
constactual=house.recite(&buffer, 12, 12);
122
+
constactual=tryhouse.recite(&buffer, 12, 12);
123
123
trytesting.expectEqualStrings(expected, actual);
124
124
}
125
125
@@ -133,7 +133,7 @@ test "multiple verses" {
133
133
\\This is the maiden all forlorn that milked the cow with the crumpled horn that tossed the dog that worried the cat that killed the rat that ate the malt that lay in the house that Jack built.
134
134
\\This is the man all tattered and torn that kissed the maiden all forlorn that milked the cow with the crumpled horn that tossed the dog that worried the cat that killed the rat that ate the malt that lay in the house that Jack built.
135
135
;
136
-
constactual=house.recite(&buffer, 4, 8);
136
+
constactual=tryhouse.recite(&buffer, 4, 8);
137
137
trytesting.expectEqualStrings(expected, actual);
138
138
}
139
139
@@ -154,6 +154,6 @@ test "full rhyme" {
154
154
\\This is the farmer sowing his corn that kept the rooster that crowed in the morn that woke the priest all shaven and shorn that married the man all tattered and torn that kissed the maiden all forlorn that milked the cow with the crumpled horn that tossed the dog that worried the cat that killed the rat that ate the malt that lay in the house that Jack built.
155
155
\\This is the horse and the hound and the horn that belonged to the farmer sowing his corn that kept the rooster that crowed in the morn that woke the priest all shaven and shorn that married the man all tattered and torn that kissed the maiden all forlorn that milked the cow with the crumpled horn that tossed the dog that worried the cat that killed the rat that ate the malt that lay in the house that Jack built.
0 commit comments