diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-07-27 16:01:55 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-07-27 17:47:59 -0700 |
commit | 6e1eeeebfb453fa7c871869c19375ce60fbd7413 (patch) | |
tree | 539c4a3fdf1756ae79770d5c4aaf6366f1d1525e /003trace.test.cc | |
parent | 8846a7f85cc04b77b2fe8a67b6d317723437b00c (diff) | |
download | mu-6e1eeeebfb453fa7c871869c19375ce60fbd7413.tar.gz |
5485 - promote SubX to top-level
Diffstat (limited to '003trace.test.cc')
-rw-r--r-- | 003trace.test.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/003trace.test.cc b/003trace.test.cc index 30f61b5a..bec1b789 100644 --- a/003trace.test.cc +++ b/003trace.test.cc @@ -64,10 +64,17 @@ void test_trace_count_ignores_trailing_whitespace() { CHECK_EQ(trace_count("test layer 1", "foo"), 1); } +void test_trace_unescapes_newlines() { + trace("test layer 1") << "f\no\no\n" << end(); + CHECK_TRACE_CONTENTS("test layer 1: f\\no\\no"); +} + // pending: DUMP tests // pending: readable_contents() adds newline if necessary. // pending: raise also prints to stderr. // pending: raise doesn't print to stderr if Hide_errors is set. +// pending: warn doesn't print to stderr if Hide_errors is set. +// pending: warn doesn't print to stderr if Hide_warnings is set. // pending: raise doesn't have to be saved if Hide_errors is set, just printed. // pending: raise prints to stderr if Trace_stream is NULL. // pending: raise prints to stderr if Trace_stream is NULL even if Hide_errors is set. |