diff --git a/src/ast/kill_statement_test.cc b/src/ast/kill_statement_test.cc index 35e1b378f8..63115c7857 100644 --- a/src/ast/kill_statement_test.cc +++ b/src/ast/kill_statement_test.cc @@ -55,4 +55,3 @@ TEST_F(KillStatementTest, ToStr) { } // namespace ast } // namespace tint - diff --git a/src/ast/location_decoration_test.cc b/src/ast/location_decoration_test.cc index 78581939d3..c68253ad0e 100644 --- a/src/ast/location_decoration_test.cc +++ b/src/ast/location_decoration_test.cc @@ -14,6 +14,8 @@ #include "src/ast/location_decoration.h" +#include + #include "gtest/gtest.h" namespace tint { @@ -34,5 +36,13 @@ TEST_F(LocationDecorationTest, Is) { EXPECT_FALSE(d.IsSet()); } +TEST_F(LocationDecorationTest, ToStr) { + LocationDecoration d{2}; + std::ostringstream out; + d.to_str(out); + EXPECT_EQ(out.str(), R"(LocationDecoration{2} +)"); +} + } // namespace ast } // namespace tint