Skip to content

Commit

Permalink
[shave-nst-yak] Class tests and criterion for it
Browse files Browse the repository at this point in the history
  • Loading branch information
sshirokov committed Oct 2, 2011
1 parent ec788f2 commit d63eef9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/tests.lisp
Expand Up @@ -20,6 +20,9 @@
(def-criterion-alias (:id value) `(:seq (:equal :id) (def-criterion-alias (:id value) `(:seq (:equal :id)
(:word ,value))) (:word ,value)))


(def-criterion-alias (:class value) `(:seq (:equal :class)
(:word ,value)))

;; Groups ;; Groups
(def-test-group parse-tests () (def-test-group parse-tests ()
(:documentation "Tests basics of CSS string parsing")) (:documentation "Tests basics of CSS string parsing"))
Expand Down Expand Up @@ -53,3 +56,7 @@
(def-test (can-parse-just-id :group parse-tests) (def-test (can-parse-just-id :group parse-tests)
(:seq (:id :my-id)) (:seq (:id :my-id))
(read-css "#my-id")) (read-css "#my-id"))

(def-test (can-parse-just-class :group parse-tests)
(:seq (:class :my-class))
(read-css ".my-class"))

0 comments on commit d63eef9

Please sign in to comment.