tagged release 0.7.1
[parrot.git] / languages / cardinal / t / array / include.t
blobffd8e91e1e8942a2409d9464af99192e08ca0131
1 puts "1..6"
3 a = [ 1, 2 ]
5 a.each() do |i|
6     puts 'ok ', i
7 end
9 b = [ [ 3, 4 ], [ 5, 6 ] ]
11 puts "ok 3" if b[0].include?(3)
12 puts "ok 4" if not b[0].include?(400)
13 puts "ok 5" if !b[1].include?(500)
14 puts "ok 6" if b[1].include?(6)
16 #If working, the following lines will not print
17 puts "nok 7" if !b[1].include?(6)
18 puts "nok 8" if not b[0].include?(3)
19 puts "nok 9" if b[0].include?(100)