16fb12b70Safresh1#! /usr/local/perl -w 26fb12b70Safresh1# Before `make install' is performed this script should be runnable with 36fb12b70Safresh1# `make test'. After `make install' it should work as `perl test.pl' 46fb12b70Safresh1 56fb12b70Safresh1######################### 66fb12b70Safresh1 76fb12b70Safresh1use Test::More qw/no_plan/; 8b8851fccSafresh1use File::Spec; 96fb12b70Safresh1 106fb12b70Safresh1BEGIN { 119f11ffb7Safresh1 my $coretests = File::Spec->rel2abs( 129f11ffb7Safresh1 File::Spec->catpath( 13b8851fccSafresh1 (File::Spec->splitpath($0))[0,1], 'coretests.pm' 149f11ffb7Safresh1 ) 15b8851fccSafresh1 ); 166fb12b70Safresh1 require $coretests; 176fb12b70Safresh1} 186fb12b70Safresh1 196fb12b70Safresh1# Don't want to use, because we need to make sure that the import doesn't 206fb12b70Safresh1# fire just yet (some code does this to avoid importing qv() and delare()). 216fb12b70Safresh1require_ok("version"); 22*3d61058aSafresh1is $version::VERSION, '0.9930', "Make sure we have the correct class"; 236fb12b70Safresh1ok(!"main"->can("qv"), "We don't have the imported qv()"); 246fb12b70Safresh1ok(!"main"->can("declare"), "We don't have the imported declare()"); 256fb12b70Safresh1 266fb12b70Safresh1BaseTests("version","new",undef); 276fb12b70Safresh1BaseTests("version","parse",undef); 28