mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
clang format
This commit is contained in:
@ -5,21 +5,21 @@
|
||||
|
||||
using sls::Pattern;
|
||||
|
||||
TEST_CASE("Pattern is default constructable and has zeroed fields"){
|
||||
TEST_CASE("Pattern is default constructable and has zeroed fields") {
|
||||
Pattern p;
|
||||
for (int i = 0; i!=MAX_PATTERN_LENGTH; ++i)
|
||||
for (int i = 0; i != MAX_PATTERN_LENGTH; ++i)
|
||||
REQUIRE(p.data()->word[i] == 0);
|
||||
REQUIRE(p.data()->ioctrl == 0);
|
||||
}
|
||||
|
||||
TEST_CASE("Copy construct pattern"){
|
||||
TEST_CASE("Copy construct pattern") {
|
||||
Pattern p;
|
||||
p.data()->loop[0] = 7;
|
||||
Pattern p1(p);
|
||||
REQUIRE(p1.data()->loop[0] == 7);
|
||||
}
|
||||
|
||||
TEST_CASE("Compare patterns"){
|
||||
TEST_CASE("Compare patterns") {
|
||||
Pattern p;
|
||||
Pattern p1;
|
||||
REQUIRE(p == p1);
|
||||
@ -27,7 +27,3 @@ TEST_CASE("Compare patterns"){
|
||||
p1.data()->word[500] = 1;
|
||||
REQUIRE_FALSE(p == p1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user