Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 28 lines (19 sloc) 0.426 kb
b320c8f [t] move a hash test to spec/
moritz authored
1 use v6;
2
0477942 some more smartlinks updated
szabgab authored
3 # L<S06/Parameters and arguments>
4 # TODO: better smart-linking
5
b320c8f [t] move a hash test to spec/
moritz authored
6 use Test;
7 plan 3;
8
9 sub sanity {
10 my %sane = 'a'..'d' Z 1..4;
11 isa_ok(%sane, Hash, '%sane is a Hash');
12 }
13
2943120 [t/spec]: Clean up passing-hashes.t, remove unneeded "returns Void"
pmichaud authored
14 sub insanity (%baloney) {
b320c8f [t] move a hash test to spec/
moritz authored
15 isa_ok(%baloney, Hash, '%baloney is a Hash');
16 }
17
18 # sanity 0
19 my %h = 'a'..'d' Z 1..4;
ccbeedd [t/spec]: Use isa_ok instead of WHAT to test types.
pmichaud authored
20 isa_ok(%h.WHAT, Hash, '%h is a Hash');
b320c8f [t] move a hash test to spec/
moritz authored
21
22 #sanity 1;
23 sanity;
24
061d002 [t/spec] various small improvements.
moritz authored
25 # Hash passed to a sub used to become a List in pugs
b320c8f [t] move a hash test to spec/
moritz authored
26 insanity %h;
27
Something went wrong with that request. Please try again.