2020-08-29 11:41:33 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestCLIVersion(t *testing.T) {
|
|
|
|
e := newExecutor(t, false)
|
|
|
|
e.Run(t, "neo-go", "--version")
|
2022-07-27 13:28:40 +00:00
|
|
|
e.checkNextLine(t, "^NeoGo")
|
|
|
|
e.checkNextLine(t, "^Version:")
|
|
|
|
e.checkNextLine(t, "^GoVersion:")
|
2020-08-29 11:41:33 +00:00
|
|
|
e.checkEOF(t)
|
|
|
|
}
|