Add a failing test for https://bugs.ruby-lang.org/issues/20305.
This bug demonstrates the issue I reported. It passes on commit114e71d062
but does not pass on commit (the immediate child of the above commit)1d2d25dcad
This commit is contained in:
parent
3ca8b4aee0
commit
7b56353d97
@ -1130,6 +1130,11 @@ CODE
|
|||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_byteslice_grapheme_clusters
|
||||||
|
string = "안녕"
|
||||||
|
assert_equal(["안"], string.byteslice(0,4).grapheme_clusters)
|
||||||
|
end
|
||||||
|
|
||||||
def test_each_line
|
def test_each_line
|
||||||
verbose, $VERBOSE = $VERBOSE, nil
|
verbose, $VERBOSE = $VERBOSE, nil
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user