Skip to content

Commit

Permalink
update names of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MaliaLabor committed Dec 3, 2024
1 parent c9f3705 commit 3febeae
Show file tree
Hide file tree
Showing 19 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion tests/bit.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"bit"> bit_test = [] {
boost::ut::suite<"bit_test"> bit_test = [] {
using namespace boost::ut;

"hal::bit_modify<template> compile time masks APIs"_test = []() {
Expand Down
2 changes: 1 addition & 1 deletion tests/can.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void check_validity(hal::hertz p_operating_frequency,
} // namespace

namespace hal {
boost::ut::suite<"can"> can_test = [] {
boost::ut::suite<"can_test"> can_test = [] {
using namespace boost::ut;

"operator==(can::message, can::message) "_test = []() {
Expand Down
2 changes: 1 addition & 1 deletion tests/enum.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"enum"> enum_test = [] {
boost::ut::suite<"enum_test"> enum_test = [] {
using namespace boost::ut;

"hal::value(enum)"_test = []() {
Expand Down
2 changes: 1 addition & 1 deletion tests/i2c.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"i2c"> i2c_test = [] {
boost::ut::suite<"i2c_test"> i2c_test = [] {
using namespace boost::ut;

static constexpr hal::byte successful_address{ 0x15 };
Expand Down
2 changes: 1 addition & 1 deletion tests/input_pin.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"input_pin"> input_pin_test = [] {
boost::ut::suite<"input_pin_test"> input_pin_test = [] {
using namespace boost::ut;
"operator==(input_pin::settings)"_test = []() {
input_pin::settings a{};
Expand Down
2 changes: 1 addition & 1 deletion tests/interrupt_pin.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"interrupt_pin"> interrupt_pin_test = [] {
boost::ut::suite<"interrupt_pin_test"> interrupt_pin_test = [] {
using namespace boost::ut;
"operator==(interrupt_pin::settings)"_test = []() {
interrupt_pin::settings a{};
Expand Down
2 changes: 1 addition & 1 deletion tests/map.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"map"> map_test = [] {
boost::ut::suite<"map_test"> map_test = [] {
using namespace boost::ut;

"hal::map<std::floating_point>()"_test = []() {
Expand Down
2 changes: 1 addition & 1 deletion tests/math.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"math"> math_test = [] {
boost::ut::suite<"math_test"> math_test = [] {
using namespace boost::ut;

"hal::multiply()"_test = []() {
Expand Down
2 changes: 1 addition & 1 deletion tests/move_interceptor.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"move_interceptor"> move_interceptor_test = [] {
boost::ut::suite<"move_interceptor_test"> move_interceptor_test = [] {
using namespace boost::ut;

"move_interceptor<mock>::intercept"_test = []() {
Expand Down
2 changes: 1 addition & 1 deletion tests/output_pin.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"output_pin"> output_pin_test = [] {
boost::ut::suite<"output_pin_test"> output_pin_test = [] {
using namespace boost::ut;
"operator==(output_pin::settings)"_test = []() {
output_pin::settings a{};
Expand Down
2 changes: 1 addition & 1 deletion tests/overflow_counter.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"overflow_counter"> overflow_counter_test = [] {
boost::ut::suite<"overflow_counter_test"> overflow_counter_test = [] {
using namespace boost::ut;

"overflow_counter::update() increment by 1"_test = []() {
Expand Down
2 changes: 1 addition & 1 deletion tests/serial.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"serial"> serial_test = [] {
boost::ut::suite<"serial_test"> serial_test = [] {
using namespace boost::ut;

static constexpr hal::byte write_failure_byte{ 'C' };
Expand Down
2 changes: 1 addition & 1 deletion tests/spi.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"spi"> spi_test = [] {
boost::ut::suite<"spi_test"> spi_test = [] {
using namespace boost::ut;

static constexpr hal::byte success_filler{ 0xF5 };
Expand Down
2 changes: 1 addition & 1 deletion tests/static_callable.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"static_callable"> static_callable_test = [] {
boost::ut::suite<"static_callable_test"> static_callable_test = [] {
using namespace boost::ut;

// Setup
Expand Down
2 changes: 1 addition & 1 deletion tests/static_list.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"static_list"> static_list_test = [] {
boost::ut::suite<"static_list_test"> static_list_test = [] {
using namespace boost::ut;

"static_list::ctor()"_test = []() {
Expand Down
2 changes: 1 addition & 1 deletion tests/steady_clock.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// #include <libhal/testing.hpp>

namespace hal {
boost::ut::suite<"steady_clock"> steady_clock_test = [] {
boost::ut::suite<"steady_clock_test"> steady_clock_test = [] {
using namespace boost::ut;

// Make the frequency equal to inverse of the time duration period, giving you
Expand Down
10 changes: 5 additions & 5 deletions tests/streams.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ std::span<hal::byte const> operator|(
}
} // namespace

boost::ut::suite<"streams"> stream_terminated_test = [] {
boost::ut::suite<"stream_terminated_test"> stream_terminated_test = [] {
using namespace boost::ut;
using namespace std::literals;

Expand Down Expand Up @@ -96,7 +96,7 @@ boost::ut::suite<"streams"> stream_terminated_test = [] {
// | parse<T> Stream |
//
// =============================================================================
boost::ut::suite<"streams"> parse_stream_test = [] {
boost::ut::suite<"parse_stream_test"> parse_stream_test = [] {
using namespace boost::ut;
using namespace std::literals;

Expand Down Expand Up @@ -262,7 +262,7 @@ boost::ut::suite<"streams"> parse_stream_test = [] {
// | Find Stream |
//
// =============================================================================
boost::ut::suite<"streams"> find_stream_test = [] {
boost::ut::suite<"find_stream_test"> find_stream_test = [] {
// Setup
using namespace boost::ut;
using namespace std::literals;
Expand Down Expand Up @@ -372,7 +372,7 @@ boost::ut::suite<"streams"> find_stream_test = [] {
// | fill_upto Stream |
//
// =============================================================================
boost::ut::suite<"streams"> fill_upto_stream_test = [] {
boost::ut::suite<"fill_upto_stream_test"> fill_upto_stream_test = [] {
// Setup
using namespace boost::ut;
using namespace std::literals;
Expand Down Expand Up @@ -444,7 +444,7 @@ boost::ut::suite<"streams"> fill_upto_stream_test = [] {
// | Multi Stream Test |
//
// =============================================================================
boost::ut::suite<"streams"> multi_stream_test = [] {
boost::ut::suite<"multi_stream_test"> multi_stream_test = [] {
using namespace boost::ut;
using namespace std::literals;

Expand Down
2 changes: 1 addition & 1 deletion tests/timeout.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <boost/ut.hpp>

namespace hal {
boost::ut::suite<"timeout"> timeout_test = [] {
boost::ut::suite<"timeout_test"> timeout_test = [] {
using namespace boost::ut;
"hal::try_until(callback, timeout)"_test = []() {
// Setup
Expand Down
2 changes: 1 addition & 1 deletion tests/units.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ std::ostream& operator<<(std::ostream& p_os,

namespace hal {

boost::ut::suite<"units"> units_test = [] {
boost::ut::suite<"units_test"> units_test = [] {
using namespace boost::ut;
using namespace std::literals;

Expand Down

0 comments on commit 3febeae

Please sign in to comment.