Test a function: Difference between revisions
→{{header|Wren}}: Improved output.
(Added Wren) |
(→{{header|Wren}}: Improved output.) |
||
Line 2,215:
var TestPal = Suite.new("Pal") { |it|
it.suite("'isPal' function:") { |it|
for (i in 0...words.count) {
it.should("return
Expect.call(isPal.call(words[i])).toEqual(expected[i])
}
Line 2,230:
{{out}}
<pre>
Palindromes:
'isPal' function:
✓ should return 'true'
✓ should return
✓ should return 'true'
✓ should return 'true'
✓ should return
✓ should return 'true'
|