diff options
author | Rebecca Turner <rbt@sent.as> | 2024-03-28 16:26:42 -0700 |
---|---|---|
committer | Rebecca Turner <rbt@sent.as> | 2024-03-29 16:26:29 -0700 |
commit | a5a25894c152848d1a57f97b2ef5542ddf6cdb9d (patch) | |
tree | ea623d3e50f133b6f1d651847eef67e9172a3218 /tests/unit/libutil-support | |
parent | 5a54b0a20c80356de5098694353f506e73fb883f (diff) |
Move `escapeString` to its own file
Change-Id: Ie5c954ec73c46c9d3c679ef99a83a29cc7a08352
Diffstat (limited to 'tests/unit/libutil-support')
-rw-r--r-- | tests/unit/libutil-support/tests/cli-literate-parser.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/libutil-support/tests/cli-literate-parser.cc b/tests/unit/libutil-support/tests/cli-literate-parser.cc index 08ebddebc..4edf434be 100644 --- a/tests/unit/libutil-support/tests/cli-literate-parser.cc +++ b/tests/unit/libutil-support/tests/cli-literate-parser.cc @@ -1,4 +1,5 @@ #include "cli-literate-parser.hh" +#include "escape-string.hh" #include "libexpr/print.hh" #include "escape-char.hh" #include "types.hh" @@ -41,7 +42,7 @@ auto CLILiterateParser::Node::print() const -> std::string s << "Output "; break; } - printLiteralString(s, this->text); + escapeString(s, this->text); return s.str(); } |