Skip to content

Commit

Permalink
Merge pull request #61 from itchyny/fix-zwj-tests
Browse files Browse the repository at this point in the history
Use unicode escape sequence in zero width joiner tests
  • Loading branch information
mattn committed Mar 21, 2022
2 parents 95547ad + 910287e commit 4190c90
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions runewidth_test.go
Expand Up @@ -457,15 +457,15 @@ func TestZeroWidthJoiner(t *testing.T) {
want int
}{
{"πŸ‘©", 2},
{"πŸ‘©β€", 2},
{"πŸ‘©β€πŸ³", 2},
{"β€πŸ³", 2},
{"πŸ‘¨β€πŸ‘¨", 2},
{"πŸ‘¨β€πŸ‘¨β€πŸ‘§", 2},
{"πŸ³οΈβ€πŸŒˆ", 1},
{"γ‚πŸ‘©β€πŸ³γ„", 6},
{"γ‚β€πŸ³γ„", 6},
{"あ‍い", 4},
{"πŸ‘©\u200d", 2},
{"πŸ‘©\u200d🍳", 2},
{"\u200d🍳", 2},
{"πŸ‘¨\u200dπŸ‘¨", 2},
{"πŸ‘¨\u200dπŸ‘¨\u200dπŸ‘§", 2},
{"🏳️\u200d🌈", 1},
{"γ‚πŸ‘©\u200dπŸ³γ„", 6},
{"あ\u200dπŸ³γ„", 6},
{"あ\u200dい", 4},
}

for _, tt := range tests {
Expand Down

0 comments on commit 4190c90

Please sign in to comment.