spec/unit/rule/result_spec.rb in dry-logic-0.1.2 vs spec/unit/rule/result_spec.rb in dry-logic-0.1.3

- old
+ new

@@ -17,11 +17,11 @@ end it 'evaluates successful input for the ast' do expect(rule.(name: is_str.('jane')).to_ary).to eql([ :input, [ - :name, nil, [[:res, [:name, [:predicate, [:min_size?, [4]]]]]] + :name, 'jane', [[:res, [:name, [:predicate, [:min_size?, [4]]]]]] ] ]) end it 'evaluates failed input for the ast' do @@ -42,11 +42,11 @@ end it 'evaluates input for the ast' do expect(conjunction.(name: is_str.('john')).to_ary).to eql([ :input, [ - :name, nil, [[:res, [:name, [:predicate, [:eql?, ["jane"]]]]]] + :name, 'john', [[:res, [:name, [:predicate, [:eql?, ['jane']]]]]] ] ]) end end @@ -61,11 +61,11 @@ it 'evaluates input for the ast' do result = xor.(name: is_str.('john')) expect(result.to_ary).to eql([ :input, [ - :name, nil, [[:res, [:name, [:predicate, [:min_size?, [4]]]]]] + :name, 'john', [[:res, [:name, [:predicate, [:min_size?, [4]]]]]] ] ]) end end @@ -81,10 +81,10 @@ it 'evaluates input for the ast' do result = implication.(name: is_str.('john')) expect(result.to_ary).to eql([ :input, [ - :name, nil, [[:res, [:name, [:predicate, [:eql?, ['jane']]]]]] + :name, 'john', [[:res, [:name, [:predicate, [:eql?, ['jane']]]]]] ] ]) end end end