diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/fiddle/test_pointer.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fiddle/test_pointer.rb b/test/fiddle/test_pointer.rb index ec677324eb..aa77c619ef 100644 --- a/test/fiddle/test_pointer.rb +++ b/test/fiddle/test_pointer.rb @@ -35,7 +35,7 @@ module Fiddle end def test_to_str - str = "hello world" + str = Marshal.load(Marshal.dump("hello world")) ptr = Pointer[str] assert_equal 3, ptr.to_str(3).length @@ -46,7 +46,7 @@ module Fiddle end def test_to_s - str = "hello world" + str = Marshal.load(Marshal.dump("hello world")) ptr = Pointer[str] assert_equal 3, ptr.to_s(3).length @@ -202,7 +202,7 @@ module Fiddle assert_equal(str[0].ord, ptr[0]) assert_equal(str[1].ord, ptr[1]) } - str = 'abc' + str = Marshal.load(Marshal.dump('abc')) ptr = Pointer[str] check.call(str, ptr) |