Skip to content

Commit bc3cf5e

Browse files
committed
Remove trailing whitespace
1 parent db94d84 commit bc3cf5e

File tree

1 file changed

+45
-45
lines changed

1 file changed

+45
-45
lines changed

S03-junctions/misc.t

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plan 142;
66

77
=begin pod
88
9-
Misc. Junction tests
9+
Misc. Junction tests
1010
1111
=end pod
1212

@@ -28,53 +28,53 @@ sub jok(Mu $condition, $msg?) { ok ?($condition), $msg };
2828
my $a = '';
2929
my $b = '';
3030
my $c = '';
31-
31+
3232
# make sure they all match to an empty string
3333
jok('' eq ($a & $b & $c), 'junction of ($a & $b & $c) matches an empty string');
34-
jok('' eq all($a, $b, $c), 'junction of all($a, $b, $c) matches an empty string');
35-
34+
jok('' eq all($a, $b, $c), 'junction of all($a, $b, $c) matches an empty string');
35+
3636
# give $a a value
37-
$a = 'a';
38-
39-
# make sure that at least one of them matches 'a'
37+
$a = 'a';
38+
39+
# make sure that at least one of them matches 'a'
4040
jok('a' eq ($b | $c | $a), 'junction of ($b | $c | $a) matches at least one "a"');
41-
jok('a' eq any($b, $c, $a), 'junction of any($b, $c, $a) matches at least one "a"');
41+
jok('a' eq any($b, $c, $a), 'junction of any($b, $c, $a) matches at least one "a"');
4242

4343
jok('' eq ($b | $c | $a), 'junction of ($b | $c | $a) matches at least one empty string');
4444
jok('' eq any($b, $c, $a), 'junction of any($b, $c, $a) matches at least one empty string');
45-
45+
4646
# make sure that ~only~ one of them matches 'a'
4747
jok('a' eq ($b ^ $c ^ $a), 'junction of ($b ^ $c ^ $a) matches at ~only~ one "a"');
4848
jok('a' eq one($b, $c, $a), 'junction of one($b, $c, $a) matches at ~only~ one "a"');
49-
49+
5050
# give $b a value
5151
$b = 'a';
52-
52+
5353
# now this will fail
54-
jok('a' ne ($b ^ $c ^ $a), 'junction of ($b ^ $c ^ $a) matches at more than one "a"');
54+
jok('a' ne ($b ^ $c ^ $a), 'junction of ($b ^ $c ^ $a) matches at more than one "a"');
5555

5656
# change $b and give $c a value
5757
$b = 'b';
5858
$c = 'c';
59-
59+
6060
jok('a' eq ($b ^ $c ^ $a), 'junction of ($b ^ $c ^ $a) matches at ~only~ one "a"');
6161
jok('b' eq ($a ^ $b ^ $c), 'junction of ($a ^ $b ^ $c) matches at ~only~ one "b"');
62-
jok('c' eq ($c ^ $a ^ $b), 'junction of ($c ^ $a ^ $b) matches at ~only~ one "c"');
62+
jok('c' eq ($c ^ $a ^ $b), 'junction of ($c ^ $a ^ $b) matches at ~only~ one "c"');
6363

6464
jok('a' eq ($b | $c | $a), 'junction of ($b | $c | $a) matches at least one "a"');
6565
jok('b' eq ($a | $b | $c), 'junction of ($a | $b | $c) matches at least one "b"');
66-
jok('c' eq ($c | $a | $b), 'junction of ($c | $a | $b) matches at least one "c"');
66+
jok('c' eq ($c | $a | $b), 'junction of ($c | $a | $b) matches at least one "c"');
67+
6768

68-
6969
# test junction to junction
70-
jok(('a' | 'b' | 'c') eq ($a & $b & $c), 'junction ("a" | "b" | "c") matches junction ($a & $b & $c)');
71-
jok(('a' & 'b' & 'c') eq ($a | $b | $c), 'junction ("a" & "b" & "c") matches junction ($a | $b | $c)');
72-
70+
jok(('a' | 'b' | 'c') eq ($a & $b & $c), 'junction ("a" | "b" | "c") matches junction ($a & $b & $c)');
71+
jok(('a' & 'b' & 'c') eq ($a | $b | $c), 'junction ("a" & "b" & "c") matches junction ($a | $b | $c)');
72+
7373
# mix around variables and literals
74-
75-
jok(($a & 'b' & 'c') eq ('a' | $b | $c), 'junction ($a & "b" & "c") matches junction ("a" | $b | $c)');
76-
jok(($a & 'b' & $c) eq ('a' | $b | 'c'), 'junction ($a & "b" & $c) matches junction ("a" | $b | "c")');
77-
74+
75+
jok(($a & 'b' & 'c') eq ('a' | $b | $c), 'junction ($a & "b" & "c") matches junction ("a" | $b | $c)');
76+
jok(($a & 'b' & $c) eq ('a' | $b | 'c'), 'junction ($a & "b" & $c) matches junction ("a" | $b | "c")');
77+
7878
}
7979

