Skip to content

Commit

Permalink
fixed some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gnumonik committed Mar 26, 2024
1 parent 87fd8cc commit e076b6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/TestPurus.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ shouldPassTests = do
traverse_ runPurusDefault shouldPass
let misc = "./tests/purus/passing/Misc/output/Lib/index.cfn"
uplc1 <- declToUPLC misc "main"
writeFile "./tests/purus/passing/Misc/output/Lib/main.plc" (show uplc1)
uplc2 <- declToUPLC misc "minus"
writeFile "./tests/purus/passing/Misc/output/Lib/fakeminus.plc" (show uplc2)
defaultMain $
runPLCProgramTest
"mainTest"
(EvaluationSuccess (Constant () (Some (ValueOf DefaultUniInteger 2))),[])
misc
"main"
writeFile "./tests/purus/passing/Misc/output/Lib/main.plc" (show uplc1)
uplc2 <- declToUPLC misc "minus"
writeFile "./tests/purus/passing/Misc/output/Lib/fakeminus.plc" (show uplc2)

runPurus :: P.CodegenTarget -> FilePath -> IO ()
runPurus target dir = do
Expand Down
1 change: 1 addition & 0 deletions tests/purus/passing/Misc/output/Lib/fakeminus.plc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Program {_progAnn = Original (), _progVer = Version {_versionMajor = 1, _versionMinor = 1, _versionPatch = 0}, _progTerm = LamAbs (Original ()) (Name {_nameText = "v", _nameUnique = Unique {unUnique = 86}}) (TyBuiltin (Original ()) (SomeTypeIn DefaultUniInteger)) (LamAbs (Original ()) (Name {_nameText = "v1", _nameUnique = Unique {unUnique = 87}}) (TyBuiltin (Original ()) (SomeTypeIn DefaultUniInteger)) (Constant (Original ()) (Some (ValueOf DefaultUniInteger 42))))}
1 change: 1 addition & 0 deletions tests/purus/passing/Misc/output/Lib/main.plc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Program {_progAnn = Original (), _progVer = Version {_versionMajor = 1, _versionMinor = 1, _versionPatch = 0}, _progTerm = Constant (Original ()) (Some (ValueOf DefaultUniInteger 2))}

0 comments on commit e076b6a

Please sign in to comment.