Module parse tested

This commit is contained in:
Umur Ozkul 2022-06-09 14:39:06 +02:00
parent 346c83f2be
commit 5f6feb26ba

View File

@ -235,6 +235,9 @@ describe("Peggy parse", () => {
testParse("1M", "{(::fromUnit_M 1)}")
testParse("1m+2cm", "{(::add (::fromUnit_m 1) (::fromUnit_cm 2))}")
})
describe("Module", () => {
testParse("Math.pi", "{(::$_atIndex_$ @Math 'pi')}")
})
})
describe("parsing new line", () => {