2023-09-15 16:34:07 -05:00
|
|
|
#include <unity/unity.h>
|
|
|
|
#include <unity/unity_internals.h>
|
|
|
|
#include "../src/algorithm.hpp"
|
2023-09-15 12:43:32 -05:00
|
|
|
|
2023-09-15 16:34:07 -05:00
|
|
|
void setUp() { ; }
|
|
|
|
void tearDown() { ; }
|
2023-09-15 12:43:32 -05:00
|
|
|
|
2023-09-15 16:34:07 -05:00
|
|
|
Graph testGraph;
|
|
|
|
|
|
|
|
void test_AllVerticesAdded(void)
|
2023-09-15 12:43:32 -05:00
|
|
|
{
|
2023-09-15 16:34:07 -05:00
|
|
|
testGraph = ReadInGraph("test/input/graphPosLittle");
|
|
|
|
TEST_ASSERT_EQUAL_INT(10, testGraph.nodeCount);
|
2023-09-15 12:43:32 -05:00
|
|
|
}
|
|
|
|
|
2023-09-15 16:34:07 -05:00
|
|
|
void test_AllEdgesAdded(void)
|
2023-09-15 12:43:32 -05:00
|
|
|
{
|
|
|
|
TEST_ASSERT_EQUAL_INT(4, 2+3);
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
UNITY_BEGIN();
|
2023-09-15 16:34:07 -05:00
|
|
|
RUN_TEST(test_AllVerticesAdded);
|
|
|
|
RUN_TEST(test_AllEdgesAdded);
|
2023-09-15 12:43:32 -05:00
|
|
|
return UNITY_END();
|
|
|
|
}
|
|
|
|
|