Module parse tested
This commit is contained in:
parent
346c83f2be
commit
5f6feb26ba
|
@ -235,6 +235,9 @@ describe("Peggy parse", () => {
|
||||||
testParse("1M", "{(::fromUnit_M 1)}")
|
testParse("1M", "{(::fromUnit_M 1)}")
|
||||||
testParse("1m+2cm", "{(::add (::fromUnit_m 1) (::fromUnit_cm 2))}")
|
testParse("1m+2cm", "{(::add (::fromUnit_m 1) (::fromUnit_cm 2))}")
|
||||||
})
|
})
|
||||||
|
describe("Module", () => {
|
||||||
|
testParse("Math.pi", "{(::$_atIndex_$ @Math 'pi')}")
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("parsing new line", () => {
|
describe("parsing new line", () => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user