Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.26 kb
require 'Test'
include Test
plan 12
i = 1
while i < 5
ok(i < 5, 'while loop')
i = i + 1
end
a = [ 5, 6, 7, 8 ]
for i in a
ok(i < 9, 'for loop')
end
a = [1,2,3,4,5,6,7,8]
for i in a
next if i % 2 == 0
nok(i % 2, 'next in for loop')
end
Jump to Line
Something went wrong with that request. Please try again.