Sha256: 4ac2d07b37eed680074ec7621042efc2fbc04c9ca995560c2af58583bd502181
Contents?: true
Size: 1.8 KB
Versions: 3
Compression:
Stored size: 1.8 KB
Contents
#!/usr/bin/env rspec -cfd require_relative '../helpers' require 'wordnet' describe 'WordNet::Sense', :requires_database do before( :all ) do @lexicon = WordNet::Lexicon.new( $dburi ) end let( :described_class ) { WordNet::Sense } let( :sense ) do WordNet::Word[ 79712 ].senses.first end it "has a dataset for its 'also_see' lexical links" do expect( sense.also_see ).to be_a( Sequel::Dataset ) end it "has a dataset for its 'antonym' lexical links" do expect( sense.antonym ).to be_a( Sequel::Dataset ) end it "has a dataset for its 'derivation' lexical links" do expect( sense.derivation ).to be_a( Sequel::Dataset ) end it "has a dataset for its 'domain_categories' lexical links" do expect( sense.domain_categories ).to be_a( Sequel::Dataset ) end it "has a dataset for its 'domain_member_categories' lexical links" do expect( sense.domain_member_categories ).to be_a( Sequel::Dataset ) end it "has a dataset for its 'domain_member_region' lexical links" do expect( sense.domain_member_region ).to be_a( Sequel::Dataset ) end it "has a dataset for its 'domain_member_usage' lexical links" do expect( sense.domain_member_usage ).to be_a( Sequel::Dataset ) end it "has a dataset for its 'domain_region' lexical links" do expect( sense.domain_region ).to be_a( Sequel::Dataset ) end it "has a dataset for its 'domain_usage' lexical links" do expect( sense.domain_usage ).to be_a( Sequel::Dataset ) end it "has a dataset for its 'participle' lexical links" do expect( sense.participle ).to be_a( Sequel::Dataset ) end it "has a dataset for its 'pertainym' lexical links" do expect( sense.pertainym ).to be_a( Sequel::Dataset ) end it "has a dataset for its 'verb_group' lexical links" do expect( sense.verb_group ).to be_a( Sequel::Dataset ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wordnet-1.2.0 | spec/wordnet/sense_spec.rb |
wordnet-1.1.1 | spec/wordnet/sense_spec.rb |
wordnet-1.1.0 | spec/wordnet/sense_spec.rb |