Fix engine_sort_test compile error.

PiperOrigin-RevId: 660975517
Change-Id: I6e3d1b041fe60b1ec202391903eff340f787b46d
This commit is contained in:
Erik Frey
2024-08-08 14:10:34 -07:00
committed by Copybara-Service
parent ebf887e14d
commit 35a834f0ba
+1 -1
View File
@@ -63,7 +63,7 @@ TEST_F(EngineSortTest, Sort) {
EXPECT_EQ(x[2], 3);
// 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);
EXPECT_EQ(y[0].value, 1);
EXPECT_EQ(y[1].value, 2);