@@ -9,21 +9,21 @@ function runTest (args, expect) {
99 delete obj . todo
1010
1111 var result = t . _parseTestArgs . apply ( t , args )
12- t . equal ( result [ 0 ] , expect [ 0 ] )
12+ t . match ( result [ 0 ] , expect [ 0 ] )
1313 t . same ( result [ 1 ] , expect [ 1 ] )
1414 t . equal ( result [ 2 ] , expect [ 2 ] )
1515}
1616
1717runTest ( [ 'name' , obj , fn ] , [ 'name' , obj , fn ] )
1818runTest ( [ 'name' , fn ] , [ 'name' , { } , fn ] )
19- runTest ( [ obj , fn ] , [ ' (unnamed test)' , obj , fn ] )
19+ runTest ( [ obj , fn ] , [ / \ (u n n a m e d t e s t \) | f n / , obj , fn ] )
2020runTest ( [ obj , namedFunction ] , [ 'namedFunction' , obj , namedFunction ] )
2121runTest ( [ 'name' , obj ] , [ 'name' , objTodo ] )
2222runTest ( [ 'name' ] , [ 'name' , { todo : true } ] )
23- runTest ( [ obj ] , [ ' (unnamed test)' , objTodo ] )
24- runTest ( [ fn ] , [ ' (unnamed test)' , { } , fn ] )
23+ runTest ( [ obj ] , [ / \ (u n n a m e d t e s t \) | f n / , objTodo ] )
24+ runTest ( [ fn ] , [ / \ (u n n a m e d t e s t \) | f n / , { } , fn ] )
2525runTest ( [ namedFunction ] , [ 'namedFunction' , { } , namedFunction ] )
26- runTest ( [ ] , [ ' (unnamed test)' , { todo : true } ] )
26+ runTest ( [ ] , [ / \ (u n n a m e d t e s t \) | f n / , { todo : true } ] )
2727
2828t . throws ( function ( ) {
2929 runTest ( [ 'name' , obj , 99 ] , [ ] )
0 commit comments