Project

General

Profile

Backport #4557 ยป test.rb

Repeatable test case - Fuz (Steve Robb), 04/06/2011 09:41 PM

 
1
File.open('Quote.txt') do |f|
2
  f.chars.each do |c|
3
    puts c == '"' ? 'Quote' : 'Err'
4

    
5
    puts case c
6
    when '"' then 'QuoteCase'
7
    else          'ErrCase'
8
    end
9

    
10
    p c == '"', c === '"', c
11
  end
12
end