File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ using namespace testing;
1010struct ValuePrintingTests : LibExprTest
1111{
1212 template <class ... A>
13- void test (Value v, std::string_view expected, A... args)
13+ void test (Value & v, std::string_view expected, A... args)
1414 {
1515 std::stringstream out;
1616 v.print (state, out, args...);
@@ -625,10 +625,11 @@ TEST_F(ValuePrintingTests, ansiColorsAttrsElided)
625625 vThree.mkInt (3 );
626626
627627 builder.insert (state.symbols .create (" three" ), &vThree);
628- vAttrs.mkAttrs (builder.finish ());
628+ Value vAttrs2;
629+ vAttrs2.mkAttrs (builder.finish ());
629630
630631 test (
631- vAttrs ,
632+ vAttrs2 ,
632633 " { one = " ANSI_CYAN " 1" ANSI_NORMAL " ; " ANSI_FAINT " «2 attributes elided»" ANSI_NORMAL " }" ,
633634 PrintOptions{.ansiColors = true , .maxAttrs = 1 });
634635}
You can’t perform that action at this time.
0 commit comments