Skip to content

Commit

Permalink
Add EnumToValue Test
Browse files Browse the repository at this point in the history
Summary: ^^

Reviewed By: nlutsenko

Differential Revision: D61722531

fbshipit-source-id: d93be0594e4af3f244d4b5d1bceae680e6c9183e
  • Loading branch information
francoiscoulombe authored and facebook-github-bot committed Aug 26, 2024
1 parent 9c2d41c commit 1531679
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/igl/tests/Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,9 @@ TEST(CommonTest, ViewportTest) {
Viewport viewport2;
ASSERT_TRUE(viewport == viewport2);
};

TEST(CommonTest, EnumToValueTest) {
auto val = EnumToValue(BackendType::Vulkan);
ASSERT_EQ(val, 3);
};
} // namespace igl::tests

0 comments on commit 1531679

Please sign in to comment.