diff --git a/src/ast/builtin_decoration_test.cc b/src/ast/builtin_decoration_test.cc index 288674e26b..266edc1aa1 100644 --- a/src/ast/builtin_decoration_test.cc +++ b/src/ast/builtin_decoration_test.cc @@ -34,5 +34,13 @@ TEST_F(BuiltinDecorationTest, Is) { EXPECT_FALSE(d.IsSet()); } +TEST_F(BuiltinDecorationTest, ToStr) { + BuiltinDecoration d{Builtin::kFragDepth}; + std::ostringstream out; + d.to_str(out); + EXPECT_EQ(out.str(), R"(BuiltinDecoration{frag_depth} +)"); +} + } // namespace ast } // namespace tint