Correct order of parameters to AssertDeepEquals

The expected/actual were around the wrong way.

Bug: 155628860
Test: m nothing
Merged-In: I98b575b8b85dcbfd2075e77689f0329aa2eadbf0
Change-Id: I98b575b8b85dcbfd2075e77689f0329aa2eadbf0
(cherry picked from commit 1d6c0df597)
This commit is contained in:
Paul Duffin 2020-05-06 12:50:19 +01:00
parent 2572225993
commit 9ec2a79ab2
1 changed files with 9 additions and 6 deletions

View File

@ -283,7 +283,7 @@ func TestCommonValueOptimization(t *testing.T) {
extractor.extractCommonProperties(common, structs)
h := TestHelper{t}
h.AssertDeepEquals("common properties not correct", common,
h.AssertDeepEquals("common properties not correct",
&testPropertiesStruct{
private: "",
Public_Kept: "",
@ -297,9 +297,10 @@ func TestCommonValueOptimization(t *testing.T) {
S_Embedded_Common: "embedded_common",
S_Embedded_Different: "",
},
})
},
common)
h.AssertDeepEquals("updated properties[0] not correct", structs[0],
h.AssertDeepEquals("updated properties[0] not correct",
&testPropertiesStruct{
private: "common",
Public_Kept: "common",
@ -313,9 +314,10 @@ func TestCommonValueOptimization(t *testing.T) {
S_Embedded_Common: "",
S_Embedded_Different: "embedded_upper",
},
})
},
structs[0])
h.AssertDeepEquals("updated properties[1] not correct", structs[1],
h.AssertDeepEquals("updated properties[1] not correct",
&testPropertiesStruct{
private: "common",
Public_Kept: "common",
@ -329,5 +331,6 @@ func TestCommonValueOptimization(t *testing.T) {
S_Embedded_Common: "",
S_Embedded_Different: "embedded_lower",
},
})
},
structs[1])
}