1import TutorialDInterpreter
6import qualified Data.HashSet as HS
7import qualified Data.Map as M
9main = runTestTT (TestList tests)
11 tests = map (\(tutd, expected)->TestCase $ assertTutdEqual tutd expected) simpleRelTests
12 simpleRelTests = [("true", Right relationTrue),
13 ("false", Right relationFalse),
14 ("true union false", Right relationTrue),
15 ("true; false", Right relationFalse),
16 ("a:=relation{a int}", mkRelation simpleAAttributes HS.empty)
18 simpleAAttributes = M.fromList [("a", Attribute "a" IntAtomType)]
21testSimple1 = TestCase $ assertTutdEqual "true" (Right relationTrue)
23assertTutdEqual tutd expected = assertEqual tutd interpreted expected
25 interpreted = fst (interpret basicRelVarContext tutd)
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