blob: dccab61cede766366e7809925fc8c6196a372e22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
require 'test/unit'
require '-test-/string'
class Test_String_ChilledString < Test::Unit::TestCase
def test_rb_str_chilled_p
str = ""
assert_equal true, Bug::String.rb_str_chilled_p(str)
end
def test_rb_str_chilled_p_frozen
str = "".freeze
assert_equal false, Bug::String.rb_str_chilled_p(str)
end
def test_rb_str_chilled_p_mutable
str = "".dup
assert_equal false, Bug::String.rb_str_chilled_p(str)
end
end
|