@@ -4,7 +4,7 @@ use Test;
4
4
5
5
# L<S12/Method calls/"Indirect object notation now requires a colon after the invocant, even if there are no arguments">
6
6
7
- plan 34 ;
7
+ plan 37 ;
8
8
9
9
10
10
# #### Without arguments
@@ -19,8 +19,9 @@ class T1 {
19
19
ok ( $ o , " Still alive after new" );
20
20
21
21
is ( $ o . a(), ' test' , " The direct object notation call without arguments" );
22
- # ?niecza skip 'Invocant handling is NYI'
23
- is ( (a $ o : ), ' test' , " The indirect object notation call without arguments" );
22
+ # ?niecza 2 skip 'Invocant handling is NYI'
23
+ is ( (a $ o : ), ' test' , " The indirect object notation call without arguments without ()" );
24
+ is ( a($ o : ), ' test' , " The indirect object notation call without arguments with ()" );
24
25
}
25
26
26
27
# #### With arguments
@@ -38,13 +39,16 @@ class T2 {
38
39
ok ( $ o , " Still alive after new" );
39
40
my $ seed = 1000 . rand ;
40
41
is ( $ o . a( $ seed ), $ seed , " The direct object notation call with argument" );
41
- # ?niecza skip 'Invocant handling is NYI'
42
- is ( (a $ o : $ seed ), $ seed , " The indirect object notation call with argument" );
42
+ # ?niecza 2 skip 'Invocant handling is NYI'
43
+ is ( (a $ o : $ seed ), $ seed , " The indirect object notation call with argument without ()" );
44
+ is ( a($ o : $ seed ), $ seed , " The indirect object notation call with argument with ()" );
43
45
44
46
my $ name = ' a' ;
45
47
eval_dies_ok(' $name $o: $seed' , ' Indirect object notation and indirect method calls cannot be combined' );
46
48
47
- is (b $ o : 21 , 21 ), 42 , " The indirect object notation call with multiple arguments" ;
49
+ # ?niecza 2 skip 'Invocant handling is NYI'
50
+ is (b $ o : 21 , 21 ), 42 , " The indirect object notation call with multiple arguments without ()" ;
51
+ is b($ o : 21 , 21 ), 42 , " The indirect object notation call with multiple arguments with ()" ;
48
52
}
49
53
50
54
0 commit comments