父節點
d8f9db8f9a
當前提交
a4b5db4005
@ -5,13 +5,13 @@ class Program {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void main() {
|
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");
|
print("Assertion failed ...\n");
|
||||||
};
|
};
|
||||||
assert_options(ASSERT_ACTIVE, true);
|
assert_options(ASSERT_ACTIVE, true);
|
||||||
assert_options(ASSERT_BAIL, false);
|
assert_options(ASSERT_BAIL, false);
|
||||||
assert_options(ASSERT_WARNING, false);
|
assert_options(ASSERT_WARNING, false);
|
||||||
assert_options(ASSERT_CALLBACK, $a);
|
assert_options(ASSERT_CALLBACK, $assert_fail);
|
||||||
$this->test_assert(true);
|
$this->test_assert(true);
|
||||||
$this->test_assert(1);
|
$this->test_assert(1);
|
||||||
}
|
}
|
||||||
|
載入中…
x
新增問題並參考
Block a user