Fixed matchID transformation to deal with textSigles having dashes
Change-Id: I0bba96ffc45d34551146cc59a7db4d6ed3c39210
diff --git a/t/query.t b/t/query.t
index 3252bac..035560d 100644
--- a/t/query.t
+++ b/t/query.t
@@ -2,6 +2,7 @@
use Test::Mojo;
use Test::More;
use Mojo::File qw/path/;
+use Kalamar::Controller::Search;
#####################
@@ -250,5 +251,16 @@
;
+
+my $match = {
+ matchID => 'match-FOLK/00070-SE-01/T-04-p5441-5442',
+ textSigle => 'FOLK/00070-SE-01/T-04'
+};
+
+$match = Kalamar::Controller::Search::_map_match($match);
+
+is($match->{matchID}, 'p5441-5442');
+
+
done_testing;
__END__