aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-16 01:21:55 -0500
committerJesse Luehrs <doy@tozt.net>2021-11-16 01:21:55 -0500
commit3f17c0e2afb8ff7ffa2adb4b7573db219cdc1cc0 (patch)
treebe402b1e068f6b4b897663e7d86f306e6cfd1d40 /tests
parent4490ced4e32f47863539d1d346e1619ba581322b (diff)
downloadtextmode-3f17c0e2afb8ff7ffa2adb4b7573db219cdc1cc0.tar.gz
textmode-3f17c0e2afb8ff7ffa2adb4b7573db219cdc1cc0.zip
clippy
Diffstat (limited to 'tests')
-rw-r--r--tests/input.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/input.rs b/tests/input.rs
index 80bdbd6..c341717 100644
--- a/tests/input.rs
+++ b/tests/input.rs
@@ -58,6 +58,8 @@ fn test_async() {
}
}
+// the structure of the if statements here are easier to interpret uncollapsed
+#[allow(clippy::collapsible_else_if)]
fn run_input_test(
fixture: &mut fixtures::BuiltFixture,
utf8: bool,
@@ -93,12 +95,11 @@ fn run_input_test(
assert_line(&mut r, "Up: [27, 91, 65]");
} else {
if single {
+ assert_line(&mut r, "Byte(27): [27]");
if utf8 {
- assert_line(&mut r, "Byte(27): [27]");
assert_line(&mut r, "Char('['): [91]");
assert_line(&mut r, "Char('A'): [65]");
} else {
- assert_line(&mut r, "Byte(27): [27]");
assert_line(&mut r, "Byte(91): [91]");
assert_line(&mut r, "Byte(65): [65]");
}