/[suikacvs]/messaging/manakai/t/util-qname-general.t
Suika

Contents of /messaging/manakai/t/util-qname-general.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.2.1 - (hide annotations) (download) (as text)
Sun Feb 22 01:47:35 2004 UTC (20 years, 9 months ago) by wakaba
Branch: experimental-xml-parser-200401
Changes since 1.1: +0 -0 lines
File MIME type: application/x-troff
Merge HEAD

1 wakaba 1.1 #!/usr/bin/perl -w
2     use strict;
3     use Test;
4    
5     use Message::Markup::XML::QName qw(DEFAULT_PFX EMPTY_PFX);
6     use Message::Util::QName::General
7     [qw/ExpandedName ExpandedURI/],
8     {
9     xhtml1 => q<http://www.w3.org/1999/xhtml>,
10     about => q<about:>,
11     (DEFAULT_PFX) => q<http://default.example/>,
12     (EMPTY_PFX) => q<data:,>,
13     };
14    
15     plan tests => 5;
16    
17     ok scalar ExpandedName q<about:blank>, q<about:blank>;
18    
19     ok join ("\t", ExpandedName q<xhtml1:class>),
20     join ("\t", q<http://www.w3.org/1999/xhtml>, q<class>);
21    
22     ok scalar ExpandedName q<foo>, q<http://default.example/foo>;
23    
24     ok ExpandedURI q<:foo>, q<data:,foo>;
25     ok ExpandedURI q<foo>, q<http://default.example/foo>;
26    

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24