@@ -2391,7 +2391,7 @@ func Test_newPath(t *testing.T) {
2391
2391
assert .Equal (t , "string" , p .Name ())
2392
2392
assert .Equal (t , "body.string[key]" , p .String ())
2393
2393
assert .Nil (t , p .Next ())
2394
- assert .Equal (t , 1 , len ( p .Keys ()) )
2394
+ assert .Len (t , p .Keys (), 1 )
2395
2395
v , err := p .Keys ()[0 ].String (context .Background (), struct {}{})
2396
2396
assert .NoError (t , err )
2397
2397
assert .Equal (t , "key" , * v )
@@ -2492,7 +2492,7 @@ func Test_newPath_WithPathContextNames(t *testing.T) {
2492
2492
assert .Equal (t , tt .pathContext , p .Context ())
2493
2493
}
2494
2494
assert .Nil (t , p .Next ())
2495
- assert .Equal (t , 1 , len ( p .Keys ()) )
2495
+ assert .Len (t , p .Keys (), 1 )
2496
2496
v , err := p .Keys ()[0 ].String (context .Background (), struct {}{})
2497
2497
assert .NoError (t , err )
2498
2498
assert .Equal (t , "key" , * v )
@@ -2534,7 +2534,7 @@ func Test_newKey(t *testing.T) {
2534
2534
}
2535
2535
ks := newKeys [any ](keys )
2536
2536
2537
- assert .Equal (t , 2 , len ( ks ) )
2537
+ assert .Len (t , ks , 2 )
2538
2538
2539
2539
s , err := ks [0 ].String (context .Background (), nil )
2540
2540
assert .NoError (t , err )
0 commit comments