about summary refs log tree commit diff stats
path: root/003trace.test.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-27 18:06:28 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-27 18:06:28 -0700
commiteba30983f79e27dc3aa02a785423a96dea68d8b1 (patch)
tree2d7755e006730ac11ab38e322b4dd5c4634e30a6 /003trace.test.cc
parent5877ef32469e488e5634fd2374b2ae9638d36642 (diff)
downloadmu-eba30983f79e27dc3aa02a785423a96dea68d8b1.tar.gz
1669 - now it fails in the right place
..when building until layer 41
Diffstat (limited to '003trace.test.cc')
-rw-r--r--003trace.test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/003trace.test.cc b/003trace.test.cc
index 91b495a1..146f9dc2 100644
--- a/003trace.test.cc
+++ b/003trace.test.cc
@@ -51,6 +51,11 @@ void test_trace_supports_count2() {
   CHECK_EQ(trace_count("test layer 1"), 2);
 }
 
+void test_trace_count_ignores_trailing_whitespace() {
+  trace("test layer 1") << "foo\n";
+  CHECK(trace_count("test layer 1", "foo") == 1);
+}
+
 // pending: DUMP tests
 // pending: readable_contents() adds newline if necessary.
 // pending: raise also prints to stderr.