github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/lang/expressions/parse_lambda_test.go (about)

     1  package expressions
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/lmorg/murex/lang/expressions/symbols"
     7  )
     8  
     9  func TestParseLambdaScalar(t *testing.T) {
    10  	tests := expTestsT{
    11  		symbol: symbols.Scalar,
    12  		tests: []expTestT{
    13  			{
    14  				input:    `$foo[{bar}]`,
    15  				expected: `$foo[{bar}]`,
    16  				pos:      -1,
    17  			},
    18  		},
    19  	}
    20  
    21  	testParserSymbol(t, tests)
    22  }
    23  
    24  /*func TestParseLambdaArray(t *testing.T) {
    25  	tests := expTestsT{
    26  		symbol: symbols.Calculated,
    27  		tests: []expTestT{
    28  			{
    29  				input:    `@foo[{bar}]`,
    30  				expected: `@foo[{bar}]`,
    31  				pos:      4,
    32  			},
    33  		},
    34  	}
    35  
    36  	testParserSymbol(t, tests)
    37  }
    38  */