diff options
| author | mo khan <mo.khan@gmail.com> | 2020-09-07 13:55:54 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-09-07 13:55:54 -0600 |
| commit | 8737272f80feb3d3c477e984568790008f2d6bc0 (patch) | |
| tree | a74e201a88bea6c11633e2b3cc8ebc6c9e27ef1b /src/03/graph_test.c | |
| parent | 5aaa10060fa446d44a92620176601a9a5db0ccbe (diff) | |
feat: add function to init vertex
Diffstat (limited to 'src/03/graph_test.c')
| -rw-r--r-- | src/03/graph_test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/03/graph_test.c b/src/03/graph_test.c index fca7b45..ecc47bb 100644 --- a/src/03/graph_test.c +++ b/src/03/graph_test.c @@ -6,6 +6,12 @@ Ensure(three_equals_three) { assert_that(3, is_equal_to(3)); } +Ensure(initialize_returns_a_new_vertex) { + Vertex *a = graph_initialize('a'); + + assert_that(a, is_not_equal_to(NULL)); +} + TestSuite *graph_tests() { TestSuite *x = create_test_suite(); |
