nushell/crates/nu-command/src
Anton 7221eb7f39
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.
2023-01-15 15:03:32 +13:00
..
bits Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
bytes Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
charting Fix typos by codespell (#7600) 2022-12-26 02:31:26 -05:00
conversions Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
core_commands Continue and Break on Try/Catch (#7683) 2023-01-05 21:41:51 +01:00
database Standardise the use of ShellError::UnsupportedInput and ShellError::TypeMismatch and add spans to every instance of the former (#7217) 2022-12-23 01:48:53 -05:00
dataframe Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
date Add extra_usage messages for subcommand-only commands (#7594) 2022-12-24 07:16:29 -06:00
deprecated Remove math eval command (#7284) 2023-01-04 23:50:18 +01:00
env Fix an example of env command (#7603) 2022-12-26 16:40:34 +08:00
experimental Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
filesystem Progress bar Implementation (#7661) 2023-01-10 20:57:48 -05:00
filters [Chore] cleanup in where implementation (#7679) 2023-01-04 22:50:02 +01:00
formats Support redirect err and out to different streams (#7685) 2023-01-12 10:22:30 +01:00
generators Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
hash Add extra_usage messages for subcommand-only commands (#7594) 2022-12-24 07:16:29 -06:00
math Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
misc Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
network Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
path spanned error on path exists command (#7717) 2023-01-12 06:56:39 -06:00
platform Fix typos by codespell (#7600) 2022-12-26 02:31:26 -05:00
random Add search terms in random and expression categories (#7736) 2023-01-12 14:01:40 +01:00
shells Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
strings Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
system Trim quotes when shelling out to cmd.exe (#7740) 2023-01-13 11:00:30 -08:00
viewers Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
default_context.rs Url encode to escape special characters (#7664) 2023-01-05 19:24:38 +01:00
example_test.rs Make stream info visible to users in describe (#7589) 2023-01-03 21:08:05 -08:00
input_handler.rs Standardise the use of ShellError::UnsupportedInput and ShellError::TypeMismatch and add spans to every instance of the former (#7217) 2022-12-23 01:48:53 -05:00
lib.rs Progress bar Implementation (#7661) 2023-01-10 20:57:48 -05:00
progress_bar.rs Progress bar Implementation (#7661) 2023-01-10 20:57:48 -05:00
sort_utils.rs Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00