Skip to content

Commit

Permalink
Merge pull request #105 from plugwash/master
Browse files Browse the repository at this point in the history
Add expected result for test_text_width in the case where unicode-width is enabled and strip-ansi-escapes is not.
  • Loading branch information
pksunkara authored Sep 4, 2021
2 parents fa487a2 + 4c9a583 commit f72c759
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,8 @@ fn test_text_width() {
measure_text_width(&s),
if cfg!(feature = "ansi-parsing") {
3
} else if cfg!(feature = "unicode-width") {
17
} else {
21
}
Expand Down

0 comments on commit f72c759

Please sign in to comment.