Skip to content

Commit 2094e6a

Browse files
committed
Adding more test cases with different upper and lowercase values
1 parent 7179ded commit 2094e6a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/uu/stty/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ path = "src/stty.rs"
2020
[dependencies]
2121
clap = { workspace = true }
2222
uucore = { workspace = true, features = ["parser"] }
23-
nix = { workspace = true, features = ["term", "ioctl"] }
23+
rustix = { workspace = true, features = ["termios", "fs", "ioctl"] }
2424
fluent = { workspace = true }
2525

2626
[[bin]]

tests/by-util/test_stty.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ fn test_row_column_hex_octal() {
299299
// Test various numeric formats: hex (0x1E), octal (036), uppercase hex (0X1E), decimal (30), and zero
300300
let test_cases = [
301301
("rows", "0x1E"), // hexadecimal = 30
302+
("rows", "0x1e"), // lowercase hexadecimal = 30
303+
("rows", "0X1e"), // upper and lowercase hexadecimal = 30
302304
("rows", "036"), // octal = 30
303305
("cols", "0X1E"), // uppercase hex = 30
304306
("columns", "30"), // decimal = 30

0 commit comments

Comments
 (0)