summaryrefslogtreecommitdiff
path: root/test/-ext-/typeddata/test_typeddata.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/typeddata/test_typeddata.rb')
-rw-r--r--test/-ext-/typeddata/test_typeddata.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/-ext-/typeddata/test_typeddata.rb b/test/-ext-/typeddata/test_typeddata.rb
index c24ad08..31fe32b 100644
--- a/test/-ext-/typeddata/test_typeddata.rb
+++ b/test/-ext-/typeddata/test_typeddata.rb
@@ -12,5 +12,8 @@ class Test_TypedData < Test::Unit::TestCase
assert_raise_with_message(TypeError, "wrong argument type Fixnum (expected typed_data)") {Bug::TypedData.check(0)}
assert_raise_with_message(TypeError, "wrong argument type String (expected typed_data)") {Bug::TypedData.check("a")}
+
+ obj = eval("class C\u{1f5ff}; self; end").new
+ assert_raise_with_message(TypeError, /C\u{1f5ff}/) {Bug::TypedData.check(obj)}
end
end