Macro in tests coil-stdlib

not!

macro not(Expr expression) -> Code
Import
use tests::{not};
Source: src/tests.hy

Expands to !expression.

Invoke it as not!(…); the arguments are passed as code (Expr), not values.

Parameters#

NameType
expressionExpr

Returns#

Code

Examples#

use tests::{assert, not};
assert!(not!(1 > 2));

See also#

  • eq!: Expands to lhs == rhs.
  • matches!: Returns whether expr matches the pattern ty, as a bool.
  • type!: Expands to typeof ty: the type of an expression, as a value that can be compared.
  • and!: Expands to lhs && rhs.
  • assert!: Fails the enclosing function with an error when condition is false.
↑ ↓ navigate ↵ open