diff --git a/src/main/java/leekscript/runner/AI.java b/src/main/java/leekscript/runner/AI.java index 58bffc9..6f4bbc6 100644 --- a/src/main/java/leekscript/runner/AI.java +++ b/src/main/java/leekscript/runner/AI.java @@ -3123,6 +3123,14 @@ public MapLeekValue new_mapClass() { return new MapLeekValue(this); } + public SetLeekValue new_setClass() throws LeekRunException { + return new SetLeekValue(this); + } + + public IntervalLeekValue new_intervalClass() throws LeekRunException { + return new RealIntervalLeekValue(this); + } + public ObjectLeekValue new_objectClass() { return new ObjectLeekValue(this, this.objectClass); } diff --git a/src/test/java/test/TestInterval.java b/src/test/java/test/TestInterval.java index 2f305ba..bd73d40 100644 --- a/src/test/java/test/TestInterval.java +++ b/src/test/java/test/TestInterval.java @@ -29,6 +29,7 @@ public void run() throws Exception { code_v1("return [1.0 ..[").equals("[1..∞["); code_v2_("return [1.0 ..[").equals("[1.0..∞["); code("[1..2]").ops(2); + code_v3_("Interval a = new Interval() return a").equals("[..]"); section("Interval.intervalMin"); code("return intervalMin([1..2])").equals("1"); diff --git a/src/test/java/test/TestSet.java b/src/test/java/test/TestSet.java index 55beb9d..556cb34 100644 --- a/src/test/java/test/TestSet.java +++ b/src/test/java/test/TestSet.java @@ -11,6 +11,7 @@ public void run() throws Exception { code("return <>").equals("<>"); DISABLED_code("return <<>>").equals("<<>>"); code("<1, 2, 3, 4>").ops(8); + code_v3_("Set a = new Set() return a").equals("<>"); section("Set typing"); code_strict_v4_("Set i = <1, 2>; return i instanceof Set").equals("true");