程序代写代做代考 C — How to use: runghc testFoo.hs
— How to use: runghc testFoo.hs import System.Environment (getArgs) import System.Exit (exitFailure) import Test.HUnit import Text.Read (readMaybe) import ParserLib import TrycatDef import TrycatParser (trycat, stmt) tests = [ “assign” ~: runParser trycat “xy0 := 3 / y2” ~?= Just (Assign “xy0” (Div (Lit 3) (Var “y2”))) , “try-catch” ~: runParser trycat “try x:=x/0;y:=0/x; catch x:=1+0;y:=0+2; […]
程序代写代做代考 C — How to use: runghc testFoo.hs Read More »