File: case.rb

package info (click to toggle)
ruby-beautify 0.97.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 340 kB
  • sloc: ruby: 628; makefile: 8
file content (11 lines) | stat: -rw-r--r-- 161 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
# Test to validate case statements
def case_test opts=nil
case test_case
when 'Passing'
call(:pass)
when 'Failing'
call(:fail)
when 'Error'
call(:error)
end
end