@@ -265,7 +265,7 @@ func TestFormatUUID3(t *testing.T) {
265265 var uuidZero UUID3
266266 err := uuidZero .UnmarshalJSON ([]byte (jsonNull ))
267267 require .NoError (t , err )
268- assert .EqualValues (t , UUID3 ("" ), uuidZero )
268+ assert .Equal (t , UUID3 ("" ), uuidZero )
269269}
270270
271271func TestFormatUUID4 (t * testing.T ) {
@@ -296,7 +296,7 @@ func TestFormatUUID4(t *testing.T) {
296296 var uuidZero UUID4
297297 err := uuidZero .UnmarshalJSON ([]byte (jsonNull ))
298298 require .NoError (t , err )
299- assert .EqualValues (t , UUID4 ("" ), uuidZero )
299+ assert .Equal (t , UUID4 ("" ), uuidZero )
300300}
301301
302302func TestFormatUUID5 (t * testing.T ) {
@@ -327,7 +327,7 @@ func TestFormatUUID5(t *testing.T) {
327327 var uuidZero UUID5
328328 err := uuidZero .UnmarshalJSON ([]byte (jsonNull ))
329329 require .NoError (t , err )
330- assert .EqualValues (t , UUID5 ("" ), uuidZero )
330+ assert .Equal (t , UUID5 ("" ), uuidZero )
331331}
332332
333333func TestFormatUUID (t * testing.T ) {
@@ -365,7 +365,7 @@ func TestFormatUUID(t *testing.T) {
365365 var uuidZero UUID
366366 err := uuidZero .UnmarshalJSON ([]byte (jsonNull ))
367367 require .NoError (t , err )
368- assert .EqualValues (t , UUID ("" ), uuidZero )
368+ assert .Equal (t , UUID ("" ), uuidZero )
369369}
370370
371371func TestFormatISBN (t * testing.T ) {
@@ -425,7 +425,7 @@ func TestFormatBase64(t *testing.T) {
425425 var subj Base64
426426 err := subj .UnmarshalText ([]byte (str ))
427427 require .NoError (t , err )
428- assert .EqualValues (t , expected , subj )
428+ assert .Equal (t , expected , subj )
429429
430430 b , err = subj .MarshalText ()
431431 require .NoError (t , err )
@@ -434,7 +434,7 @@ func TestFormatBase64(t *testing.T) {
434434 var subj2 Base64
435435 err = subj2 .UnmarshalJSON (bj )
436436 require .NoError (t , err )
437- assert .EqualValues (t , expected , subj2 )
437+ assert .Equal (t , expected , subj2 )
438438
439439 b , err = subj2 .MarshalJSON ()
440440 require .NoError (t , err )
@@ -456,18 +456,18 @@ func TestFormatBase64(t *testing.T) {
456456 require .NoError (t , err )
457457 sqlvalueAsString , ok := sqlvalue .(string )
458458 if assert .Truef (t , ok , "[%s]Value: expected driver value to be a string" , "byte" ) {
459- assert .EqualValuesf (t , str , sqlvalueAsString , "[%s]Value: expected %v and %v to be equal" , "byte" , sqlvalue , str )
459+ assert .Equal (t , str , sqlvalueAsString , "[%s]Value: expected %v and %v to be equal" , "byte" , sqlvalue , str )
460460 }
461461 // Scanner interface
462462 var subj3 Base64
463463 err = subj3 .Scan ([]byte (str ))
464464 require .NoError (t , err )
465- assert .EqualValues (t , str , subj3 .String ())
465+ assert .Equal (t , str , subj3 .String ())
466466
467467 var subj4 Base64
468468 err = subj4 .Scan (str )
469469 require .NoError (t , err )
470- assert .EqualValues (t , str , subj4 .String ())
470+ assert .Equal (t , str , subj4 .String ())
471471
472472 err = subj4 .Scan (123 )
473473 require .Error (t , err )
@@ -511,7 +511,7 @@ func testStringFormat(t *testing.T, what testableFormat, format, with string, va
511511 require .NoError (t , err )
512512 val = reflect .Indirect (reflect .ValueOf (what ))
513513 strVal = val .String ()
514- assert .EqualValuesf (t , with , strVal , "[%s]UnmarshalJSON: expected %v and %v to be value equal" , format , strVal , with )
514+ assert .Equal (t , with , strVal , "[%s]UnmarshalJSON: expected %v and %v to be value equal" , format , strVal , with )
515515
516516 b , err = what .MarshalJSON ()
517517 require .NoError (t , err )
@@ -527,21 +527,21 @@ func testStringFormat(t *testing.T, what testableFormat, format, with string, va
527527 require .NoError (t , err )
528528 val = reflect .Indirect (reflect .ValueOf (what ))
529529 strVal = val .String ()
530- assert .EqualValuesf (t , with , strVal , "[%s]bson.Unmarshal: expected %v and %v to be equal (reset value) " , format , what , with )
530+ assert .Equal (t , with , strVal , "[%s]bson.Unmarshal: expected %v and %v to be equal (reset value) " , format , what , with )
531531
532532 // Scanner interface
533533 resetValue (t , format , what )
534534 err = what .Scan (with )
535535 require .NoError (t , err )
536536 val = reflect .Indirect (reflect .ValueOf (what ))
537537 strVal = val .String ()
538- assert .EqualValuesf (t , with , strVal , "[%s]Scan: expected %v and %v to be value equal" , format , strVal , with )
538+ assert .Equal (t , with , strVal , "[%s]Scan: expected %v and %v to be value equal" , format , strVal , with )
539539
540540 err = what .Scan ([]byte (with ))
541541 require .NoError (t , err )
542542 val = reflect .Indirect (reflect .ValueOf (what ))
543543 strVal = val .String ()
544- assert .EqualValuesf (t , with , strVal , "[%s]Scan: expected %v and %v to be value equal" , format , strVal , with )
544+ assert .Equal (t , with , strVal , "[%s]Scan: expected %v and %v to be value equal" , format , strVal , with )
545545
546546 err = what .Scan (123 )
547547 require .Error (t , err )
@@ -551,7 +551,7 @@ func testStringFormat(t *testing.T, what testableFormat, format, with string, va
551551 require .NoError (t , err )
552552 sqlvalueAsString , ok := sqlvalue .(string )
553553 if assert .Truef (t , ok , "[%s]Value: expected driver value to be a string" , format ) {
554- assert .EqualValuesf (t , with , sqlvalueAsString , "[%s]Value: expected %v and %v to be equal" , format , sqlvalue , with )
554+ assert .Equal (t , with , sqlvalueAsString , "[%s]Value: expected %v and %v to be equal" , format , sqlvalue , with )
555555 }
556556
557557 // validation with Registry
0 commit comments