From 2664fd6f13e4c20284834c2f845fb548697444cb Mon Sep 17 00:00:00 2001 From: Malia Labor <99438964+MaliaLabor@users.noreply.github.com> Date: Tue, 3 Dec 2024 11:02:17 -0700 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Refactor=20tests=20(#47)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :recylce: Refactor tests * add missing ; * update names of tests --- tests/as_bytes.test.cpp | 3 +-- tests/bit.test.cpp | 3 +-- tests/can.test.cpp | 5 ++-- tests/enum.test.cpp | 3 +-- tests/i2c.test.cpp | 3 +-- tests/input_pin.test.cpp | 3 +-- tests/interrupt_pin.test.cpp | 3 +-- tests/main.test.cpp | 48 --------------------------------- tests/map.test.cpp | 3 +-- tests/math.test.cpp | 3 +-- tests/move_interceptor.test.cpp | 3 +-- tests/output_pin.test.cpp | 3 +-- tests/overflow_counter.test.cpp | 3 +-- tests/serial.test.cpp | 3 +-- tests/spi.test.cpp | 3 +-- tests/static_callable.test.cpp | 3 +-- tests/static_list.test.cpp | 3 +-- tests/steady_clock.test.cpp | 3 +-- tests/streams.test.cpp | 15 ++++------- tests/timeout.test.cpp | 3 +-- tests/units.test.cpp | 3 +-- 21 files changed, 25 insertions(+), 97 deletions(-) diff --git a/tests/as_bytes.test.cpp b/tests/as_bytes.test.cpp index 7b5ab34..0095674 100644 --- a/tests/as_bytes.test.cpp +++ b/tests/as_bytes.test.cpp @@ -20,8 +20,7 @@ #include namespace hal { -void as_bytes_test() -{ +boost::ut::suite<"as_bytes_test"> as_bytes_test = [] { using namespace boost::ut; "hal::as_bytes()"_test = []() { diff --git a/tests/bit.test.cpp b/tests/bit.test.cpp index ea6ec32..a0b3d3c 100644 --- a/tests/bit.test.cpp +++ b/tests/bit.test.cpp @@ -18,8 +18,7 @@ #include namespace hal { -void bit_test() -{ +boost::ut::suite<"bit_test"> bit_test = [] { using namespace boost::ut; "hal::bit_modify