Remove duplicate stack tests.

This commit is contained in:
Kefkius 2016-02-09 11:41:06 -05:00 committed by Dave Collins
parent b7f030192e
commit d759d1d3df

View file

@ -77,22 +77,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}},
@ -441,20 +425,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,
@ -549,24 +519,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}},