Navigation Menu

Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

Commit

Permalink
Test set.
Browse files Browse the repository at this point in the history
  • Loading branch information
threedaymonk committed Mar 14, 2012
1 parent c70eea4 commit c54fe58
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/parsing_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit c54fe58

Please sign in to comment.