WIP: tests
authorLukas Krickl <lukas@krickl.dev>
Sun, 26 Nov 2023 08:07:20 +0000 (09:07 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sun, 26 Nov 2023 08:07:20 +0000 (09:07 +0100)
src/test.c
src/ulas.c

index e96a103f635df6c144fdb6a031db0b7146e36be8..1d8ebe3e25b5086c1e74c4b53b7dd20865b3dd0b 100644 (file)
@@ -283,6 +283,13 @@ void test_asminstr(void) {
   TESTEND("asminstr");
 }
 
+// tests the entire stack
+void test_full(void) {
+  TESTBEGIN("testfull");
+
+  TESTEND("testend");
+}
+
 int main(int arc, char **argv) {
   ulas_init(ulas_cfg_from_env());
 
@@ -296,6 +303,7 @@ int main(int arc, char **argv) {
   test_totok();
   test_intexpr();
   test_asminstr();
+  test_full();
 
   ulas_free();
 
index d4de43e40efe74d0c112e2ad82179f2bc67d306e..0b1509ef8db4b4edd6e211b4aaf0b83d0f14b5e7 100644 (file)
@@ -1713,7 +1713,7 @@ const struct ulas_instr ULASINSTRS[] = {
     ULAS_INSTR_PREBITR8D("res", 0xA8, '5'),
     ULAS_INSTR_PREBITR8D("res", 0xB0, '6'),
     ULAS_INSTR_PREBITR8D("res", 0xB8, '7'),
-    
+
     ULAS_INSTR_PREBITR8D("set", 0xC0, '0'),
     ULAS_INSTR_PREBITR8D("set", 0xC8, '1'),
     ULAS_INSTR_PREBITR8D("set", 0xD0, '2'),