From f22059b3bcbaf9c8736759df080cea1a87a9e1a6 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 20 May 2015 19:51:29 -0700 Subject: 1411 --- 003trace.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '003trace.cc') diff --git a/003trace.cc b/003trace.cc index cdef3c0f..dfcc02a1 100644 --- a/003trace.cc +++ b/003trace.cc @@ -47,8 +47,11 @@ //: right test to debug can be an important skill to pick up. //: //: A final wrinkle is for recursive functions; it's often useful to segment -//: calls of different depth in the trace: -//: +eval/1: => 34 # the topmost call to eval should have logged this line +//: calls of different depth in the trace. Assuming a recursive function emits +//: this line: +//: foo: 34 +//: this checks that the *topmost* call to the function emits it: +//: +foo/1: 34 //: (look at new_trace_frame below) //: //: To build robust tests, trace facts about your domain rather than details of -- cgit 1.4.1-2-gfad0