Added File operators

This commit is contained in:
Mike Farah
2020-11-20 23:08:12 +11:00
parent d38caf6bc2
commit e451119014
4 changed files with 8 additions and 10 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import (
var fileOperatorScenarios = []expressionScenario{
{
description: "Get filename",
document: `{}`,
document: `{a: cat}`,
expression: `filename`,
expected: []string{
"D0, P[], (!!str)::sample.yml\n",
@@ -15,7 +15,7 @@ var fileOperatorScenarios = []expressionScenario{
},
{
description: "Get file index",
document: `{}`,
document: `{a: cat}`,
expression: `fileIndex`,
expected: []string{
"D0, P[], (!!int)::0\n",