Browse Source

code for testing average

master
fdai7968 11 months ago
parent
commit
c9243693b8
  1. 10
      test/average_median/test_average_median.c

10
test/average_median/test_average_median.c

@ -1 +1,11 @@
#include "unity.h"
#include "average_median.h"
void setUp(void){}
void tearDown(void){}
void test_average() {
double data[] = {1.0, 2.0, 3.0, 4.0, 5.0};
TEST_ASSERT_EQUAL_DOUBLE(3.0, mean(data, 5));
}
Loading…
Cancel
Save