mirror of
https://codeberg.org/scip/rpnc.git
synced 2025-12-16 20:11:02 +01:00
* added commandline and stdin tests using testscript --------- Co-authored-by: Thomas von Dein <tom@vondein.org>
21 lines
286 B
Go
21 lines
286 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/rogpeppe/go-internal/testscript"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
os.Exit(testscript.RunMain(m, map[string]func() int{
|
|
"testrpn": Main,
|
|
}))
|
|
}
|
|
|
|
func TestRpn(t *testing.T) {
|
|
testscript.Run(t, testscript.Params{
|
|
Dir: "t",
|
|
})
|
|
}
|