summaryrefslogtreecommitdiff
path: root/tests/block-test.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/block-test.tnsl')
-rw-r--r--tests/block-test.tnsl18
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/block-test.tnsl b/tests/block-test.tnsl
index c48d7de..2bd4053 100644
--- a/tests/block-test.tnsl
+++ b/tests/block-test.tnsl
@@ -22,10 +22,8 @@
;i = 2
;/
- /: include
- "this"
- "that"
- :/
+ :include "this"
+ :include "that"
# ;; can be used as a quick block re-definition
@@ -53,17 +51,17 @@
/;method Vector2
/; operator + (~Vector2 v)
- ;self.x += v`.x
- ;self.y += v`.y
+ ;self.x = self.x + v`.x
+ ;self.y = self.y + v`.y
;/
/; operator + (int32 a)
- ;self.x += a
- ;self.y += a
+ ;self.x = self.x + a
+ ;self.y = self.y + a
;/
;/
- ;struct FVector2 () {}
+ ;struct FVector2 () {float x, y}
-;/ \ No newline at end of file
+;/