Sha256: abbddd7bed94ee2b379b156e3fe599b062496bcafa4ccad72f01f26f0f4b1f78
Contents?: true
Size: 425 Bytes
Versions: 5
Compression:
Stored size: 425 Bytes
Contents
RSpec.describe Rule::Composite::Implication do include_context 'predicates' subject(:rule) { Rule::Composite::Implication.new(left, right) } let(:left) { Rule::Value.new(int?) } let(:right) { Rule::Value.new(gt?.curry(18)) } describe '#call' do it 'calls left and right' do expect(rule.('19')).to be_success expect(rule.(19)).to be_success expect(rule.(18)).to be_failure end end end
Version data entries
5 entries across 5 versions & 1 rubygems