mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 23:33:37 +00:00
19 lines
447 B
Go
19 lines
447 B
Go
|
package app_test
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/nspcc-dev/neo-go/internal/testcli"
|
||
|
"github.com/nspcc-dev/neo-go/pkg/config"
|
||
|
)
|
||
|
|
||
|
func TestCLIVersion(t *testing.T) {
|
||
|
config.Version = "0.90.0-test" // Zero-length version string disables '--version' completely.
|
||
|
e := testcli.NewExecutor(t, false)
|
||
|
e.Run(t, "neo-go", "--version")
|
||
|
e.CheckNextLine(t, "^NeoGo")
|
||
|
e.CheckNextLine(t, "^Version:")
|
||
|
e.CheckNextLine(t, "^GoVersion:")
|
||
|
e.CheckEOF(t)
|
||
|
}
|