From 6336aa5abac4dfd3ab5e4c3c36f48ff374ef264b Mon Sep 17 00:00:00 2001 From: a3d4 Date: Sat, 29 Aug 2020 21:57:37 +0200 Subject: [PATCH] Fix test expectation update --- test/libsolidity/util/TestFunctionCall.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/libsolidity/util/TestFunctionCall.cpp b/test/libsolidity/util/TestFunctionCall.cpp index f961c615c..b614d17b9 100644 --- a/test/libsolidity/util/TestFunctionCall.cpp +++ b/test/libsolidity/util/TestFunctionCall.cpp @@ -300,7 +300,8 @@ string TestFunctionCall::formatRawParameters( { if (param.format.newline) os << endl << _linePrefix << "// "; - os << param.rawString; + for (auto const c: param.rawString) + os << (c >= ' ' ? string(1, c) : "\\x" + toHex(static_cast(c))); if (¶m != &_params.back()) os << ", "; }