Skip to content

Latest commit

 

History

History
26 lines (12 loc) · 330 Bytes

fn_assert.md

File metadata and controls

26 lines (12 loc) · 330 Bytes

Best: assert

Asserts a statement returns true. This will exit the test immediately if it fails.

Arguments:

  • ... [string] -- The command and arguments to execute.

Caveats:

  • The bash-specific [[ a = b ]] syntax does not work.

Example:

assert [ "hello" = "world" ]
assert ! false