mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[upstream_utils] Add Catch2 (#8203)
This commit is contained in:
9
wpiutil/src/test/native/cpp/TestCatch2.cpp
Normal file
9
wpiutil/src/test/native/cpp/TestCatch2.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
// Copyright (c) FIRST and other WPILib contributors.
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
TEST_CASE("1 is 1", "[catch2]") {
|
||||
REQUIRE(1 == 1);
|
||||
}
|
||||
9
wpiutil/src/test/native/cpp/catch2main.cpp
Normal file
9
wpiutil/src/test/native/cpp/catch2main.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
// Copyright (c) FIRST and other WPILib contributors.
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include <catch2/catch_session.hpp>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
return Catch::Session().run(argc, argv);
|
||||
}
|
||||
Reference in New Issue
Block a user