mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 03:34:58 +02:00
Rust 1.85, edition=2024 (#15741)
This commit is contained in:
@ -4,9 +4,11 @@ use nu_test_support::nu;
|
||||
fn error_label_works() {
|
||||
let actual = nu!("error make {msg:foo label:{text:unseen}}");
|
||||
|
||||
assert!(actual
|
||||
.err
|
||||
.contains("label at line 1, columns 1 to 10: unseen"));
|
||||
assert!(
|
||||
actual
|
||||
.err
|
||||
.contains("label at line 1, columns 1 to 10: unseen")
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -29,9 +31,11 @@ fn error_start_bigger_than_end_should_fail() {
|
||||
");
|
||||
|
||||
assert!(!actual.err.contains("invalid error format"));
|
||||
assert!(!actual
|
||||
.err
|
||||
.contains("`$.label.start` should be smaller than `$.label.end`"));
|
||||
assert!(
|
||||
!actual
|
||||
.err
|
||||
.contains("`$.label.start` should be smaller than `$.label.end`")
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user