Browse Source

Formatting.

pull/50/head
Rafal Kupiec 2 years ago
parent
commit
a4b5db4005
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      tests/assertion_test.aer

+ 5
- 5
tests/assertion_test.aer View File

@ -5,13 +5,13 @@ class Program {
}
void main() {
callback $a = void(string $file, int $line, string $code) {
callback $assert_fail = void(string $file, int $line, string $code) {
print("Assertion failed ...\n");
};
assert_options(ASSERT_ACTIVE, true);
assert_options(ASSERT_BAIL, false);
assert_options(ASSERT_WARNING, false);
assert_options(ASSERT_CALLBACK, $a);
assert_options(ASSERT_ACTIVE, true);
assert_options(ASSERT_BAIL, false);
assert_options(ASSERT_WARNING, false);
assert_options(ASSERT_CALLBACK, $assert_fail);
$this->test_assert(true);
$this->test_assert(1);
}


Loading…
Cancel
Save