Skip to content

Commit 17a3e16

Browse files
authored
♻️ Refactor tests (#13)
* ♻️ Refactor tests * fix tests? * attempt 2 * set suite name
1 parent 9612c96 commit 17a3e16

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

tests/ch9329.test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
#include <boost/ut.hpp>
1818

1919
namespace hal::input {
20-
void ch9329_test()
21-
{
20+
boost::ut::suite<"ch9329_test"> ch9329_test = [] {
2221
using namespace boost::ut;
2322
using namespace std::literals;
2423

tests/input.test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
#include <boost/ut.hpp>
1818

1919
namespace hal::input {
20-
void input_test()
21-
{
20+
boost::ut::suite<"input_test"> input_test = [] {
2221
using namespace boost::ut;
2322
using namespace std::literals;
2423

tests/main.test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313
// limitations under the License.
1414

1515
namespace hal::input {
16-
extern void input_test();
1716
} // namespace hal::input
1817

1918
int main()
2019
{
21-
hal::input::input_test();
2220
}

0 commit comments

Comments
 (0)