From 84b86107a79a3d75be9fb18f38a419e85baf2d23 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 21 Sep 2024 13:26:27 +0200 Subject: [PATCH] Improve GalileoISMTest --- src/tests/unit-tests/system-parameters/galileo_ism_test.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tests/unit-tests/system-parameters/galileo_ism_test.cc b/src/tests/unit-tests/system-parameters/galileo_ism_test.cc index 4c5fa941d..131022720 100644 --- a/src/tests/unit-tests/system-parameters/galileo_ism_test.cc +++ b/src/tests/unit-tests/system-parameters/galileo_ism_test.cc @@ -26,11 +26,10 @@ TEST(GalileoISMTest, CRC) bool result = gal_ism.check_ism_crc(input); EXPECT_TRUE(result); // Check if it can be used twice - std::bitset<128> input2 = input; - bool result2 = gal_ism.check_ism_crc(input2); + bool result2 = gal_ism.check_ism_crc(input); EXPECT_TRUE(result2); // Check if it fails - input2.set(127); - bool result3 = gal_ism.check_ism_crc(input2); + input.set(127); + bool result3 = gal_ism.check_ism_crc(input); EXPECT_TRUE(!result3); } \ No newline at end of file