aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Moon Flower <moon@coffin.ir> 2025-02-22 18:10:15 +0330
committerGravatar Moon Flower <moon@coffin.ir> 2025-02-22 18:10:15 +0330
commit41f68c38e85a91b3bb5522b89f989fe2ca64f0a6 (patch)
tree8f9384337fd87469bda79103c690add802475c43 /main.c
woohoo
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..0442b92
--- /dev/null
+++ b/main.c
@@ -0,0 +1,14 @@
+// This is the test unit, not the actual code.
+
+#include "moonshine.h"
+
+int main() {
+ array(int) test = new (int);
+
+ push(test, 2);
+ for(int i = 45; i > 7; i--) push(test, i % 3);
+
+ print("Wowie: ", get(test, 30));
+
+ return 0;
+}