nushell/crates/nu-std/lib
Kamil ca275f59da
Added assert not command (assertion that the value/expression is false) (#9235)
# Description
A new command to simplify assertions for `false`.

The name is just a draft, though I could not come up with a better name.
I have rejected `assert false`, because I would have to rename `assert`
to `assert true` which would break the compatibility and worsen the
shell experience of the good old `assert`.

Another idea I have rejected was something like `assert_false` to keep
it consistent with the naming convention of our stdlib.

I am open to suggestions :)

# User-Facing Changes
Just a new command

# Tests + Formatting
- [x] Done

# After Submitting
<!-- If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
-->
2023-05-19 11:33:19 +02:00
..
dirs.nu REFACTOR: remove the shell commands (#8415) 2023-05-13 12:40:11 -05:00
dt.nu REFACTOR: move the banner from the rust source to the standard library (#8406) 2023-05-10 07:05:01 -05:00
help.nu fix spurious 'item not found' error in std help (#9197) 2023-05-17 20:02:23 +02:00
iter.nu add more commands to std iter (#9129) 2023-05-10 19:18:42 +02:00
log.nu swap the date and the log level in the std log format (#9138) 2023-05-08 12:29:18 -05:00
mod.nu add the no-strip flag to the clip command (#9216) 2023-05-18 13:07:47 +02:00
testing.nu Added assert not command (assertion that the value/expression is false) (#9235) 2023-05-19 11:33:19 +02:00
xml.nu stdlib: refactor into a multi-module library (#8815) 2023-04-09 20:00:20 +03:00