1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-03 07:08:09 +00:00

Adding some more unit tests for various components.

This commit is contained in:
bakpakin
2017-11-06 09:44:10 -05:00
parent f6dcb07c8d
commit 9a858d5a97
8 changed files with 88 additions and 43 deletions

View File

@@ -22,9 +22,19 @@
#include <dst/dst.h>
#include <stdio.h>
int dst_print(DstFiber *fiber, DstValue *argv, uint32_t argn) {
printf("Hello!\n");
uint32_t i;
for (i = 0; i < argn; ++i) {
uint32_t j, len;
const uint8_t *vstr = dst_to_string(argv[i]);
len = dst_string_length(vstr);
for (j = 0; j < len; ++j) {
putc(vstr[j], stdout);
}
}
putc('\n', stdout);
return 0;
}