File: rubyish-4-tests.t

package info (click to toggle)
nqp 2024.09%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,972 kB
  • sloc: java: 28,087; perl: 3,479; ansic: 451; makefile: 202; javascript: 68; sh: 1
file content (26 lines) | stat: -rw-r--r-- 267 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
puts "1..5"

a = "ok 1"
puts a

ifb = "nok 1"
ifb = "ok 2"
puts ifb

def pass_a_test
    puts "ok 3"
end
pass_a_test()

def pass_another(test)
    puts test
end
pass_another("ok 4")

class Tester
    def test
        puts "ok 5"
    end
end
t = new Tester()
t.test()