Skip to content

Commit 56ed768

Browse files
committed
added rows to palindrome testing table
Signed-off-by: Konstantin Läufer <laufer@cs.luc.edu>
1 parent 9b3441e commit 56ed768

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

source/30-testing.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,16 @@ Table-based testing (also known as data-driven testing)
138138
139139
val palindromeTable =
140140
"string" | "result" |
141-
"mom" ! true |
142-
"dad" ! true |
143-
"uncle" ! false |
144-
"radar" ! true |
145-
"lidar" ! false
141+
"a" | true |
142+
"aa" | true |
143+
"ab" | false |
144+
"mom" ! true |
145+
"dad" ! true |
146+
"abba" ! true |
147+
"uncle" ! false |
148+
"radar" ! true |
149+
"lidar" ! false |
150+
"hannah" | true
146151
147152
palindromeTable |> (
148153
(s, r) => assert(isPalindrome(s) == r)

0 commit comments

Comments
 (0)