Skip to content

Commit

Permalink
Making css-selectors typecheck. Still fails to compile due to Issue #114
Browse files Browse the repository at this point in the history
.
  • Loading branch information
eholk committed Mar 22, 2014
1 parent 79b6737 commit b20b57c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/css-selectors.kfc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
((Selector selector)
(matches-selector? (Node tag children) selector path (lambda (node) #t)))
((Alternate rule selector)
(or (matches? (Node tag children) rule)
(or (matches? (Node tag children) rule path)
(matches-selector? (Node tag children)
selector
path
Expand All @@ -82,8 +82,8 @@
(let ((selector1 (Selector (Symbol 0)))
(node1 (leaf-node 0))
(selector2 (Selector (Sequence (Symbol 0)
(Symbol 1))))
(node2 (Node 0 (vector (leaf-node 1)) (EmptyList))))
(Symbol 1))))
(node2 (Node 0 (vector (leaf-node 1)))))
(println (matches? node1 selector1 (EmptyList)))
(println (matches? node2 selector2 (EmptyList))))
0))

0 comments on commit b20b57c

Please sign in to comment.