mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-12 21:10:36 +00:00
1fb66d6b73
GolangCI complained: testArray is unused (from deadcode) But this function was actually wrong being a copy-paste of testMakeStackMap(), it also didn't conform to testMake... naming scheme, so this fixes it. To make thing more uniform NewArray() was also changed to return error, map_test.go code adjusted to this changes and finally array_test.go was added as a stub for future Array testing.
16 lines
329 B
Go
16 lines
329 B
Go
package stack
|
|
|
|
import (
|
|
"testing"
|
|
|
|
// it's a stub at the moment, but will need it anyway
|
|
// "github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestArray(t *testing.T) {
|
|
var a Item = testMakeStackInt(t, 3)
|
|
var b Item = testMakeStackInt(t, 6)
|
|
var c Item = testMakeStackInt(t, 9)
|
|
var ta = testMakeArray(t, []Item{a, b, c})
|
|
_ = ta
|
|
}
|