Sha256: 9ac8d78e0558182317bfa6171b05e1ee8a67bdbd508fdeca19aa13515ebc5bec
Contents?: true
Size: 894 Bytes
Versions: 3
Compression:
Stored size: 894 Bytes
Contents
require 'spec_helper' require 'catlogic' require 'pry' describe 'term object' do it 'can return term as string' do term = Catlogic::Term.new('dogs') result = term.label result.should == 'dogs' end it 'can return term opposite as string' do term = Catlogic::Term.new('dogs') opposite = term.opposite result = opposite.label result.should == 'non-dogs' end it 'can return correct distribution for subject term' do term = Catlogic::Term.new('dogs') quantity = Catlogic::Quantity.new('universal') result = term.distribution_subject(quantity) result.label.should == 'distributed' end it 'can return correct distribution for predicate term' do term = Catlogic::Term.new('dogs') quality = Catlogic::Quality.new('affirmative') result = term.distribution_predicate(quality) result.label.should == 'undistributed' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
catlogic-1.1.0 | spec/term_spec.rb |
catlogic-1.0.0 | spec/term_spec.rb |
catlogic-0.0.3 | spec/term_spec.rb |