Fix engine_sort_test compile error.
PiperOrigin-RevId: 660975517 Change-Id: I6e3d1b041fe60b1ec202391903eff340f787b46d
This commit is contained in:
committed by
Copybara-Service
parent
ebf887e14d
commit
35a834f0ba
@@ -63,7 +63,7 @@ TEST_F(EngineSortTest, Sort) {
|
|||||||
EXPECT_EQ(x[2], 3);
|
EXPECT_EQ(x[2], 3);
|
||||||
|
|
||||||
// test custom struct with mjQUICKSORT
|
// test custom struct with mjQUICKSORT
|
||||||
std::vector<IntStruct> y = {{.value = 1}, {.value = 3}, {.value = 2}};
|
std::vector<IntStruct> y = {{1}, {3}, {2}};
|
||||||
mjQUICKSORT(y.data(), y.size(), sizeof(IntStruct), intstruct_compare, NULL);
|
mjQUICKSORT(y.data(), y.size(), sizeof(IntStruct), intstruct_compare, NULL);
|
||||||
EXPECT_EQ(y[0].value, 1);
|
EXPECT_EQ(y[0].value, 1);
|
||||||
EXPECT_EQ(y[1].value, 2);
|
EXPECT_EQ(y[1].value, 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user