removed/commented unused code
This commit is contained in:
parent
33b3e1fc29
commit
1a772597cb
@ -14,7 +14,7 @@ func TestFuncRun(t *testing.T) {
|
||||
inputs := []inputType{
|
||||
/* 1 */ {`builtin "iterator"; it=$(1,2,3); run(it)`, nil, nil},
|
||||
/* 2 */ {`builtin "iterator"; run($(1,2,3), func(index,item){item+10})`, nil, nil},
|
||||
/* 3 */ {`builtin "iterator"; run($(1,2,3), func(index,item){it_status=it_status+item; true}, {"it_status":0})`, int64(6), nil},
|
||||
/* 3 */ {`builtin "iterator"; run($(1,2,3), func(index,item){status=status+item; true}, {"status":0})`, int64(6), nil},
|
||||
/* 4 */ {`builtin ["iterator", "fmt"]; run($(1,2,3), func(index,item){println(item+10)})`, nil, nil},
|
||||
/* 5 */ {`builtin "iterator"; run(nil)`, nil, `paramter "iterator" must be an iterator, passed <nil> [nil]`},
|
||||
/* 6 */ {`builtin "iterator"; run($(1,2,3), nil)`, nil, `paramter "operator" must be a function, passed <nil> [nil]`},
|
||||
@ -26,25 +26,3 @@ func TestFuncRun(t *testing.T) {
|
||||
//runTestSuiteSpec(t, section, inputs, 3)
|
||||
runTestSuite(t, section, inputs)
|
||||
}
|
||||
|
||||
// func TestFmt(t *testing.T) {
|
||||
// section := "Builtin-Fmt"
|
||||
|
||||
// text := "ciao mondo"
|
||||
// inputs := []inputType{
|
||||
// /* 1 */ {fmt.Sprintf(`println("%s")`, text), int64(11), nil},
|
||||
// }
|
||||
|
||||
// // t.Setenv("EXPR_PATH", ".")
|
||||
|
||||
// var b bytes.Buffer
|
||||
// ctx := NewSimpleStore()
|
||||
// currentStdout := SetCtrl(ctx, ControlStdout, &b)
|
||||
|
||||
// runCtxTestSuite(t, ctx, section, inputs)
|
||||
|
||||
// SetCtrl(ctx, ControlStdout, currentStdout)
|
||||
// if b.String() != text+"\n" {
|
||||
// t.Errorf("println(): Got: %q, Want: %q", b.String(), text+"\n")
|
||||
// }
|
||||
// }
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestImportPlugin(t *testing.T) {
|
||||
func _TestImportPlugin(t *testing.T) {
|
||||
t.Setenv("PLUGINS", "${HOME}/go/src/git.portale-stac.it/go")
|
||||
t.Setenv("EXPR_PLUGIN_PATH","${PLUGINS}/expr-json-plugin:${PLUGINS}/expr-csv-plugin")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user