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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
# Adapted from https://github.com/simplecov-ruby/simplecov/pull/694#issuecomment-562097006
# rubocop:disable all
x = 1
x.eql?(4) ? "4" : x
puts x unless x.eql?(5)
unless x == 5
puts "Ola.."
end
unless x != 5
puts "Ola.."
end
unless x != 5
puts "Ola.."
else
puts "text"
end
puts x if x.eql?(5)
if x != 5
puts "Ola.."
end
if x == 5
puts "Ola.."
end
if x != 5
puts "Ola.."
else
puts "text"
end
x = 4
if x == 1
puts "wow 1"
puts "such excite!"
elsif x == 4
4.times { puts "4!!!!"}
elsif x == 14
puts "magic"
puts "very"
else
puts x
end
# rubocop:enable all
|