mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-02-26 23:28:41 +01:00
clang-format
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <string>
|
||||
|
||||
|
||||
|
||||
TEST_CASE("Enum values") {
|
||||
// Since some of the enums are written to file we need to make sure
|
||||
// they match the value in the slsDetectorPackage
|
||||
@@ -38,23 +36,22 @@ TEST_CASE("DynamicCluster creation") {
|
||||
REQUIRE(c2.data() != nullptr);
|
||||
}
|
||||
|
||||
TEST_CASE("Basic ops on BitOffset"){
|
||||
TEST_CASE("Basic ops on BitOffset") {
|
||||
REQUIRE_THROWS(aare::BitOffset(10));
|
||||
|
||||
aare::BitOffset offset(5);
|
||||
REQUIRE(offset.value()==5);
|
||||
REQUIRE(offset.value() == 5);
|
||||
|
||||
aare::BitOffset offset2;
|
||||
REQUIRE(offset2.value()==0);
|
||||
REQUIRE(offset2.value() == 0);
|
||||
|
||||
aare::BitOffset offset3(offset);
|
||||
REQUIRE(offset3.value()==5);
|
||||
REQUIRE(offset3.value() == 5);
|
||||
|
||||
REQUIRE(offset==offset3);
|
||||
REQUIRE(offset == offset3);
|
||||
|
||||
//Now assign offset to offset2 which should get the value 5
|
||||
// Now assign offset to offset2 which should get the value 5
|
||||
offset2 = offset;
|
||||
REQUIRE(offset2.value()==5);
|
||||
REQUIRE(offset2==offset);
|
||||
REQUIRE(offset2.value() == 5);
|
||||
REQUIRE(offset2 == offset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user