diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/kout_test/kout.test.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/kout_test/kout.test.cc b/test/kout_test/kout.test.cc index 595a9397..639ab94e 100644 --- a/test/kout_test/kout.test.cc +++ b/test/kout_test/kout.test.cc @@ -1,5 +1,17 @@ /// \file kout.test.cc /// \brief Konsole Out tests. -/// \brief Main entrypoint function. -void test_main() {}
\ No newline at end of file +#include <libSystem/SystemKit/System.h> +#include <public/frameworks/KernelTest.fwrk/headers/TestCase.h> + +/// \note Declare tests +KT_DECL_TEST(KOutIsNull, []() -> bool { return PrintGet("/null/") == nullptr; }); +KT_DECL_TEST(KOutIsNotNull, []() -> bool { return PrintGet(nullptr) != nullptr; }); + +/// \brief Run 'kout' test. +SInt32 KT_TEST_MAIN() { + KT_RUN_TEST(KOutIsNull); + KT_RUN_TEST(KOutIsNotNull); + + return KT_TEST_SUCCESS; +}
\ No newline at end of file |
