Skip to content

Commit

Permalink
Trade: accidentally didn't test MeshData::mutableAttribute<T[]>().
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Nov 19, 2022
1 parent 46e6d61 commit a496029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Magnum/Trade/Test/MeshDataTest.cpp
Expand Up @@ -1471,8 +1471,8 @@ void MeshDataTest::construct() {
CORRADE_COMPARE(data.mutableAttribute<Vector2>(MeshAttribute::TextureCoordinates, 0)[0], (Vector2{0.000f, 0.125f}));
CORRADE_COMPARE(data.mutableAttribute<Vector2>(MeshAttribute::TextureCoordinates, 1)[1], (Vector2{0.250f, 0.375f}));
/* Array */
CORRADE_COMPARE(data.attribute<Short[]>(meshAttributeCustom(13))[2][0], 22);
CORRADE_COMPARE(data.attribute<Short[]>(meshAttributeCustom(13))[2][1], -1);
CORRADE_COMPARE(data.mutableAttribute<Short[]>(meshAttributeCustom(13))[2][0], 22);
CORRADE_COMPARE(data.mutableAttribute<Short[]>(meshAttributeCustom(13))[2][1], -1);
}
}

Expand Down

0 comments on commit a496029

Please sign in to comment.