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

     1  package structs_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	_ "github.com/lmorg/murex/builtins"
     7  	"github.com/lmorg/murex/test"
     8  )
     9  
    10  func TestFor(t *testing.T) {
    11  	tests := []test.MurexTest{
    12  		{
    13  			Block:  `for ( i=1; i<6; i++ ) { echo $i }`,
    14  			Stdout: "1\n2\n3\n4\n5\n",
    15  		},
    16  	}
    17  
    18  	test.RunMurexTests(tests, t)
    19  }