Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix tests to match current (std).
  • Loading branch information
colomon committed Mar 5, 2013
1 parent 2a7e0fd commit 061b688
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test.pl
Expand Up @@ -91,14 +91,14 @@
ok Bool::False ~~ Bool && !Bool::False, "Bool::False is the right constant";
ok Bool::True ~~ Bool && Bool::True, "Bool::True is the right constant";

ok Any.gist eq "Any()", "Any.gist is Any()";
ok Any.gist eq "(Any)", "Any.gist is (Any)";

ok (2.WHAT === 3.WHAT), "different objects get the same WHAT";
ok !(2.WHAT.defined), "WHATs are undefined type objects";
ok (sub foo() {}).WHAT.gist eq 'Sub()', 'WHAT of a Sub is Sub()';
ok (sub foo() {}).WHAT.gist eq '(Sub)', 'WHAT of a Sub is (Sub)';
ok "Foo".WHAT === Str, 'WHAT of a Str *is* Str';

ok "Foo".HOW.WHAT.gist eq 'ClassHOW()', 'anything.HOW is a ClassHOW';
ok "Foo".HOW.WHAT.gist eq '(ClassHOW)', 'anything.HOW is a ClassHOW';
ok "Foo".HOW === "Cow".HOW, 'objects of the same class have the same HOW';
ok !("Foo".HOW === Any.HOW), 'objects of different classes have different HOWs';

Expand Down Expand Up @@ -361,7 +361,7 @@

{
my $whatever = *;
ok $whatever.WHAT.gist eq 'Whatever()', "can call methods on a specific Whatever";
ok $whatever.WHAT.gist eq '(Whatever)', "can call methods on a specific Whatever";
my $wwhat = *.WHAT;
ok !($wwhat.^isa(Whatever)), "method calls against * curry, though";

Expand Down Expand Up @@ -1065,9 +1065,9 @@
ok Foo::Bar.bar == 51, "within Foo, Bar is longname accessible";
ok GLOBAL::Foo::Bar.bar == 51, "within Foo, Bar is GLOBAL accessible";
}
ok Foo.gist eq 'Foo()', "lexical lookup of our-class works";
ok OUR::Foo.gist eq 'Foo()', "also visible in ourpad";
ok GLOBAL::Foo.gist eq 'Foo()', "also visible globally";
ok Foo.gist eq '(Foo)', "lexical lookup of our-class works";
ok OUR::Foo.gist eq '(Foo)', "also visible in ourpad";
ok GLOBAL::Foo.gist eq '(Foo)', "also visible globally";
ok Foo::Bar.bar == 51, "can call through nested methods";
ok GLOBAL::Foo::Bar.bar == 51, "can call through GLOBAL nested";
}
Expand Down

0 comments on commit 061b688

Please sign in to comment.