Martin Melik Merkumians 9 лет назад
Родитель
Сommit
be553ae4eb

Разница между файлами не показана из-за своего большого размера
+ 613 - 554
source/src/cip/cipconnectionmanager.c


+ 3 - 3
source/tests/cip/cipelectronickeytest.cpp

@@ -153,9 +153,9 @@ TEST(CipElectronicKey, ParseElectronicKeyTest) {
   CHECK_EQUAL( 256, ElectronicKeyFormat4GetVendorId(key) );
   CHECK_EQUAL( 512, ElectronicKeyFormat4GetDeviceType(key) );
   CHECK_EQUAL( 768, ElectronicKeyFormat4GetProductCode(key) );
-  CHECK_TRUE(ElectronicKeyFormat4GetMajorRevisionCompatibility(key));
-  CHECK_EQUAL(0x04, ElectronicKeyFormat4GetMajorRevision(key));
-  CHECK_EQUAL(0x05, ElectronicKeyFormat4GetMinorRevision(key));
+  CHECK_TRUE( ElectronicKeyFormat4GetMajorRevisionCompatibility(key) );
+  CHECK_EQUAL( 0x04, ElectronicKeyFormat4GetMajorRevision(key) );
+  CHECK_EQUAL( 0x05, ElectronicKeyFormat4GetMinorRevision(key) );
 
   MEMCMP_EQUAL(message + 2, key, 8);
 

+ 15 - 15
source/tests/utils/xorshiftrandomtests.cpp

@@ -19,24 +19,24 @@ TEST_GROUP(XorShiftRandom)
 /* This test should always return 0 as the next random number (see XorShift algorithm) */
 TEST(XorShiftRandom, SeedZeroInitResult)
 {
-	uint32_t nResult;
-	nResult = 1;
-	SetXorShiftSeed(0);
-	nResult = NextXorShiftUint32();
-	LONGS_EQUAL(0, nResult);
+  uint32_t nResult;
+  nResult = 1;
+  SetXorShiftSeed(0);
+  nResult = NextXorShiftUint32();
+  LONGS_EQUAL(0, nResult);
 }
 
 /*Characterization test*/
 TEST(XorShiftRandom, SeedOneCharacterization)
 {
-	uint32_t nResult;
-	SetXorShiftSeed(1);
-	nResult = NextXorShiftUint32();
-	LONGS_EQUAL(270369, nResult);
-	nResult = NextXorShiftUint32();
-	LONGS_EQUAL(67634689, nResult);
-	nResult = NextXorShiftUint32();
-	LONGS_EQUAL(2647435461, nResult);
-	nResult = NextXorShiftUint32();
-	LONGS_EQUAL(307599695, nResult);
+  uint32_t nResult;
+  SetXorShiftSeed(1);
+  nResult = NextXorShiftUint32();
+  LONGS_EQUAL(270369, nResult);
+  nResult = NextXorShiftUint32();
+  LONGS_EQUAL(67634689, nResult);
+  nResult = NextXorShiftUint32();
+  LONGS_EQUAL(2647435461, nResult);
+  nResult = NextXorShiftUint32();
+  LONGS_EQUAL(307599695, nResult);
 }

Некоторые файлы не были показаны из-за большого количества измененных файлов