summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/-ext-/symbol/test_inadvertent_creation.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/-ext-/symbol/test_inadvertent_creation.rb b/test/-ext-/symbol/test_inadvertent_creation.rb
index 465f032bbb..9c5fa04407 100644
--- a/test/-ext-/symbol/test_inadvertent_creation.rb
+++ b/test/-ext-/symbol/test_inadvertent_creation.rb
@@ -36,6 +36,13 @@ module Test_Symbol
cl = Class.new
name = noninterned_name("A")
+ assert_not_interned_error(cl, :const_get, name, Feature5072)
+ end
+
+ def test_module_const_defined?
+ cl = Class.new
+ name = noninterned_name("A")
+
assert_not_interned_false(cl, :const_defined?, name, Feature5072)
end