Skip to content

Commit 6687a1c

Browse files
authored
check for the expected output in test
1 parent 690faf7 commit 6687a1c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/by-util/test_numfmt.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,8 @@ fn test_locale_c_uses_period() {
15191519
#[test]
15201520
fn test_ignores_invalid_mode_issue11935() {
15211521
new_ucmd!()
1522-
.args(&["--invalid=warn", "100 1e5 200"])
1523-
.succeeds();
1522+
.args(&["--invalid=warn", "100", "1e5", "200"])
1523+
.succeeds()
1524+
.stderr_is("numfmt: invalid suffix in input: '1e5'\n")
1525+
.stdout_is("100\n1e5\n200\n");
15241526
}

0 commit comments

Comments
 (0)