mirror of https://github.com/daffainfo/nuclei.git
test: additional use-cases for the expression test
parent
286e27510d
commit
8019fb8f08
|
@ -18,8 +18,12 @@ func TestEvaluate(t *testing.T) {
|
|||
//{input: "{{hex_encode('{{')}}", expected: "7b7b", extra: map[string]interface{}{}},
|
||||
//{input: `{{concat("{{", 123, "*", 123, "}}")}}`, expected: "{{123*123}}", extra: map[string]interface{}{}},
|
||||
//{input: `{{concat("{{", "123*123", "}}")}}`, expected: "{{123*123}}", extra: map[string]interface{}{}},
|
||||
//{input: `{{"{{" + '123*123' + "}}"}}`, expected: "{{123*123}}", extra: map[string]interface{}{}},
|
||||
{input: `{{concat(123,'*',123)}}`, expected: "123*123", extra: map[string]interface{}{}},
|
||||
{input: `{{1+1}}`, expected: "2", extra: map[string]interface{}{}},
|
||||
{input: `{{"1"+"1"}}`, expected: "11", extra: map[string]interface{}{}},
|
||||
{input: `{{"1" + '*' + "1"}}`, expected: "1*1", extra: map[string]interface{}{}},
|
||||
{input: `{{"a" + 'b' + "c"}}`, expected: "abc", extra: map[string]interface{}{}},
|
||||
{input: `{{10*2}}`, expected: "20", extra: map[string]interface{}{}},
|
||||
{input: `{{10/2}}`, expected: "5", extra: map[string]interface{}{}},
|
||||
{input: `{{10-2}}`, expected: "8", extra: map[string]interface{}{}},
|
||||
|
|
Loading…
Reference in New Issue