From 78ce3bdb99f80212f36a4b4826700b8a09f4a52e Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sun, 16 Oct 2022 10:35:44 +0100 Subject: [PATCH] Added to a test --- scripts/test/dot-chaining.toy | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/test/dot-chaining.toy b/scripts/test/dot-chaining.toy index 54401e0..9231863 100644 --- a/scripts/test/dot-chaining.toy +++ b/scripts/test/dot-chaining.toy @@ -19,4 +19,12 @@ val ; +//test the value is actually altered +fn _increment(self) { + return self + 1; +} + +assert 3.increment().increment() == 5, "dot chaining increment failed"; + + print "All good";