@@ -28,10 +28,10 @@ const testFixtures = fixtures.path('test-runner');
2828 assert . strictEqual ( child . signal , null ) ;
2929 assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
3030 const stdout = child . stdout . toString ( ) ;
31- assert . match ( stdout , / o k 1 - t h i s s h o u l d p a s s / ) ;
32- assert . match ( stdout , / n o t o k 2 - t h i s s h o u l d f a i l / ) ;
33- assert . match ( stdout , / o k 3 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / ) ;
34- assert . match ( stdout , / o k 4 - t h i s s h o u l d p a s s / ) ;
31+ assert . match ( stdout , / o k \d + - t h i s s h o u l d p a s s / ) ;
32+ assert . match ( stdout , / n o t o k \d + - t h i s s h o u l d f a i l / ) ;
33+ assert . match ( stdout , / o k \d + - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / ) ;
34+ assert . match ( stdout , / o k \d + - t h i s s h o u l d p a s s / ) ;
3535}
3636
3737{
@@ -40,10 +40,10 @@ const testFixtures = fixtures.path('test-runner');
4040 const child = spawnSync ( process . execPath , args ) ;
4141
4242 const stdout = child . stdout . toString ( ) ;
43- assert . match ( stdout , / o k 1 - t h i s s h o u l d p a s s / ) ;
44- assert . match ( stdout , / n o t o k 2 - t h i s s h o u l d f a i l / ) ;
45- assert . match ( stdout , / o k 3 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / ) ;
46- assert . match ( stdout , / o k 4 - t h i s s h o u l d p a s s / ) ;
43+ assert . match ( stdout , / o k \d + - t h i s s h o u l d p a s s / ) ;
44+ assert . match ( stdout , / n o t o k \d + - t h i s s h o u l d f a i l / ) ;
45+ assert . match ( stdout , / o k \d + - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / ) ;
46+ assert . match ( stdout , / o k \d + - t h i s s h o u l d p a s s / ) ;
4747 assert . strictEqual ( child . status , 1 ) ;
4848 assert . strictEqual ( child . signal , null ) ;
4949 assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
@@ -58,11 +58,11 @@ const testFixtures = fixtures.path('test-runner');
5858 assert . strictEqual ( child . signal , null ) ;
5959 assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
6060 const stdout = child . stdout . toString ( ) ;
61- assert . match ( stdout , / n o t o k 1 - .+ i n d e x \. j s / ) ;
62- assert . match ( stdout , / o k 2 - t h i s s h o u l d p a s s / ) ;
63- assert . match ( stdout , / n o t o k 3 - t h i s s h o u l d f a i l / ) ;
64- assert . match ( stdout , / o k 4 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / ) ;
65- assert . match ( stdout , / o k 5 - t h i s s h o u l d p a s s / ) ;
61+ assert . match ( stdout , / n o t o k \d + - .+ i n d e x \. j s / ) ;
62+ assert . match ( stdout , / o k \d + - t h i s s h o u l d p a s s / ) ;
63+ assert . match ( stdout , / n o t o k \d + - t h i s s h o u l d f a i l / ) ;
64+ assert . match ( stdout , / o k \d + - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / ) ;
65+ assert . match ( stdout , / o k \d + - t h i s s h o u l d p a s s / ) ;
6666}
6767
6868{
@@ -87,10 +87,10 @@ const testFixtures = fixtures.path('test-runner');
8787 assert . strictEqual ( child . signal , null ) ;
8888 assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
8989 const stdout = child . stdout . toString ( ) ;
90- assert . match ( stdout , / o k 1 - t h i s s h o u l d p a s s / ) ;
91- assert . match ( stdout , / n o t o k 2 - t h i s s h o u l d f a i l / ) ;
92- assert . match ( stdout , / o k 3 - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / ) ;
93- assert . match ( stdout , / o k 4 - t h i s s h o u l d p a s s / ) ;
90+ assert . match ( stdout , / o k \d + - t h i s s h o u l d p a s s / ) ;
91+ assert . match ( stdout , / n o t o k \d + - t h i s s h o u l d f a i l / ) ;
92+ assert . match ( stdout , / o k \d + - .+ s u b d i r .+ s u b d i r _ t e s t \. j s / ) ;
93+ assert . match ( stdout , / o k \d + - t h i s s h o u l d p a s s / ) ;
9494}
9595
9696{
@@ -129,14 +129,14 @@ const testFixtures = fixtures.path('test-runner');
129129 assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
130130 const stdout = child . stdout . toString ( ) ;
131131 assert . match ( stdout , / # S u b t e s t : t h i s s h o u l d p a s s / ) ;
132- assert . match ( stdout , / o k 1 - t h i s s h o u l d p a s s / ) ;
132+ assert . match ( stdout , / o k \d + - t h i s s h o u l d p a s s / ) ;
133133 assert . match ( stdout , / { 2 } - - - / ) ;
134134 assert . match ( stdout , / { 2 } d u r a t i o n _ m s : .* / ) ;
135135 assert . match ( stdout , / { 2 } \. \. \. / ) ;
136136
137137 assert . match ( stdout , / # S u b t e s t : .+ i n v a l i d - t a p \. j s / ) ;
138138 assert . match ( stdout , / # i n v a l i d t a p o u t p u t / ) ;
139- assert . match ( stdout , / o k 2 - .+ i n v a l i d - t a p \. j s / ) ;
139+ assert . match ( stdout , / o k \d + - .+ i n v a l i d - t a p \. j s / ) ;
140140
141141 assert . match ( stdout , / # S u b t e s t : l e v e l 0 a / ) ;
142142 assert . match ( stdout , / { 4 } # S u b t e s t : l e v e l 1 a / ) ;
@@ -177,11 +177,11 @@ const testFixtures = fixtures.path('test-runner');
177177 assert . match ( stdout , / # s t d e r r 2 / ) ;
178178 assert . match ( stdout , / # s t d o u t 3 / ) ;
179179 assert . match ( stdout , / # s t d e r r 6 / ) ;
180- assert . match ( stdout , / # n o t o k 1 - f a k e t e s t / ) ;
180+ assert . match ( stdout , / # n o t o k \d + - f a k e t e s t / ) ;
181181 assert . match ( stdout , / # s t d e r r 5 / ) ;
182182 assert . match ( stdout , / # s t d o u t 4 / ) ;
183183 assert . match ( stdout , / # S u b t e s t : a t e s t / ) ;
184- assert . match ( stdout , / o k 1 - a t e s t / ) ;
184+ assert . match ( stdout , / o k \d + - a t e s t / ) ;
185185 assert . match ( stdout , / # t e s t s 1 / ) ;
186186 assert . match ( stdout , / # p a s s 1 / ) ;
187187}
0 commit comments