Skip to content

Commit 548cb6c

Browse files
committed
Use the opcode tests.
1 parent 05f3262 commit 548cb6c

File tree

11 files changed

+1873
-5
lines changed

11 files changed

+1873
-5
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,29 @@ test: en
4141
@echo "Testing kvrasm."
4242
@bin/kvrasm examples/english/sierpinski.kvr roms/sierpinski.rom
4343
@utils/uxncli roms/sierpinski.rom
44+
@bin/kvrasm examples/english/tests.kvr roms/tests.rom
45+
@utils/uxncli roms/tests.rom
4446

4547
test-es: es
4648
@echo "Testing kvrasm-es."
4749
@bin/kvrasm-es examples/spanish/sierpinski.kvres roms/sierpinski-es.rom
4850
@utils/uxncli roms/sierpinski-es.rom
51+
@bin/kvrasm-es examples/spanish/tests.kvres roms/tests-es.rom
52+
@utils/uxncli roms/tests-es.rom
4953

5054
test-eo: eo
5155
@echo "Testing kvrasm-eo."
5256
@bin/kvrasm-eo examples/esperanto/sierpinski.kvreo roms/sierpinski-eo.rom
5357
@utils/uxncli roms/sierpinski-eo.rom
58+
@bin/kvrasm-eo examples/esperanto/tests.kvreo roms/tests-eo.rom
59+
@utils/uxncli roms/tests-eo.rom
5460

5561
test-tok: tok
5662
@echo "Testing kvrasm-tok."
5763
@bin/kvrasm-tok examples/toki-pona/sierpinski.kvrtok roms/sierpinski-tok.rom
5864
@utils/uxncli roms/sierpinski-tok.rom
65+
@bin/kvrasm-tok examples/toki-pona/tests.kvrtok roms/tests-tok.rom
66+
@utils/uxncli roms/tests-tok.rom
5967

6068
install-all: all install install-es install-eo install-tok
6169

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ $ kvrprt source.tal lang # Creates: source.kvr{lang}
9292

9393
## TODO
9494

95-
- [ ] Implement `kvrptr` (Kvara porter).
95+
- [x] Implement `kvrptr` (Kvara porter).
9696
- [ ] Explain how to contribute and add a new language.
9797
- [ ] Implement another utility to scafold and make easier adding new languages.
9898
- [ ] Use the opcode test for all languages.

examples/english/sierpinski.kvr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
@sierpinski ( -> )
44
( mask ) [ LIT2r 0a18 ] [ LIT2r 2018 ]
5-
( size ) [ LIT2 &size 1001 ] SUB
5+
( size ) [ LIT2 &size 0801 ] SUB
66
&>ver ( -- )
77
DUP INCk
88
&>pad ( length -- )

0 commit comments

Comments
 (0)