forked from extern/nushell
Fix Running echo .. starts printing integers forever (#3322)
This commit is contained in:
@ -433,6 +433,30 @@ fn index_cell_alt() {
|
||||
assert_eq!(actual.out, "bob");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn not_echoing_ranges_without_numbers() {
|
||||
let actual = nu!(
|
||||
cwd: ".",
|
||||
r#"
|
||||
echo ..
|
||||
"#
|
||||
);
|
||||
|
||||
assert_eq!(actual.out, "..");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn not_echoing_exclusive_ranges_without_numbers() {
|
||||
let actual = nu!(
|
||||
cwd: ".",
|
||||
r#"
|
||||
echo ..<
|
||||
"#
|
||||
);
|
||||
|
||||
assert_eq!(actual.out, "..<");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn echoing_ranges() {
|
||||
let actual = nu!(
|
||||
|
Reference in New Issue
Block a user