summaryrefslogtreecommitdiff
path: root/legacy/elm_code/tests/elm_code_test_basic.c
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2014-11-16 23:52:41 +0000
committerAndy Williams <andy@andywilliams.me>2014-11-16 23:52:41 +0000
commit649c98a53b7a569ba98d174d115980fe28feb0a5 (patch)
tree70fe80de18678cfb18f321edeb8a8420bcade055 /legacy/elm_code/tests/elm_code_test_basic.c
parentdc2e25fbb6473c838bba7398518d3102cd5ce0aa (diff)
Add parse hooks for lines and files within elm_code.
This required changing the load order so file opens would read the elm_code->parsers setup. This makes for a better setup anyhow
Diffstat (limited to '')
-rw-r--r--legacy/elm_code/tests/elm_code_test_basic.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/legacy/elm_code/tests/elm_code_test_basic.c b/legacy/elm_code/tests/elm_code_test_basic.c
index f127cfb..81a34bb 100644
--- a/legacy/elm_code/tests/elm_code_test_basic.c
+++ b/legacy/elm_code/tests/elm_code_test_basic.c
@@ -7,11 +7,10 @@
7START_TEST (elm_code_create_test) 7START_TEST (elm_code_create_test)
8{ 8{
9 char *path = "elm_code/tests/testfile.txt"; 9 char *path = "elm_code/tests/testfile.txt";
10 Elm_Code_File *file;
11 Elm_Code *code; 10 Elm_Code *code;
12 11
13 file = elm_code_file_open(path); 12 code = elm_code_create();
14 code = elm_code_create(file); 13 elm_code_file_open(code, path);
15 14
16 ck_assert(code); 15 ck_assert(code);
17 elm_code_free(code); 16 elm_code_free(code);