Mercurial > pub > Impl
view _test/Test/DOM/Schema.pm @ 20:267460284fb3
DOM Schema
author | Sergey |
---|---|
date | Tue, 22 Sep 2009 17:17:38 +0400 |
parents | 1ca530e5c9c5 |
children | 7f00786f8210 |
line wrap: on
line source
package Test::DOM::Schema; use strict; use warnings; use base qw(IMPL::Test::Unit); use IMPL::Test qw(test failed); __PACKAGE__->PassThroughArgs; require IMPL::DOM::Schema; test GetMetaSchema => sub { my $metaSchema = IMPL::DOM::Schema->MetaSchema(); }; test AutoverifyMetaSchema => sub { my $metaSchema = IMPL::DOM::Schema->MetaSchema(); if (my @errors = $metaSchema->Validate($metaSchema)) { failed "Self verification failed", map $_ ? $_->Message : 'unknown', @errors; } }; 1;