Projects
Eulaceura:Factory
rubygem-idn
_service:obs_scm:rubygem-idn-0.0.2-ruby2-encodi...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:rubygem-idn-0.0.2-ruby2-encoding-in-tests-fix.patch of Package rubygem-idn
diff --git a/test/tc_Stringprep.rb b/test/tc_Stringprep.rb index c7f15cb..bcdd401 100644 --- a/test/tc_Stringprep.rb +++ b/test/tc_Stringprep.rb @@ -60,7 +60,7 @@ class Test_Stringprep < Test::Unit::TestCase def test_with_profile_STRINGPREP TESTCASES_STRINGPREP.each do |key, val| rc = Stringprep.with_profile(val[1], val[0]) - assert_equal(val[2], rc, "TestCase #{key} failed") + assert_equal(val[2].force_encoding('ASCII-8BIT'), rc, "TestCase #{key} failed") end end @@ -75,7 +75,7 @@ class Test_Stringprep < Test::Unit::TestCase def test_nfkc_normalize_NFKC TESTCASES_NFKC.each do |key, val| rc = Stringprep.nfkc_normalize(val[0]) - assert_equal(val[1], rc, "TestCase #{key} failed") + assert_equal(val[1].force_encoding('ASCII-8BIT'), rc, "TestCase #{key} failed") end end end
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2