Prvni ulozeni z chegewara githubu

This commit is contained in:
2023-02-25 16:13:53 +01:00
commit 01eb80dfe2
3279 changed files with 638407 additions and 0 deletions

View File

@ -0,0 +1,2 @@
def test_unity(dut):
dut.expect_unity_test_output(timeout=240)

33
tests/unity/unity.ino Normal file
View File

@ -0,0 +1,33 @@
#include <unity.h>
/* These functions are intended to be called before and after each test. */
void setUp(void) {
}
void tearDown(void){
}
void test_pass(void){
TEST_ASSERT_EQUAL(1, 1);
}
void test_fail(void){
TEST_ASSERT_EQUAL(1, 1);
}
void setup() {
Serial.begin(115200);
while (!Serial) {
;
}
UNITY_BEGIN();
RUN_TEST(test_pass);
RUN_TEST(test_fail);
UNITY_END();
}
void loop() {
}