mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-08 17:22:05 +02:00
input: add exhaustive unit tests for new taproot scripts
This commit is contained in:
@@ -52,7 +52,7 @@ func assertEngineExecution(t *testing.T, testNum int, valid bool,
|
||||
if err != nil {
|
||||
t.Fatalf("stepping (%v)\n", err)
|
||||
}
|
||||
debugBuf.WriteString(fmt.Sprintf("stepping %v\n", dis))
|
||||
debugBuf.WriteString(fmt.Sprintf("Stepping %v\n", dis))
|
||||
|
||||
done, err = vm.Step()
|
||||
if err != nil && valid {
|
||||
@@ -65,8 +65,11 @@ func assertEngineExecution(t *testing.T, testNum int, valid bool,
|
||||
"should be invalid: %v", testNum, err)
|
||||
}
|
||||
|
||||
debugBuf.WriteString(fmt.Sprintf("Stack: %v", vm.GetStack()))
|
||||
debugBuf.WriteString(fmt.Sprintf("AltStack: %v", vm.GetAltStack()))
|
||||
debugBuf.WriteString(fmt.Sprintf("Stack: %v\n",
|
||||
vm.GetStack()))
|
||||
debugBuf.WriteString(fmt.Sprintf("AltStack: %v\n",
|
||||
vm.GetAltStack()))
|
||||
debugBuf.WriteString("-----\n")
|
||||
}
|
||||
|
||||
// If we get to this point the unexpected case was not reached
|
||||
|
Reference in New Issue
Block a user