Fixed Mojolicious 7 support
Change-Id: I47e60a2b14c7c1a17b66399b3bde4f8861e5b804
diff --git a/t/tokens.t b/t/tokens.t
index 59b83f3..cb7f623 100644
--- a/t/tokens.t
+++ b/t/tokens.t
@@ -5,9 +5,9 @@
use Benchmark ':hireswallclock';
use lib 'lib', '../lib';
-use_ok('KorAP::XML::Field::MultiTerm');
+use_ok('KorAP::XML::Index::MultiTerm');
-ok(my $term = KorAP::XML::Field::MultiTerm->new(
+ok(my $term = KorAP::XML::Index::MultiTerm->new(
term => 'Baum',
p_start => 0,
p_end => 56,
@@ -24,7 +24,7 @@
is($term->payload, '<i>56');
is($term->to_string, 'Baum$<i>34<i>120<i>56<i>56');
-ok($term = KorAP::XML::Field::MultiTerm->new(
+ok($term = KorAP::XML::Index::MultiTerm->new(
term => 'Baum'
), 'Create new object');
@@ -36,7 +36,7 @@
is($term->payload, undef);
is($term->to_string, 'Baum');
-ok($term = KorAP::XML::Field::MultiTerm->new(
+ok($term = KorAP::XML::Index::MultiTerm->new(
term => 'Ba#um'
), 'Create new object');
@@ -48,7 +48,7 @@
is($term->payload, undef);
is($term->to_string, 'Ba\#um');
-ok($term = KorAP::XML::Field::MultiTerm->new(
+ok($term = KorAP::XML::Index::MultiTerm->new(
term => 'Ba#u$m',
payload => '<i>45'
), 'Create new object');