Closed ttttttom closed 5 years ago
can you post hardware versions software versions, code, and output?
Software:
Hardware:
For the example sketch "basic.ino" the output is:
Test correct skipped. Assertion failed: (x=1) != (1=1), file basic.ino, line 13. Test incorrect skipped. Test summary: 1 passed, 1 failed, and 0 skipped, out of 2 test(s).
`#line 2 "basic.ino"
test(correct) { int x=1; assertEqual(x,1); }
test(incorrect) { int x=1; assertNotEqual(x,1); }
void setup() { Serial.begin(9600); while(!Serial) {} // Portability for Leonardo/Micro }
void loop() { Test::run(); }`
I cannot reproduce this. I built on a Mega 2560 & Uno R3 on Arduino 1.8.5 (OS X) and got the expected output:
Test correct passed.
Assertion failed: (x=1) != (1=1), file basic.ino, line 12.
Test incorrect failed.
Test summary: 1 passed, 1 failed, and 0 skipped, out of 2 test(s).
Could you try reinstalling the library, trying another board, and/or reinstalling the arduino IDE? It's pretty surprising that your result is so different, but I don't know how to help.
I think I can give you a hint now. Please check your "Arduino AVR Boards" Version in the board manager. On my system (Windows with Arduino 1.8.1, Nano old boot loader & UnoR3):
I hope this will help you...
Checked it also on Linux and OSX with Arduino 1.8.8 and 1.8.5. Always the same result ...
Ok found a hint: https://github.com/arduino/ArduinoCore-avr/issues/7
1.6.21 was the last version created from the IDE repo, and also the last one to require gcc-4.9.2-atmel3.5.4-arduino2
(I think this last information might be the one you need most)
I tested arduinounit version 2.2.0: Messages are ok.
Same program with arduinounit version 3.0.2: Messages always say test skipped for each test. Test-summary is correct though.