From cb77cbe9ce4cddad6a460aa190ff70f0c13e4703 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 12 Feb 2025 23:34:47 +0100 Subject: Rename log to logging --- asl/log/log_tests.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 asl/log/log_tests.cpp (limited to 'asl/log/log_tests.cpp') diff --git a/asl/log/log_tests.cpp b/asl/log/log_tests.cpp deleted file mode 100644 index b174fd3..0000000 --- a/asl/log/log_tests.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include "asl/log/log.hpp" -#include "asl/testing/testing.hpp" -#include "asl/string_builder.hpp" - -ASL_TEST(log) -{ - asl::log::log(asl::log::kInfo, asl::source_location{}, "Hello, {}!", "world"_sv); - - ASL_LOG_ERROR("Oh no! {}", 42); -} - -static asl::StringWriter g_string_writer{}; - -ASL_TEST(custom_writer) -{ - asl::log::register_logger&>>(g_string_writer); - - ASL_LOG_INFO("Hello"); - auto sv = g_string_writer.as_string_view(); - - ASL_TEST_EXPECT(sv == "[ INFO ] asl/log/log_tests.cpp:18: Hello\n"); -} - -- cgit