We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b3441e commit 56ed768Copy full SHA for 56ed768
1 file changed
source/30-testing.rst
@@ -138,11 +138,16 @@ Table-based testing (also known as data-driven testing)
138
139
val palindromeTable =
140
"string" | "result" |
141
- "mom" ! true |
142
- "dad" ! true |
143
- "uncle" ! false |
144
- "radar" ! true |
145
- "lidar" ! false
+ "a" | true |
+ "aa" | true |
+ "ab" | false |
+ "mom" ! true |
+ "dad" ! true |
146
+ "abba" ! true |
147
+ "uncle" ! false |
148
+ "radar" ! true |
149
+ "lidar" ! false |
150
+ "hannah" | true
151
152
palindromeTable |> (
153
(s, r) => assert(isPalindrome(s) == r)
0 commit comments