github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/builtins/core/io/tmp_test.go (about)

     1  package io_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	_ "github.com/lmorg/murex/builtins/core/open"
     7  	_ "github.com/lmorg/murex/builtins/core/typemgmt"
     8  	"github.com/lmorg/murex/test"
     9  )
    10  
    11  func TestTmp(t *testing.T) {
    12  	tests := []test.MurexTest{
    13  		{
    14  			Block: `
    15  				out: "foobar" -> tmp -> set: MUREX_TEST_tmp_cmd
    16  				open: $MUREX_TEST_tmp_cmd`,
    17  			Stdout: "foobar\n",
    18  		},
    19  	}
    20  
    21  	test.RunMurexTests(tests, t)
    22  }