control_flow/case_no_else.rb

tests/_examples/control_flow/case_no_else.rb in the metorex repository.

# Case statement without else clause
x = 1

case x
  when 0
    puts "zero"
  when 1
    puts "one"
  when 2
    puts "two"
end