diff options
| author | Paul Oliver <contact@pauloliver.dev> | 2026-06-25 04:42:23 +0200 |
|---|---|---|
| committer | Paul Oliver <contact@pauloliver.dev> | 2026-06-28 02:50:18 +0200 |
| commit | 95fd6ae836ab5fee7387f4df46b727165a05b723 (patch) | |
| tree | 79c715d250f44c1aa1a0d05e65be313ae4cd3e15 /test/ui/v1/jumps/ui.c | |
| parent | 0f5581f53f73a92d33826c4771553a9683376e67 (diff) | |
Adds v1 unit tests and fixes bugs found by them
Diffstat (limited to 'test/ui/v1/jumps/ui.c')
| -rw-r--r-- | test/ui/v1/jumps/ui.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/ui/v1/jumps/ui.c b/test/ui/v1/jumps/ui.c new file mode 100644 index 0000000..61514f5 --- /dev/null +++ b/test/ui/v1/jumps/ui.c @@ -0,0 +1,21 @@ +#if !defined(COMMAND_NEW) +#error +#endif + +int main(void) { + salis_init(); + + uint8_t lok = loka; + + while (lok != lokp) { + if (mvec_get_inst(g_cores, g_cores->pvec->ip) == lok) { + lok = lok + 1; + } + + salis_step(1); + assert(g_cores->pvec->ip < ANC_SIZE); + } + + salis_free(); + return 0; +} |
