mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 10:05:10 +00:00
17 lines
317 B
C++
17 lines
317 B
C++
/*
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibTest/TestCase.h>
|
|
|
|
#include <assert.h>
|
|
|
|
TEST_CASE(assert)
|
|
{
|
|
EXPECT_CRASH("This should assert", [] {
|
|
assert(!"This should assert");
|
|
return Test::Crash::Failure::DidNotCrash;
|
|
});
|
|
}
|