repo.or.cz
/
pugs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[t/spec] Add tricky tests (which pass after latest Rakudo patch), unfudge old simple...
[pugs.git]
/
t
/
01-sanity
/
07-ref.t
blob
56e93ded6e16d47883adab1a27162339bb16a144
1
use v6;
2
3
4
say "1..3";
5
6
{
7
my $string = "Pugs";
8
if $string.WHAT eq Str { say "ok 1" } else { say "not ok 1" }
9
}
10
11
{
12
my $bool = ?1;
13
if $bool.WHAT eq Bool { say "ok 2" } else { say "not ok 2" }
14
}
15
16
{
17
my $bool = Bool::True;
18
if $bool.WHAT eq Bool { say "ok 3" } else { say "not ok 3" }
19
}