@@ -126,12 +126,12 @@ unitTests :: TestTree
126126unitTests = testGroup " Unit tests"
127127 [
128128 testCase " different values get different hashes" $ do
129- let res1 = generateAllHashes <$> runTelomareParser2Term2 parseLet [] hashtest0
130- res2 = generateAllHashes <$> runTelomareParser2Term2 parseLet [] hashtest1
129+ let res1 = generateAllHashes <$> runTelomareParser2Term2 parseLet hashtest0
130+ res2 = generateAllHashes <$> runTelomareParser2Term2 parseLet hashtest1
131131 (res1 == res2) `compare` False @?= EQ
132132 , testCase " same functions have the same hash even with different variable names" $ do
133- let res1 = generateAllHashes <$> runTelomareParser2Term2 parseLet [] hashtest2
134- res2 = generateAllHashes <$> runTelomareParser2Term2 parseLet [] hashtest3
133+ let res1 = generateAllHashes <$> runTelomareParser2Term2 parseLet hashtest2
134+ res2 = generateAllHashes <$> runTelomareParser2Term2 parseLet hashtest3
135135 res1 @?= res2
136136 , testCase " Ad hoc user defined types success" $ do
137137 res <- testUserDefAdHocTypes userDefAdHocTypesSuccess
@@ -141,25 +141,25 @@ unitTests = testGroup "Unit tests"
141141 res @?= " MyInt must not be 0\n done"
142142 , testCase " test automatic open close lambda" $ do
143143 res <- runTelomareParser (parseLambda <* scn <* eof) " \\ x -> \\ y -> (x, y)"
144- (forget <$> validateVariables [] res) @?= Right closedLambdaPair
144+ (forget <$> validateVariables res) @?= Right closedLambdaPair
145145 , testCase " test automatic open close lambda 2" $ do
146146 res <- runTelomareParser (parseLambda <* scn <* eof) " \\ x y -> (x, y)"
147- (forget <$> validateVariables [] res) @?= Right closedLambdaPair
147+ (forget <$> validateVariables res) @?= Right closedLambdaPair
148148 , testCase " test automatic open close lambda 3" $ do
149149 res <- runTelomareParser (parseLambda <* scn <* eof) " \\ x -> \\ y -> \\ z -> z"
150- (forget <$> validateVariables [] res) @?= Right expr6
150+ (forget <$> validateVariables res) @?= Right expr6
151151 , testCase " test automatic open close lambda 4" $ do
152152 res <- runTelomareParser (parseLambda <* scn <* eof) " \\ x -> (x, x)"
153- (forget <$> validateVariables [] res) @?= Right expr5
153+ (forget <$> validateVariables res) @?= Right expr5
154154 , testCase " test automatic open close lambda 5" $ do
155155 res <- runTelomareParser (parseLambda <* scn <* eof) " \\ x -> \\ x -> \\ x -> x"
156- (forget <$> validateVariables [] res) @?= Right expr4
156+ (forget <$> validateVariables res) @?= Right expr4
157157 , testCase " test automatic open close lambda 6" $ do
158158 res <- runTelomareParser (parseLambda <* scn <* eof) " \\ x -> \\ y -> \\ z -> [x,y,z]"
159- (forget <$> validateVariables [] res) @?= Right expr3
159+ (forget <$> validateVariables res) @?= Right expr3
160160 , testCase " test automatic open close lambda 7" $ do
161161 res <- runTelomareParser (parseLambda <* scn <* eof) " \\ a -> (a, (\\ a -> (a,0)))"
162- (forget <$> validateVariables [] res) @?= Right expr2
162+ (forget <$> validateVariables res) @?= Right expr2
163163 , testCase " test tictactoe.tel" $ do
164164 res <- tictactoe
165165 res @?= fullRunTicTacToeString
@@ -322,7 +322,7 @@ showAllTransformations input = do
322322 -- diff = getGroupedDiff str1 str2
323323 -- section "optimizeBindingsReference" . show $ optimizeBindingsReferenceVar
324324 -- section "Diff optimizeBindingsReference" $ ppDiff diff
325- let validateVariablesVar = validateVariables prelude optimizeBuiltinFunctionsVar
325+ let validateVariablesVar = validateVariables optimizeBuiltinFunctionsVar
326326 str3 = lines . show $ validateVariablesVar
327327 diff = getGroupedDiff str3 str1
328328 section " validateVariables" . show $ validateVariablesVar
0 commit comments