and empty_operator compute always true

This commit is contained in:
simon lehericey 2022-07-04 11:09:23 +02:00
parent 6e8206b8b4
commit df7acf70c8
2 changed files with 11 additions and 0 deletions

View file

@ -4,4 +4,8 @@ class Logic::EmptyOperator < Logic::BinaryOperator
def type = :empty def type = :empty
def errors(_stable_ids = nil) = [] def errors(_stable_ids = nil) = []
def compute(_champs = [])
true
end
end end

View file

@ -0,0 +1,7 @@
describe Logic::EmptyOperator do
include Logic
describe '#compute' do
it { expect(empty_operator(empty, empty).compute).to be true }
end
end