Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Of course, when fixing 1.9.1 take care not to break 1.8

  • Loading branch information...
commit 193ebd21f5a309e16226d859960ea5bdd27a126a 1 parent e57e378
@gwolf authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 test/test_ruby-ogginfo.rb
View
12 test/test_ruby-ogginfo.rb
@@ -146,10 +146,14 @@ def test_charset
end
OggInfo.open(tf.path, "iso-8859-1") do |ogg|
- string = ''
- string.force_encoding 'iso-8859-1'
- [104, 101, 108, 108, 111, 233].each {|chr| string << chr}
- assert_equal string, ogg.tag["title"]
+ if RUBY_VERSION[0..2] == '1.8'
+ assert_equal "hello\xe9", ogg.tag["title"]
+ else
+ string = ''
+ string.force_encoding 'iso-8859-1'
+ [104, 101, 108, 108, 111, 233].each {|chr| string << chr}
+ assert_equal string, ogg.tag["title"]
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.