1{-# LANGUAGE OverloadedStrings #-}
5import TutorialD.Interpreter.Import.TutorialD
8import qualified Data.Map as M
13 tcounts <- runTestTT $ TestList [testTutdImport]
14 if errors tcounts + failures tcounts > 0 then exitFailure else exitSuccess
17testTutdImport = TestCase $ do
18 withSystemTempFile "m.tutd" $ \tempPath handle -> do
19 hPutStrLn handle "x:=relation{tuple{a 5,b \"spam\"}}"
21 let expectedExpr = MultipleExpr [Assign "x" (MakeRelationFromExprs Nothing [TupleExpr (M.fromList [("a",NakedAtomExpr $ intAtom 5),("b",NakedAtomExpr $ textAtom "spam")])])]
22 imported <- importTutorialD tempPath
23 assertEqual "import tutd" (Right expectedExpr) imported
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list