about summary refs log tree commit diff stats
path: root/cpp/002trace.tests
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-12 23:29:34 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-12 23:29:34 -0700
commitd03028a3035fc514a694a89dcec9429625c9217c (patch)
tree3e375c345803e175fe390d0124a0084b834423b7 /cpp/002trace.tests
parent0f996b7ba88f988e961a644bb85e3e3b5afe4a41 (diff)
downloadmu-d03028a3035fc514a694a89dcec9429625c9217c.tar.gz
1057
Diffstat (limited to 'cpp/002trace.tests')
-rw-r--r--cpp/002trace.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/002trace.tests b/cpp/002trace.tests
index 00705346..0acf8807 100644
--- a/cpp/002trace.tests
+++ b/cpp/002trace.tests
@@ -16,6 +16,11 @@ void test_trace_check_ignores_other_lines() {
   CHECK_TRACE_CONTENTS("test layer 1", "foo");
 }
 
+void test_trace_ignores_trailing_whitespace() {
+  trace("test layer 1") << "foo\n";
+  CHECK_TRACE_CONTENTS("test layer 1", "foo");
+}
+
 void test_trace_check_always_finds_empty_lines() {
   CHECK_TRACE_CONTENTS("test layer 1", "");
 }