From 8f61575579bc6231ab18035b22d3c0e70d48bd61 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Wed, 7 Sep 2022 15:05:46 +0100 Subject: [PATCH] Added to a test --- scripts/test/index-dictionaries.toy | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/test/index-dictionaries.toy b/scripts/test/index-dictionaries.toy index f235803..b929c9e 100644 --- a/scripts/test/index-dictionaries.toy +++ b/scripts/test/index-dictionaries.toy @@ -38,4 +38,16 @@ } +//test dot calls +{ + fn f() { + return 42; + } + + var d = ["foo":f]; + + assert d.foo() == 42, "dot calls failed"; +} + + print "All good";