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

     1  package arraytools_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	_ "github.com/lmorg/murex/builtins"
     7  	"github.com/lmorg/murex/test"
     8  )
     9  
    10  /*
    11  	ADDHEADING
    12  */
    13  
    14  func TestAddheadingJsonl(t *testing.T) {
    15  	tests := []test.MurexTest{
    16  		{
    17  			Block:  `tout: jsonl '["Bob", 23, true]' -> addheading name age active`,
    18  			Stdout: "[\"name\",\"age\",\"active\"]\n[\"Bob\",\"23\",\"true\"]\n",
    19  		},
    20  	}
    21  
    22  	test.RunMurexTests(tests, t)
    23  }