Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test set.

  • Loading branch information...
commit c54fe58f745c26f7a5daeb277c0d3df0f23ba5fa 1 parent c70eea4
@threedaymonk threedaymonk authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 test/parsing_test.rb
View
14 test/parsing_test.rb
@@ -118,6 +118,20 @@
assert_equal expected, actual
end
+ it "should parse a set block" do
+ actual = Sibyl.parse(%{
+ step any a
+ set foo_bar { input }
+ })
+
+ expected = [
+ [:step, "any", "a", [
+ [:set, "foo_bar", "input"]]]]
+
+ assert_equal expected, actual
+ end
+
+
it "should ignore a comment inside a unit" do
actual = Sibyl.parse(%{
step any a
Please sign in to comment.
Something went wrong with that request. Please try again.