From 36dee4f0d8ea806b2f061ed66a89e812ab007ed2 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 22 Dec 2025 07:38:52 +0100 Subject: feat: test: Add `kout` test and rename DeviceInterface to IDevice in KernelKit. introduce UserPtr and unburden vettable by removing the IVettable helper. Signed-off-by: Amlal El Mahrouss --- test/kout_test/kout.test.cc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'test') 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 +#include + +/// \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 -- cgit v1.2.3