Skip to content

Commit 1fe709a

Browse files
committed
Fix unit testing on windows
1 parent 2acef48 commit 1fe709a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: SampleProjects/TestSomething/test/godmode.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ unittest(shift_in) {
236236
originalSize = state->digitalPin[clockPin].historySize();
237237

238238
input = shiftIn(dataPin, clockPin, MSBFIRST);
239-
assertEqual(0x7C, (uint)input); // 0111 1100
239+
assertEqual(0x7C, (unit8_t)input); // 0111 1100
240240
assertEqual('|', input); // 0111 1100
241-
assertEqual((uint)'|', (uint)input); // 0111 1100
241+
assertEqual((unit8_t)'|', (unit8_t)input); // 0111 1100
242242

243243
// now verify clock
244244
assertEqual(16, state->digitalPin[clockPin].historySize() - originalSize);
@@ -249,15 +249,15 @@ unittest(shift_in) {
249249
state->reset();
250250
state->digitalPin[dataPin].fromAscii("|", true); // 0111 1100
251251
input = shiftIn(dataPin, clockPin, LSBFIRST); // <- note the LSB/MSB flip
252-
assertEqual(0x3E, (uint)input); // 0011 1110
252+
assertEqual(0x3E, (unit8_t)input); // 0011 1110
253253
assertEqual('>', input); // 0011 1110
254-
assertEqual((uint)'>', (uint)input); // 0011 1110
254+
assertEqual((unit8_t)'>', (unit8_t)input); // 0011 1110
255255

256256
// test setting MSB
257257
state->reset();
258258
state->digitalPin[dataPin].fromAscii("U", true); // 0101 0101
259259
input = shiftIn(dataPin, clockPin, LSBFIRST); // <- note the LSB/MSB flip
260-
assertEqual(0xAA, (uint)input); // 1010 1010
260+
assertEqual(0xAA, (unit8_t)input); // 1010 1010
261261
}
262262

263263
unittest(shift_out) {

0 commit comments

Comments
 (0)