Skip to content

Commit

Permalink
Remove duplicate stack tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kefkius committed Feb 9, 2016
1 parent acf973c commit 4d5ee10
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions txscript/stack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,6 @@ func TestStack(t *testing.T) {
nil,
[][]byte{{1}, {2}, {3}, {4}},
},
{
"pop",
[][]byte{{1}, {2}, {3}, {4}, {5}},
func(s *stack) error {
val, err := s.PopByteArray()
if err != nil {
return err
}
if !bytes.Equal(val, []byte{5}) {
return errors.New("not equal")
}
return err
},
nil,
[][]byte{{1}, {2}, {3}, {4}},
},
{
"pop everything",
[][]byte{{1}, {2}, {3}, {4}, {5}},
Expand Down Expand Up @@ -442,20 +426,6 @@ func TestStack(t *testing.T) {
ErrStackUnderflow,
nil,
},
{
"dup-1",
[][]byte{{1}},
func(s *stack) error {
err := s.DupN(-1)
if err != nil {
return err
}

return nil
},
ErrStackInvalidArgs,
nil,
},
{
"PushBool true",
nil,
Expand Down Expand Up @@ -550,24 +520,6 @@ func TestStack(t *testing.T) {
nil,
nil,
},
{
"PushInt PopBool 2",
nil,
func(s *stack) error {
s.PushInt(scriptNum(0))
val, err := s.PopBool()
if err != nil {
return err
}
if val != false {
return errors.New("unexpected value")
}

return nil
},
nil,
nil,
},
{
"Nip top",
[][]byte{{1}, {2}, {3}},
Expand Down

0 comments on commit 4d5ee10

Please sign in to comment.