Skip to content
Browse files

Parse a reject block.

  • Loading branch information...
1 parent ee3ea45 commit 34af5363dbe2249c236a9e8170a2677c4a9d1f5e @threedaymonk threedaymonk committed Mar 14, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 test/parsing_test.rb
View
13 test/parsing_test.rb
@@ -105,6 +105,19 @@
assert_equal expected, actual
end
+ it "should parse a reject block" do
+ actual = Sibyl.parse(%{
+ step any a
+ reject { logic }
+ })
+
+ expected = [
+ [:step, "any", "a", [
+ [:reject, "logic"]]]]
+
+ assert_equal expected, actual
+ end
+
it "should ignore a comment inside a unit" do
actual = Sibyl.parse(%{
step multiple a

0 comments on commit 34af536

Please sign in to comment.
Something went wrong with that request. Please try again.