@@ -30,7 +30,8 @@ main = do
30 ("x:=true where true and true", Right relationTrue),
30 ("x:=true where true and true", Right relationTrue),
31 ("x:=true=true", Right relationTrue),
31 ("x:=true=true", Right relationTrue),
32 ("x:=true=false", Right relationFalse),
32 ("x:=true=false", Right relationFalse),
33− ("x:=relation {b int, a char}; insert x relation{tuple{b int(5), a char(\"spam\")}}", mkRelation simpleCAttributes (HS.fromList [RelationTuple $ M.fromList [("a", StringAtom "spam"), ("b", IntAtom 5)]]))
33+ ("x:=relation {b int, a char}; insert x relation{tuple{b int(5), a char(\"spam\")}}", mkRelation simpleCAttributes (HS.fromList [RelationTuple $ M.fromList [("a", StringAtom "spam"), ("b", IntAtom 5)]])),
34+ ("x:=relation{tuple{b int(5),a char(\"spam\")},tuple{b int(6),a char(\"sam\")}}; delete x where b=6", mkRelation simpleCAttributes $ HS.fromList [RelationTuple $ M.fromList [("a", StringAtom "spam"), ("b", IntAtom 5)]])
35 simpleAAttributes = M.fromList [("a", Attribute "a" IntAtomType)]
36 simpleAAttributes = M.fromList [("a", Attribute "a" IntAtomType)]
36 simpleBAttributes = M.fromList [("d", Attribute "d" IntAtomType)]
37 simpleBAttributes = M.fromList [("d", Attribute "d" IntAtomType)]