~ubuntu-branches/ubuntu/utopic/libversion-perl/utopic

« back to all changes in this revision

Viewing changes to t/01base.t

  • Committer: Package Import Robot
  • Author(s): Logan Rosen
  • Date: 2013-04-29 14:58:47 UTC
  • mfrom: (7.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20130429145847-mkv3bf89wfqo1fvm
Tags: 1:0.9902-1ubuntu1
* Merge from Debian unstable. Remaining changes:
  - debian/control: Build-depend on locales rather than locales-all.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
BEGIN {
11
11
    require "t/coretests.pm";
12
 
    use_ok('version', 0.9901);
 
12
    use_ok('version', 0.9902);
13
13
}
14
14
 
15
15
diag "Tests with base class" if $Verbose;
33
33
};
34
34
ok defined($v), 'Fix for RT #47980';
35
35
 
 
36
{ # https://rt.cpan.org/Ticket/Display.html?id=81085
 
37
    eval { version::new() };
 
38
    like $@, qr'Usage: version::new\(class, version\)',
 
39
        'No bus err when called as function';
 
40
    eval { $x = 1; print version::new };
 
41
    like $@, qr'Usage: version::new\(class, version\)',
 
42
        'No implicit object creation when called as function';
 
43
    eval { $x = "version"; print version::new };
 
44
    like $@, qr'Usage: version::new\(class, version\)',
 
45
        'No implicit object creation when called as function';
 
46
}
 
47