diff options
author | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2020-10-29 12:44:03 -0400 |
---|---|---|
committer | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2020-10-29 12:44:03 -0400 |
commit | 314e2041cd55f412d0f8d1c46209f04ddaf13ad3 (patch) | |
tree | fe22029667b5bf024f975c99392d0c4a73aae164 /test/modules | |
parent | 9809b072113fa6c39c65e323c5cb1bd2149fa46c (diff) |
Added more unit tests.
Diffstat (limited to 'test/modules')
-rw-r--r-- | test/modules/debugger/ansi_c/foo.c | 13 | ||||
-rw-r--r-- | test/modules/debugger/lua/foo.lua | 9 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/modules/debugger/ansi_c/foo.c b/test/modules/debugger/ansi_c/foo.c new file mode 100644 index 00000000..d166eb47 --- /dev/null +++ b/test/modules/debugger/ansi_c/foo.c @@ -0,0 +1,13 @@ +#include <stdio.h> + +void foo(int i) { + printf("foo %d\n", i); +} + +int main() { + printf("start\n"); + for (int i = 0; i < 4; i++) + foo(i); + printf("end\n"); + return 0; +} diff --git a/test/modules/debugger/lua/foo.lua b/test/modules/debugger/lua/foo.lua new file mode 100644 index 00000000..e941ebb8 --- /dev/null +++ b/test/modules/debugger/lua/foo.lua @@ -0,0 +1,9 @@ +function foo(i) + print('foo', i) +end + +print('start') +for i = 1, 4 do + foo(i) +end +print('end') |