Browse Source

Comitted Unit Test

remotes/origin/testing
Sandro Welte 11 months ago
parent
commit
afc2feefa9
  1. 18
      test/test_arithmeticMultiplication_Double.c

18
test/test_arithmeticMultiplication_Double.c

@ -0,0 +1,18 @@
#include "unity.h"
#include "../src/arithmeticMultiplication_Double.h"
#include "limits.h"
void setUp(void) {
// set up code here
}
void tearDown(void) {
// clean up code here
}
void test_arithmeticMultiplication_doubletimesdoubleequalsdouble(void) {
double expectedResult = 10.0;
double* result = multiplication_double(2.0, 5.0);
TEST_ASSERT_EQUAL_DOUBLE(expectedResult, *result);
}
Loading…
Cancel
Save