Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 19 lines (13 sloc) 0.45 kb
21f2f52 [t] move tests for spaceship operator to spec/
moritz authored
1 use v6;
2
3 use Test;
4
5 plan 6;
6 #L<S03/Comparison semantics/The <=> operator>
7
8 my %h = ("a" => 1, "b" => 2);
9 ok(%h{"a"} < %h{"b"}, 'comparing hash values');
10 ok(%h{"a"} <= %h{"b"}, 'comparing hash values');
3a5af16 @lizmat Increase/Decrease -> Less/More migration
lizmat authored
11 is(%h{"a"} <=> %h{"b"}, Order::Less, 'comparing hash values');
21f2f52 [t] move tests for spaceship operator to spec/
moritz authored
12
13 my @a = (1, 2);
14 ok(@a[0] < @a[1], 'comparing array values');
15 ok(@a[0] <= @a[1], 'comparing array values');
3a5af16 @lizmat Increase/Decrease -> Less/More migration
lizmat authored
16 is(@a[0] <=> @a[1], Order::Less, 'comparing array values');
7f29bc5 [t/spec] Add vim: lines everywhere.
kyle authored
17
18 # vim: ft=perl6
Something went wrong with that request. Please try again.