require 'test/unit' class TestUTF32 < Test::Unit::TestCase def encdump(str) d = str.dump if /\.force_encoding\("[A-Za-z0-9.:_+-]*"\)\z/ =~ d d else "#{d}.force_encoding(#{str.encoding.name.dump})" end end def assert_str_equal(expected, actual, message=nil) full_message = build_message(message, <