Taylor Blau <me@xxxxxxxxxxxx> writes: > +assert_jumps () { > + local nr="$1" > + local trace="$2" > + > + grep -q "name:jumps_made value:$nr" $trace > +} You may expect 1 hit and the test will pass if trace had 10 or 12 hits.
Taylor Blau <me@xxxxxxxxxxxx> writes: > +assert_jumps () { > + local nr="$1" > + local trace="$2" > + > + grep -q "name:jumps_made value:$nr" $trace > +} You may expect 1 hit and the test will pass if trace had 10 or 12 hits.