Skip to content

Commit fa12fff

Browse files
committed
pugs fudge
1 parent f954d29 commit fa12fff

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

S03-operators/identity.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ class TestObj { has $!a }
133133

134134
#?rakudo todo 'misuse of =:='
135135
#?niecza skip 'Failure NYI'
136+
#?pugs skip 'Failure NYI'
136137
{
137138
ok (Mu =:= Mu) ~~ Failure, 'misuse of =:= is failure (Mu)';
138139
ok (1 =:= '1') ~~ Failure, 'misuse of =:= is failure (literals)';

S04-statements/try.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use Test;
66

77
plan 24;
88

9+
#?pugs todo
910
{
1011
# simple try
1112
my $lived = Mu;
@@ -87,7 +88,7 @@ plan 24;
8788
is argcount( try { 17 }, 23, 99 ), 3, 'try gets a block, nothing more';
8889
}
8990

90-
91+
#?pugs todo
9192
{
9293
my $catches = 0;
9394
try {
@@ -102,6 +103,7 @@ plan 24;
102103
}
103104

104105
# RT #68728
106+
#?pugs todo
105107
{
106108
my $str = '';
107109
try {
@@ -120,6 +122,7 @@ plan 24;
120122
}
121123

122124
#?niecza skip 'new exception stuff'
125+
#?pugs skip '{obj:MyPayload}'
123126
{
124127
class MyPayload {
125128
method Str() { 'something exceptional' }
@@ -140,6 +143,7 @@ plan 24;
140143

141144
# RT #111704
142145
#?rakudo todo 'RT 111704'
146+
#?pugs skip 'Missing required parameters: $_'
143147
{
144148
my $x = 0;
145149
try { $x = $_ } given '42';

S06-signature/optional.t

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ is opt_typed() , 'undef', 'can leave out optional typed param';
3737

3838
# L<S06/Parameters and arguments/"required positional parameters must come
3939
# before those bound to optional positional">
40+
#?pugs todo
4041
eval_dies_ok 'sub wrong1 ($a?, $b) {...}', 'optional params before required ones are forbidden';
4142
# RT #76022
43+
#?pugs todo
4244
{
4345
eval_dies_ok 'sub wrong2 ($a = 1, $b) {...}', "...even if they're only optional by virtue of a default";
4446
eval_dies_ok 'sub wrong3 ($a = 0, $b) {...}', '...and the default is 0';
@@ -66,6 +68,7 @@ dies_ok {foo_53814(1,Mu,'something_extra',:y(3))},
6668
rt54804( 1, , 3, )/, "two commas in a row doesn't parse";
6769
}
6870

71+
#?pugs todo
6972
eval_dies_ok( 'sub rt66822($opt?, $req) { "$opt, $req" }',
7073
"Can't put required parameter after optional parameters" );
7174

@@ -80,10 +83,12 @@ is opt_hash1(), 0, "optional hash not passed is empty";
8083
is opt_hash2(), 0, "optional hash not passed is empty (copy)";
8184

8285
# RT #71110
86+
#?pugs todo
8387
eval_dies_ok 'sub opt($a = 1, $b) { }',
8488
'Cannot put required parameter after optional parameters';
8589

8690
# RT #74758
91+
#?pugs todo
8792
{
8893
sub opt-type1(Int $x?) { $x };
8994
ok opt-type1() === Int,
@@ -93,6 +98,7 @@ eval_dies_ok 'sub opt($a = 1, $b) { }',
9398
}
9499

95100
# RT # 76728
101+
#?pugs skip "Can't modify constant item: VUndef"
96102
{
97103
sub opt-hash(%h?) {
98104
%h<a> = 'b';

S32-array/delete.t

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,35 @@ sub make-string(@a) {
2525

2626
is ~@array.delete(0, 3), "a d",
2727
"deletion of array elements returned the right things";
28+
#?pugs todo
2829
is make-string(@array), "Any() b", "deletion of array elements (1)";
30+
#?pugs todo
2931
is +@array, 2, "deletion of array elements (2)";
3032
}
3133

3234
# W/ negative indices:
3335
{
3436
my @array = <a b c d>;
37+
#?pugs todo
3538
is ~@array.delete(*-2), "c",
3639
"deletion of array element accessed by an negative index returned the right thing";
3740
# @array is now ("a", "b", Any, "d") ==> double spaces
41+
#?pugs todo
3842
is make-string(@array), "a b Any() d", "deletion of an array element accessed by an negative index (1)";
3943
is +@array, 4, "deletion of an array element accessed by an negative index (2)";
4044

45+
#?pugs todo
4146
is ~@array.delete(*-1), "d",
4247
"deletion of last array element returned the right thing";
4348
# @array is now ("a", "b")
49+
#?pugs todo
4450
is ~@array, "a b", "deletion of last array element (1)";
51+
#?pugs todo
4552
is +@array, 2, "deletion of last array element (2)";
4653
}
4754

4855
# W/ multiple positive and negative indices:
56+
#?pugs todo
4957
{
5058
my @array = <a b c d e f>;
5159
is ~@array.delete(2, *-3, *-1), "c d f",
@@ -60,6 +68,7 @@ sub make-string(@a) {
6068
# Results taken from Perl 5
6169
#?niecza todo "Not sure if this test is correct or not"
6270
#?rakudo todo "Not sure if this test is correct or not"
71+
#?pugs todo "Not sure if this test is correct or not"
6372
{
6473
my @array = <a b c>;
6574
is ~@array.delete(2, *-1), "c b",
@@ -71,6 +80,7 @@ sub make-string(@a) {
7180
}
7281

7382
# L<S32::Containers/"Array"/"Deleted elements at the end of an Array">
83+
#?pugs todo
7484
{
7585
my @array;
7686
@array[8] = 'eight';
@@ -105,6 +115,7 @@ sub make-string(@a) {
105115
# RT #67446
106116
{
107117
my @array = 0..1;
118+
#?pugs todo
108119
is ~(eval @array.perl ), '0 1', '@array.perl works after init';
109120
is ~( map { 1 }, @array ), '1 1', 'map @array works after init';
110121
@array.delete(0);

0 commit comments

Comments
 (0)