mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Added to a test
This commit is contained in:
@@ -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";
|
print "All good";
|
||||||
|
|||||||
Reference in New Issue
Block a user