[libattean-perl] 10/42: Improve code coverage for Attean::TermMap

Jonas Smedegaard dr at jones.dk
Mon Feb 12 13:16:12 UTC 2018


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.019-1
in repository libattean-perl.

commit d5ede30695bc7403ff49da1a480d382c1575656f
Author: Varadinsky <varadinsky at yahoo.com>
Date:   Wed Oct 26 15:45:40 2016 +0200

    Improve code coverage for Attean::TermMap
---
 t/term-map.t | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/t/term-map.t b/t/term-map.t
index 63b858a..6c44e82 100644
--- a/t/term-map.t
+++ b/t/term-map.t
@@ -75,4 +75,12 @@ subtest 'UUID blank node label mapping' => sub {
 	}
 };
 
+subtest 'canonicalize literal' => sub {
+		my $i = Attean::Literal->integer('+12');
+		my $m = Attean::TermMap->canonicalization_map;
+		my $new_i = $m->map($i);
+
+		is($new_i->ntriples_string, '"12"^^<http://www.w3.org/2001/XMLSchema#integer>');
+};
+
 done_testing();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libattean-perl.git



More information about the Pkg-perl-cvs-commits mailing list