aboutsummaryrefslogtreecommitdiff
path: root/src/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test.c b/src/test.c
index 4403e60..9ae5e5b 100644
--- a/src/test.c
+++ b/src/test.c
@@ -55,3 +55,15 @@ int l_upvalue_key_table(lua_State* L){
lua_upvalue_key_table(L, 1);
return 1;
}
+
+int rea(uint64_t len, str** _output, void** v){
+ str* output = *_output;
+ str_push(output, "awa!!!! test\n");
+ *_output = output;
+ return 1;
+}
+
+int l_stream_test(lua_State* L){
+ luaI_newstream(L, rea, NULL, 0);
+ return 1;
+}