From 5f6feb26ba19b650efa5e4cc958253ce60d9b7dc Mon Sep 17 00:00:00 2001 From: Umur Ozkul Date: Thu, 9 Jun 2022 14:39:06 +0200 Subject: [PATCH] Module parse tested --- .../Reducer/Reducer_Peggy/Reducer_Peggy_Parse_test.res | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/squiggle-lang/__tests__/Reducer/Reducer_Peggy/Reducer_Peggy_Parse_test.res b/packages/squiggle-lang/__tests__/Reducer/Reducer_Peggy/Reducer_Peggy_Parse_test.res index 2e7b3ec5..4bf3747f 100644 --- a/packages/squiggle-lang/__tests__/Reducer/Reducer_Peggy/Reducer_Peggy_Parse_test.res +++ b/packages/squiggle-lang/__tests__/Reducer/Reducer_Peggy/Reducer_Peggy_Parse_test.res @@ -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", () => {