File: primitive_spec.rb

package info (click to toggle)
ruby-morpher 0.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 520 kB
  • sloc: ruby: 2,366; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 555 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
describe Morpher::Evaluator::Predicate::Primitive::Exact do
  let(:object) { described_class.new(Morpher::Evaluator) }

  let(:positive_input) { Morpher::Evaluator.allocate }
  let(:negative_input) { Morpher::Evaluator::Predicate.allocate }

  include_examples 'predicate evaluator'
end

describe Morpher::Evaluator::Predicate::Primitive::Permissive do
  let(:object) { described_class.new(Morpher::Evaluator) }

  let(:positive_input) { Morpher::Evaluator::Predicate.allocate }
  let(:negative_input) { '' }

  include_examples 'predicate evaluator'
end