# File tests/synset.tests.rb, line 220 def test_43_traversal_includeOrigin_noblock_nobreak printTestHeader "Synset: Traversal, include origin, nobreak, noblock" sets = [] assert_nothing_raised { sets = @syn.traverse( :hyponyms ) } assert_block { sets.length > 1 } assert_equal @syn, sets[0] assert_block { sets.find {|hsyn| hsyn.words.include?( "grammar" )} } assert_block { sets.find {|hsyn| hsyn.words.include?( "syntax" )} } assert_block { sets.find {|hsyn| hsyn.words.include?( "computational linguistics" )} } end