提交 91fdc520 编写于 作者: A aarzilli 提交者: Derek Parker

proc_test: clean some repeated patterns in proc_test

上级 0b41a525
此差异已折叠。
......@@ -30,8 +30,7 @@ func TestScopeWithEscapedVariable(t *testing.T) {
// isn't shadowed is a variable that escapes to the heap and figures in
// debug_info as '&a'. Evaluating 'a' should yield the escaped variable.
avar, err := evalVariable(p, "a")
assertNoError(err, t, "EvalVariable(a)")
avar := evalVariable(p, t, "a")
if aval, _ := constant.Int64Val(avar.Value); aval != 3 {
t.Errorf("wrong value for variable a: %d", aval)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册