File: relation.t

package info (click to toggle)
libcql-parser-perl 1.13-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 316 kB
  • sloc: perl: 2,388; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use strict;
use warnings; 
use Test::More qw( no_plan );

use_ok( 'CQL::Relation' );

my $relation = CQL::Relation->new( 'exact' );
isa_ok( $relation, 'CQL::Relation' );

$relation->addModifier( 'stem' );
is( $relation->toCQL(), 'exact/stem', 'toCQL()' );

is_deeply( [ $relation->getModifiers() ], [ [ undef, 'stem' ] ], 
    'getModifiers()' );