Skip to content

Commit a1cd3e7

Browse files
committed
Fudge tests for RT #128031 on JVM
1 parent 0e0084f commit a1cd3e7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

S04-declarations/smiley.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ is { my Int:_ $a }(), Int, 'can Int:_ be on its own';
2121
is { my Int:_ $a = Int }(), Int, 'can Int:_ take an Int:U';
2222
is { my Int:_ $a = 42 }(), 42, 'can Int:_ take an Int:D';
2323

24+
#?rakudo.jvm todo "got '?.?' RT #128031"
2425
is { my Int:U $a }(), Int:U, 'can Int:U be on its own';
2526
is { my Int:U $a = Int }(), Int, 'can Int:U take an Int:U';
2627
throws-like { my Int:U $a = 42 },
@@ -45,6 +46,7 @@ is { my Int:D $a = 42 }(), 42, 'can Int:D take an Int:D';
4546
is { my Int:_ $a = Int }(), Int, 'with :_, can Int:_ take an Int:U';
4647
is { my Int:_ $a = 42 }(), 42, 'with :_, can Int:_ take an Int:D';
4748

49+
#?rakudo.jvm todo "got '?.?' RT #128031"
4850
is { my Int:U $a }(), Int:U, 'with :_, can Int:U be on its own';
4951
is { my Int:U $a = Int }(), Int, 'with :_, can Int:U take an Int:U';
5052
throws-like { my Int:U $a = 42 },
@@ -62,6 +64,7 @@ is { my Int:D $a = 42 }(), 42, 'can Int:D take an Int:D';
6264

6365
{
6466
use variables :U;
67+
#?rakudo.jvm todo "got '?.?' RT #128031"
6568
is { my Int $a }(), Int:U, 'with :U, can Int be on its own';
6669
is { my Int $a = Int }(), Int, 'with :U, can Int take an Int:U';
6770
throws-like { my Int $a = 42 },
@@ -72,6 +75,7 @@ is { my Int:D $a = 42 }(), 42, 'can Int:D take an Int:D';
7275
is { my Int:_ $a = Int }(), Int, 'with :U, can Int:_ take an Int:U';
7376
is { my Int:_ $a = 42 }(), 42, 'with :U, can Int:_ take an Int:D';
7477

78+
#?rakudo.jvm todo "got '?.?' RT #128031"
7579
is { my Int:U $a }(), Int:U, 'with :U, can Int:U be on its own';
7680
is { my Int:U $a = Int }(), Int, 'with :U, can Int:U take an Int:U';
7781
throws-like { my Int:U $a = 42 },
@@ -102,6 +106,7 @@ is { my Int:D $a = 42 }(), 42, 'can Int:D take an Int:D';
102106
is { my Int:_ $a = Int }(), Int, 'with :D, can Int:_ take an Int:U';
103107
is { my Int:_ $a = 42 }(), 42, 'with :D, can Int:_ take an Int:D';
104108

109+
#?rakudo.jvm todo "got '?.?' RT #128031"
105110
is { my Int:U $a }(), Int:U, 'with :D, can Int:U be on its own';
106111
is { my Int:U $a = Int }(), Int, 'with :D, can Int:U take an Int:U';
107112
throws-like { my Int:U $a = 42 },

S12-attributes/smiley.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ is class { has Int:_ $.a }.new.a, Int, 'can Int:_ be on its own';
1111
is class { has Int:_ $.a = Int }.new.a, Int, 'can Int:_ take an Int:U';
1212
is class { has Int:_ $.a = 42 }.new.a, 42, 'can Int:_ take an Int:D';
1313

14+
#?rakudo.jvm todo "got '?.?' RT #128031"
1415
is class { has Int:U $.a }.new.a, Int:U, 'can Int:U be on its own';
1516
is class { has Int:U $.a = Int }.new.a, Int, 'can Int:U take an Int:U';
1617
throws-like { class { has Int:U $.a = 42 }.new.a },
@@ -35,6 +36,7 @@ is class { has Int:D $.a = 42 }.new.a, 42, 'can Int:D take an Int:D';
3536
is class { has Int:_ $.a = Int }.new.a, Int, 'with :_, can Int:_ take an Int:U';
3637
is class { has Int:_ $.a = 42 }.new.a, 42, 'with :_, can Int:_ take an Int:D';
3738

39+
#?rakudo.jvm todo "got '?.?' RT #128031"
3840
is class { has Int:U $.a }.new.a, Int:U, 'with :_, can Int:U be on its own';
3941
is class { has Int:U $.a = Int }.new.a, Int, 'with :_, can Int:U take an Int:U';
4042
throws-like { class { has Int:U $.a = 42 }.new },
@@ -52,6 +54,7 @@ is class { has Int:D $.a = 42 }.new.a, 42, 'can Int:D take an Int:D';
5254

5355
{
5456
use attributes :U;
57+
#?rakudo.jvm todo "got '?.?' RT #128031"
5558
is class { has Int $.a }.new.a, Int:U, 'with :U, can Int be on its own';
5659
is class { has Int $.a = Int }.new.a, Int, 'with :U, can Int take an Int:U';
5760
throws-like { class { has Int $a = 42 }.new },
@@ -62,6 +65,7 @@ is class { has Int:D $.a = 42 }.new.a, 42, 'can Int:D take an Int:D';
6265
is class { has Int:_ $.a = Int }.new.a, Int, 'with :U, can Int:_ take an Int:U';
6366
is class { has Int:_ $.a = 42 }.new.a, 42, 'with :U, can Int:_ take an Int:D';
6467

68+
#?rakudo.jvm todo "got '?.?' RT #128031"
6569
is class { has Int:U $.a }.new.a, Int:U, 'with :U, can Int:U be on its own';
6670
is class { has Int:U $.a = Int }.new.a, Int, 'with :U, can Int:U take an Int:U';
6771
throws-like { class { has Int:U $.a = 42 }.new },
@@ -91,6 +95,7 @@ is class { has Int:D $.a = 42 }.new.a, 42, 'can Int:D take an Int:D';
9195
is class { has Int:_ $.a = Int }.new.a, Int, 'with :D, can Int:_ take an Int:U';
9296
is class { has Int:_ $.a = 42 }.new.a, 42, 'with :D, can Int:_ take an Int:D';
9397

98+
#?rakudo.jvm todo "got '?.?' RT #128031"
9499
is class { has Int:U $.a }.new.a, Int:U, 'with :D, can Int:U be on its own';
95100
is class { has Int:U $.a = Int }.new.a, Int, 'with :D, can Int:U take an Int:U';
96101
throws-like { class { has Int:U $.a = 42 }.new },

0 commit comments

Comments
 (0)