Skip to content

Commit

Permalink
Fix OSS test suite run on MacOS
Browse files Browse the repository at this point in the history
Summary: Somehow, on my Mac, show() of a unique_ptr<> behaves different.

Reviewed By: wsanville

Differential Revision: D56038692

fbshipit-source-id: eb650e3664f1e1c4ed7f8518cdc5b15305231f37
  • Loading branch information
Nikolai Tillmann authored and facebook-github-bot committed Apr 11, 2024
1 parent 5ab335a commit 844ee2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/IRAssemblerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -809,14 +809,14 @@ TEST_F(IRAssemblerTest, arrayDataRoundTrip) {
encode_fill_array_data_payload_from_string<uint16_t>(elements);
// SHOW and s-expr will use slightly different format, so that the latter
// will be idiomatic. Just verify the elements are encoded the right way.
EXPECT_STREQ(SHOW(op_data),
EXPECT_STREQ(SHOW(&*op_data),
"fill-array-data-payload { [2 x 2] { 3e7, a } }");
}
{
std::vector<std::string> elements{"3e7", "2", "40000000"};
auto op_data =
encode_fill_array_data_payload_from_string<uint32_t>(elements);
EXPECT_STREQ(SHOW(op_data),
EXPECT_STREQ(SHOW(&*op_data),
"fill-array-data-payload { [3 x 4] { 3e7, 2, 40000000 } }");
}
std::string expr(R"(
Expand Down

0 comments on commit 844ee2a

Please sign in to comment.