Skip to content

Commit

Permalink
Add a failing test for https://bugs.ruby-lang.org/issues/20305.
Browse files Browse the repository at this point in the history
This bug demonstrates the issue I reported. It passes on commit
114e71d
but does not pass on commit (the immediate child of the above commit)
1d2d25d
  • Loading branch information
fable-stripe authored and nobu committed Feb 27, 2024
1 parent 3ca8b4a commit 7b56353
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/ruby/test_string.rb
Expand Up @@ -1130,6 +1130,11 @@ def test_grapheme_clusters_memory_leak
end;
end

def test_byteslice_grapheme_clusters
string = "안녕"
assert_equal(["안"], string.byteslice(0,4).grapheme_clusters)
end

def test_each_line
verbose, $VERBOSE = $VERBOSE, nil

Expand Down

0 comments on commit 7b56353

Please sign in to comment.