@@ -11,9 +11,9 @@ import (
1111func TestDirCallSuccess (t * testing.T ) {
1212 transpileBatchFunc (t , func (dir string ) (string , error ) {
1313 return `
14- ` + fmt .Sprintf (`var a , code = @dir("/B", "%s")` , strings .ReplaceAll (dir , `\` , `\\` )) + `
14+ ` + fmt .Sprintf (`var stdout, stderr , code = @dir("/B", "%s")` , strings .ReplaceAll (dir , `\` , `\\` )) + `
1515
16- print(a , code)
16+ print(stdout , code)
1717 ` , nil
1818 }, func (output string , err error ) {
1919 require .Nil (t , err )
@@ -24,9 +24,9 @@ func TestDirCallSuccess(t *testing.T) {
2424func TestDirCallPipeToFindstrCallSuccess (t * testing.T ) {
2525 transpileBatchFunc (t , func (dir string ) (string , error ) {
2626 return `
27- ` + fmt .Sprintf (`var a , code = @dir("/B", "%s") | @findstr(".tsh")` , strings .ReplaceAll (dir , `\` , `\\` )) + `
27+ ` + fmt .Sprintf (`var stdout, stderr , code = @dir("/B", "%s") | @findstr(".tsh")` , strings .ReplaceAll (dir , `\` , `\\` )) + `
2828
29- print(a , code)
29+ print(stdout , code)
3030 ` , nil
3131 }, func (output string , err error ) {
3232 require .Nil (t , err )
@@ -37,7 +37,7 @@ func TestDirCallPipeToFindstrCallSuccess(t *testing.T) {
3737func TestDirCallFail (t * testing.T ) {
3838 transpileBatchFunc (t , func (dir string ) (string , error ) {
3939 return `
40- var a , code = @dir("/B", "not-present-dir")
40+ var stdout, stderr , code = @dir("/B", "not-present-dir")
4141
4242 print(code)
4343 ` , nil
0 commit comments