diff options
author | sanine-a <sanine.not@pm.me> | 2021-07-02 22:09:10 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2021-07-02 22:09:10 -0500 |
commit | 3be8f4628e2eea1ee1edd352d5c0a63293484f8c (patch) | |
tree | c4cd17e3c000a8600bd044341f9d54841b083156 /src/tests | |
parent | 6416977ea7e2159a67fd6a9877c5e01abe2f8269 (diff) |
finish refactoring existing tests into separate files
Diffstat (limited to 'src/tests')
l--------- | src/tests/.#hs_create_table_tests.c | 1 | ||||
-rw-r--r-- | src/tests/hs_create_table_tests.c | 2 | ||||
-rw-r--r-- | src/tests/hs_parse_args_tests.c | 4 | ||||
-rw-r--r-- | src/tests/hs_parse_overloaded_tests.c | 2 | ||||
-rw-r--r-- | src/tests/hs_tests.h | 11 |
5 files changed, 7 insertions, 13 deletions
diff --git a/src/tests/.#hs_create_table_tests.c b/src/tests/.#hs_create_table_tests.c new file mode 120000 index 0000000..68ed537 --- /dev/null +++ b/src/tests/.#hs_create_table_tests.c @@ -0,0 +1 @@ +kate@amalthea.194602:1624721630
\ No newline at end of file diff --git a/src/tests/hs_create_table_tests.c b/src/tests/hs_create_table_tests.c index feca8f5..8a8ebe2 100644 --- a/src/tests/hs_create_table_tests.c +++ b/src/tests/hs_create_table_tests.c @@ -1,5 +1,7 @@ #include "hs_tests.h" +int testfunc(lua_State *L) { return 0; } + /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * tests for hs_create_table diff --git a/src/tests/hs_parse_args_tests.c b/src/tests/hs_parse_args_tests.c index 829c144..e7b331d 100644 --- a/src/tests/hs_parse_args_tests.c +++ b/src/tests/hs_parse_args_tests.c @@ -1,5 +1,7 @@ #include "hs_tests.h" +static int testfunc(lua_State *L) { return 0; } + /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * hs_parse_args typechecking tests @@ -390,8 +392,6 @@ TEST(parse_func) return 0; } -int testfunc(lua_State *L) { return 0; } - TEST(parse_cfunc) { lua_pushcfunction(L, testfunc); diff --git a/src/tests/hs_parse_overloaded_tests.c b/src/tests/hs_parse_overloaded_tests.c index de364db..812aab5 100644 --- a/src/tests/hs_parse_overloaded_tests.c +++ b/src/tests/hs_parse_overloaded_tests.c @@ -1,5 +1,7 @@ #include "hs_tests.h" +static int testfunc(lua_State *L) { return 0; } + /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * tests for hs_parse_overloaded diff --git a/src/tests/hs_tests.h b/src/tests/hs_tests.h index df73318..23d480a 100644 --- a/src/tests/hs_tests.h +++ b/src/tests/hs_tests.h @@ -42,14 +42,3 @@ void hs_call_tests(); void hs_call_args_tests(); void hs_pushstring_tests(); void hs_rxx_tests(); - -/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - * - * tests for hs_create_enum - * - * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - */ - -#define check_value(string, value) - - |