29 lines
506 B
C++
29 lines
506 B
C++
#include <unity/unity.h>
|
|
#include <unity/unity_internals.h>
|
|
#include "../src/algorithm.hpp"
|
|
|
|
void setUp() { ; }
|
|
void tearDown() { ; }
|
|
|
|
Graph testGraph;
|
|
|
|
void test_AllVerticesAdded(void)
|
|
{
|
|
testGraph = ReadInGraph("test/input/graphPosLittle");
|
|
TEST_ASSERT_EQUAL_INT(10, testGraph.nodeCount);
|
|
}
|
|
|
|
void test_AllEdgesAdded(void)
|
|
{
|
|
TEST_ASSERT_EQUAL_INT(4, 2+3);
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
UNITY_BEGIN();
|
|
RUN_TEST(test_AllVerticesAdded);
|
|
RUN_TEST(test_AllEdgesAdded);
|
|
return UNITY_END();
|
|
}
|
|
|