Skip to content

Commit

Permalink
Add more tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bpvickers committed Dec 31, 2017
1 parent 616953c commit 154b787
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/csv_decision/table_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,29 @@
, no
DATA
},
{ example: 'uses ==:parent & != :parent',
options: { first_match: false },
data: <<~DATA
in :node, out :top?
== :parent, yes
!= :parent, no
DATA
},
{ example: 'uses != :parent, drops :parent input column',
options: {},
data: <<~DATA
in :node, out :top?
!= :parent, no
, yes
DATA
},
{ example: 'uses != :parent and == :parent',
options: { first_match: false },
data: <<~DATA
in :node, out :top?
!= :parent, no
== :parent, yes
DATA
}
]

Expand Down

0 comments on commit 154b787

Please sign in to comment.