From: Tara L Andrews Date: Sun, 15 Apr 2012 21:53:36 +0000 (+0200) Subject: remove refs to deprecated relationship type 'meaning' X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f8331a4d9b70a88b2a2cfdfba09c43daeb6aa398;p=scpubgit%2Fstemmatology.git remove refs to deprecated relationship type 'meaning' --- diff --git a/lib/Text/Tradition/Collation/RelationshipStore.pm b/lib/Text/Tradition/Collation/RelationshipStore.pm index 55d6943..4bd219c 100644 --- a/lib/Text/Tradition/Collation/RelationshipStore.pm +++ b/lib/Text/Tradition/Collation/RelationshipStore.pm @@ -37,7 +37,7 @@ my $t = Text::Tradition->new( ); my $c = $t->collation; -my @v1 = $c->add_relationship( 'n21', 'n22', { 'type' => 'meaning' } ); +my @v1 = $c->add_relationship( 'n21', 'n22', { 'type' => 'lexical' } ); is( scalar @v1, 1, "Added a single relationship" ); is( $v1[0]->[0], 'n21', "Got correct node 1" ); is( $v1[0]->[1], 'n22', "Got correct node 2" ); diff --git a/t/data/besoin.xml b/t/data/besoin.xml index aae88af..60b5dea 100644 --- a/t/data/besoin.xml +++ b/t/data/besoin.xml @@ -60363,11 +60363,6 @@ global 1p poss/main - - meaning - global - synonyms - grammatical global @@ -60472,11 +60467,6 @@ global verb mood - - meaning - global - opposites - grammatical global diff --git a/t/text_tradition_collation_relationshipstore.t b/t/text_tradition_collation_relationshipstore.t index 6b9db2b..01c888d 100644 --- a/t/text_tradition_collation_relationshipstore.t +++ b/t/text_tradition_collation_relationshipstore.t @@ -23,7 +23,7 @@ my $t = Text::Tradition->new( ); my $c = $t->collation; -my @v1 = $c->add_relationship( 'n21', 'n22', { 'type' => 'meaning' } ); +my @v1 = $c->add_relationship( 'n21', 'n22', { 'type' => 'lexical' } ); is( scalar @v1, 1, "Added a single relationship" ); is( $v1[0]->[0], 'n21', "Got correct node 1" ); is( $v1[0]->[1], 'n22', "Got correct node 2" );