about summary refs log tree commit diff stats
path: root/html/003trace.test.cc.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-07-01 10:19:04 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-07-01 10:19:04 -0700
commit62a52ffbfe2880fe754732ca3417eab96ff83738 (patch)
tree0aa59103af2256769a0792a6378babd6cad0eba0 /html/003trace.test.cc.html
parent7ed2441bb547fb799bdd553e4f89c48fee7b60db (diff)
downloadmu-62a52ffbfe2880fe754732ca3417eab96ff83738.tar.gz
1690
Diffstat (limited to 'html/003trace.test.cc.html')
-rw-r--r--html/003trace.test.cc.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/html/003trace.test.cc.html b/html/003trace.test.cc.html
index 91391d7b..f8de30f2 100644
--- a/html/003trace.test.cc.html
+++ b/html/003trace.test.cc.html
@@ -81,6 +81,11 @@ void test_trace_supports_count2<span class="Delimiter">()</span> <span class="De
   CHECK_EQ<span class="Delimiter">(</span>trace_count<span class="Delimiter">(</span><span class="Constant">&quot;test layer 1&quot;</span><span class="Delimiter">),</span> <span class="Constant">2</span><span class="Delimiter">);</span>
 <span class="Delimiter">}</span>
 
+void test_trace_count_ignores_trailing_whitespace<span class="Delimiter">()</span> <span class="Delimiter">{</span>
+  trace<span class="Delimiter">(</span><span class="Constant">&quot;test layer 1&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;foo</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span><span class="Delimiter">;</span>
+  CHECK<span class="Delimiter">(</span>trace_count<span class="Delimiter">(</span><span class="Constant">&quot;test layer 1&quot;</span><span class="Delimiter">,</span> <span class="Constant">&quot;foo&quot;</span><span class="Delimiter">)</span> == <span class="Constant">1</span><span class="Delimiter">);</span>
+<span class="Delimiter">}</span>
+
 <span class="Comment">// pending: DUMP tests</span>
 <span class="Comment">// pending: readable_contents() adds newline if necessary.</span>
 <span class="Comment">// pending: raise also prints to stderr.</span>