8080
# same tests, but with junctions as variables
@@ -83,41 +83,41 @@ sub jok(Mu $condition, $msg?) { ok ?($condition), $msg };
8383
my $a = '';
8484
my $b = '';
8585
my $c = '';
86-
86+
8787
my Mu $all_of_them = $a & $b & $c;
8888
jok('' eq $all_of_them, 'junction variable of ($a & $b & $c) matches and empty string');
89-
90-
$a = 'a';
91-
89+
90+
$a = 'a';
91+
9292
my Mu $any_of_them = $b | $c | $a;
93-
jok('a' eq $any_of_them, 'junction variable of ($b | $c | $a) matches at least one "a"');
93+
jok('a' eq $any_of_them, 'junction variable of ($b | $c | $a) matches at least one "a"');
9494
jok('' eq $any_of_them, 'junction variable of ($b | $c | $a) matches at least one empty string');
95-
95+
9696
my Mu $one_of_them = $b ^ $c ^ $a;
9797
jok('a' eq $one_of_them, 'junction variable of ($b ^ $c ^ $a) matches at ~only~ one "a"');
98-
98+
9999
$b = 'a';
100-
100+
101101
{
102102
my Mu $one_of_them = $b ^ $c ^ $a;
103-
jok('a' ne $one_of_them, 'junction variable of ($b ^ $c ^ $a) matches at more than one "a"');
103+
jok('a' ne $one_of_them, 'junction variable of ($b ^ $c ^ $a) matches at more than one "a"');
104104
}
105-
105+
106106
$b = 'b';
107107
$c = 'c';
108-
108+
109109
{
110-
my Mu $one_of_them = $b ^ $c ^ $a;
110+
my Mu $one_of_them = $b ^ $c ^ $a;
111111
jok('a' eq $one_of_them, 'junction of ($b ^ $c ^ $a) matches at ~only~ one "a"');
112112
jok('b' eq $one_of_them, 'junction of ($a ^ $b ^ $c) matches at ~only~ one "b"');
113-
jok('c' eq $one_of_them, 'junction of ($c ^ $a ^ $b) matches at ~only~ one "c"');
113+
jok('c' eq $one_of_them, 'junction of ($c ^ $a ^ $b) matches at ~only~ one "c"');
114114
}
115115

116116
{
117117
my Mu $any_of_them = $b | $c | $a;
118118
jok('a' eq $any_of_them, 'junction of ($b | $c | $a) matches at least one "a"');
119119
jok('b' eq $any_of_them, 'junction of ($a | $b | $c) matches at least one "b"');
120-
jok('c' eq $any_of_them, 'junction of ($c | $a | $b) matches at least one "c"');
120+
jok('c' eq $any_of_them, 'junction of ($c | $a | $b) matches at least one "c"');
121121
}
122122

123123
}
@@ -142,7 +142,7 @@ sub jok(Mu $condition, $msg?) { ok ?($condition), $msg };
142142

143143
=begin description
144144
145-
Tests junction examples from Synopsis 03
145+
Tests junction examples from Synopsis 03
146146
147147
j() is used to convert a junction to canonical string form, currently
148148
just using .perl until a better approach presents itself.
@@ -207,7 +207,7 @@ sub j (Mu $j) { return $j.perl }
207207

208208
# L<S03/Junctive operators/Junctions are specifically unordered>
209209
# Compiler *can* reorder and parallelize but *may not* so don't test
210-
# for all(@foo) {...};
210+
# for all(@foo) {...};
211211

212212
# Not sure what is expected
213213
#my %got = ('1' => 1); # Hashes are unordered too
@@ -224,8 +224,8 @@ These are implemented but still awaiting clarification on p6l.
224224
On Fri, 2005-02-11 at 10:46 +1100, Damian Conway wrote:
225225
> Subject: Re: Fwd: Junctive puzzles.
226226
>
227-
> Junctions have an associated boolean predicate that's preserved across
228-
> operations on the junction. Junctions also implicitly distribute across
227+
> Junctions have an associated boolean predicate that's preserved across
228+
> operations on the junction. Junctions also implicitly distribute across
229229
> operations, and rejunctify the results.
230230
231231
=end description
@@ -267,7 +267,7 @@ These are implemented but still awaiting clarification on p6l.
267267
is(j((1|2)^(3&4)), j(one(any(1,2),all(3,4))),
268268
'((1|2)^(3&4)) equiv to one(any(1,2),all(3,4))');
269269

270-
is(j((1|2)&(3&4)), j(all(any(1,2),all(3,4))),
270+
is(j((1|2)&(3&4)), j(all(any(1,2),all(3,4))),
271271
'((1|2)&(3&4)) equiv to all(any(1,2),all(3,4))');
272272

273273
is(j((1|2)|(3&4)), j(any(any(1,2),all(3,4))),
@@ -332,15 +332,15 @@ ok Mu & Mu ~~ Mu, 'Mu & Mu ~~ Mu works';
332332
{
333333
my Mu $res = substr("abcd", 1|2, 2);
334334
isa-ok $res, Junction;
335-
ok $res eq "bc", "substr on junctions: bc";
335+
ok $res eq "bc", "substr on junctions: bc";
336336
ok $res eq "cd", "substr on junctions: cd";
337337
}
338338

339339
{
340340
my Mu $res = substr("abcd", 1, 1|2);
341341
isa-ok $res, Junction;
342-
ok $res eq "bc", "substr on junctions: bc";
343-
ok $res eq "b", "substr on junctions: b";
342+
ok $res eq "bc", "substr on junctions: bc";
343+
ok $res eq "b", "substr on junctions: b";
344344
}
345345

346346
{

0 commit comments

Comments
 (0)