@@ -5677,7 +5677,7 @@ func TestUnmarshalDupMapKeyToStructKeyAsInt(t *testing.T) {
56775677
56785678 // Duplicate key triggers error.
56795679 wantS = s {A : 2 , B : 4 }
5680- wantErrorMsg := "cbor: found duplicate map key \" 1 \" at map element index 2"
5680+ wantErrorMsg := "cbor: found duplicate map key 1 at map element index 2"
56815681 dm , _ := DecOptions {DupMapKey : DupMapKeyEnforcedAPF }.DecMode ()
56825682 var s2 s
56835683 if err := dm .Unmarshal (data , & s2 ); err == nil {
@@ -5724,7 +5724,7 @@ func TestStreamDupMapKeyToStructKeyAsInt(t *testing.T) {
57245724
57255725 // Duplicate key triggers error.
57265726 wantS = s {A : 2 , B : 4 }
5727- wantErrorMsg := "cbor: found duplicate map key \" 1 \" at map element index 2"
5727+ wantErrorMsg := "cbor: found duplicate map key 1 at map element index 2"
57285728 dm , _ := DecOptions {DupMapKey : DupMapKeyEnforcedAPF }.DecMode ()
57295729 dec = dm .NewDecoder (bytes .NewReader (b ))
57305730 for i := 0 ; i < 3 ; i ++ {
@@ -5852,7 +5852,7 @@ func TestUnmarshalDupMapKeyToStructKeyAsIntNoMatchingField(t *testing.T) {
58525852
58535853 // Duplicate key triggers error even though map key "a" doesn't have a corresponding struct field.
58545854 wantS = s {B : 4 }
5855- wantErrorMsg := "cbor: found duplicate map key \" 1 \" at map element index 2"
5855+ wantErrorMsg := "cbor: found duplicate map key 1 at map element index 2"
58565856 dm , _ := DecOptions {DupMapKey : DupMapKeyEnforcedAPF }.DecMode ()
58575857 var s2 s
58585858 if err := dm .Unmarshal (data , & s2 ); err == nil {
@@ -5898,7 +5898,7 @@ func TestStreamDupMapKeyToStructKeyAsIntNoMatchingField(t *testing.T) {
58985898
58995899 // Duplicate key triggers error.
59005900 wantS = s {B : 4 }
5901- wantErrorMsg := "cbor: found duplicate map key \" 1 \" at map element index 2"
5901+ wantErrorMsg := "cbor: found duplicate map key 1 at map element index 2"
59025902 dm , _ := DecOptions {DupMapKey : DupMapKeyEnforcedAPF }.DecMode ()
59035903 dec = dm .NewDecoder (bytes .NewReader (b ))
59045904 for i := 0 ; i < 3 ; i ++ {
@@ -5944,7 +5944,7 @@ func TestUnmarshalDupMapKeyToStructWrongType(t *testing.T) {
59445944 }
59455945
59465946 wantS = s {A : "A" , B : "B" , C : "C" }
5947- wantErrorMsg = "cbor: found duplicate map key \" 100000\" at map element index 4"
5947+ wantErrorMsg = "cbor: found duplicate map key 100000 at map element index 4"
59485948 dm , _ := DecOptions {DupMapKey : DupMapKeyEnforcedAPF }.DecMode ()
59495949 var s2 s
59505950 if err := dm .Unmarshal (data , & s2 ); err == nil {
@@ -5997,7 +5997,7 @@ func TestStreamDupMapKeyToStructWrongType(t *testing.T) {
59975997
59985998 // Duplicate key triggers error.
59995999 wantS = s {A : "A" , B : "B" , C : "C" }
6000- wantErrorMsg = "cbor: found duplicate map key \" 100000\" at map element index 4"
6000+ wantErrorMsg = "cbor: found duplicate map key 100000 at map element index 4"
60016001 dm , _ := DecOptions {DupMapKey : DupMapKeyEnforcedAPF }.DecMode ()
60026002 dec = dm .NewDecoder (bytes .NewReader (b ))
60036003 for i := 0 ; i < 3 ; i ++ {
0 commit comments