forked from extern/nushell
Fix typos and use more idiomatic assertions (#7755)
I have changed `assert!(a == b)` calls to `assert_eq!(a, b)`, which give better error messages. Similarly for `assert!(a != b)` and `assert_ne!(a, b)`. Basically all instances were comparing primitives (string slices or integers), so there is no loss of generality from special-case macros, I have also fixed a number of typos in comments, variable names, and a few user-facing messages.
This commit is contained in:
@ -41,9 +41,9 @@ fn table_expand_0() {
|
||||
);
|
||||
}
|
||||
|
||||
// I am not sure whether the test is platform depent, cause we don't set a term_width on our own
|
||||
// I am not sure whether the test is platform dependent, cause we don't set a term_width on our own
|
||||
#[test]
|
||||
fn table_expand_exeed_overlap_0() {
|
||||
fn table_expand_exceed_overlap_0() {
|
||||
// no expand
|
||||
|
||||
let actual = nu!(r#"[[a b, c]; [xxxxxxxxxxxxxxxxxxxxxx 2 3] [4 5 [1 2 3]]] | table --expand"#);
|
||||
|
Reference in New Issue
Block a user