console - fix test when unicode-width is enabled and strip-ansi-escapes is not.
Peter Michael Green
2 years ago
|
0 |
rust-console (0.13.0-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
|
|
1 |
|
|
2 |
* Team upload.
|
|
3 |
* Package console 0.13.0 from crates.io using debcargo 2.4.4
|
|
4 |
* fix test when unicode-width is enabled and strip-ansi-escapes is not.
|
|
5 |
|
|
6 |
-- Peter Michael Green <plugwash@debian.org> Sat, 04 Sep 2021 20:24:56 +0000
|
|
7 |
|
0 | 8 |
rust-console (0.13.0-1) unstable; urgency=medium
|
1 | 9 |
|
2 | 10 |
* Team upload.
|
|
0 |
commit 4c9a583301c9a3683224e5ab32bad1b7271cf403
|
|
1 |
Author: Peter Michael Green <plugwash@debian.org>
|
|
2 |
Date: Sat Sep 4 19:42:56 2021 +0000
|
|
3 |
|
|
4 |
Add expected result for test_text_width in the case where unicode-width is enabled and strip-ansi-escapes is not.
|
|
5 |
|
|
6 |
diff --git a/src/utils.rs b/src/utils.rs
|
|
7 |
index 9c58490..d9cbee8 100644
|
|
8 |
--- a/src/utils.rs
|
|
9 |
+++ b/src/utils.rs
|
|
10 |
@@ -850,6 +850,8 @@ fn test_text_width() {
|
|
11 |
measure_text_width(&s),
|
|
12 |
if cfg!(feature = "ansi-parsing") {
|
|
13 |
3
|
|
14 |
+ } else if cfg!(feature = "unicode-width") {
|
|
15 |
+ 17
|
|
16 |
} else {
|
|
17 |
21
|
|
18 |
}
|
|
0 |
fix-test-unicode-width.patch
|