summaryrefslogtreecommitdiff
path: root/legacy/elm_code/tests/elm_code_test_basic.c
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2014-10-26 22:47:27 +0000
committerAndy Williams <andy@andywilliams.me>2014-10-26 22:47:27 +0000
commita76709533999706b527259d8cb7bc962a730b104 (patch)
treec16580b259fe14c2508e395503afb4a0d870de77 /legacy/elm_code/tests/elm_code_test_basic.c
parentce501b64c2caf12f398b1b1f41eb8b18ba10062c (diff)
Add basic structure for elm_code object - namespacing the elm_code_file properly to keep it clean
Diffstat (limited to '')
-rw-r--r--legacy/elm_code/tests/elm_code_test_basic.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/legacy/elm_code/tests/elm_code_test_basic.c b/legacy/elm_code/tests/elm_code_test_basic.c
new file mode 100644
index 0000000..f127cfb
--- /dev/null
+++ b/legacy/elm_code/tests/elm_code_test_basic.c
@@ -0,0 +1,25 @@
1#ifdef HAVE_CONFIG_H
2# include "config.h"
3#endif
4
5#include "elm_code_suite.h"
6
7START_TEST (elm_code_create_test)
8{
9 char *path = "elm_code/tests/testfile.txt";
10 Elm_Code_File *file;
11 Elm_Code *code;
12
13 file = elm_code_file_open(path);
14 code = elm_code_create(file);
15
16 ck_assert(code);
17 elm_code_free(code);
18}
19END_TEST
20
21void elm_code_test_basic(TCase *tc)
22{
23 tcase_add_test(tc, elm_code_create_test);
24}
25