#!/usr/bin/env bats load test_helper @test 'assert() : returns 0 if evaluates to TRUE' { run assert true assert_test_pass } @test 'assert() : returns 1 and displays if it evaluates to FALSE' { run assert false assert_test_fail <<'ERR_MSG' -- assertion failed -- expression : false -- ERR_MSG }