From 39c5fa1e0aeb0fdb762a898110e66ea3dbd7594c Mon Sep 17 00:00:00 2001 From: Patrick Steele-Idem Date: Mon, 4 Jan 2016 10:44:42 -0700 Subject: [PATCH] Added parseExpression test for literals --- .../parseExpression/autotest/literal-number/expected.json | 4 ++++ .../parseExpression/autotest/literal-number/input.txt | 1 + .../parseExpression/autotest/literal-string/expected.json | 4 ++++ .../parseExpression/autotest/literal-string/input.txt | 1 + 4 files changed, 10 insertions(+) create mode 100644 test/fixtures/parseExpression/autotest/literal-number/expected.json create mode 100644 test/fixtures/parseExpression/autotest/literal-number/input.txt create mode 100644 test/fixtures/parseExpression/autotest/literal-string/expected.json create mode 100644 test/fixtures/parseExpression/autotest/literal-string/input.txt diff --git a/test/fixtures/parseExpression/autotest/literal-number/expected.json b/test/fixtures/parseExpression/autotest/literal-number/expected.json new file mode 100644 index 000000000..71a47753f --- /dev/null +++ b/test/fixtures/parseExpression/autotest/literal-number/expected.json @@ -0,0 +1,4 @@ +{ + "type": "Literal", + "value": 123 +} \ No newline at end of file diff --git a/test/fixtures/parseExpression/autotest/literal-number/input.txt b/test/fixtures/parseExpression/autotest/literal-number/input.txt new file mode 100644 index 000000000..d800886d9 --- /dev/null +++ b/test/fixtures/parseExpression/autotest/literal-number/input.txt @@ -0,0 +1 @@ +123 \ No newline at end of file diff --git a/test/fixtures/parseExpression/autotest/literal-string/expected.json b/test/fixtures/parseExpression/autotest/literal-string/expected.json new file mode 100644 index 000000000..6a0e2eb44 --- /dev/null +++ b/test/fixtures/parseExpression/autotest/literal-string/expected.json @@ -0,0 +1,4 @@ +{ + "type": "Literal", + "value": "foo" +} \ No newline at end of file diff --git a/test/fixtures/parseExpression/autotest/literal-string/input.txt b/test/fixtures/parseExpression/autotest/literal-string/input.txt new file mode 100644 index 000000000..7e9668e78 --- /dev/null +++ b/test/fixtures/parseExpression/autotest/literal-string/input.txt @@ -0,0 +1 @@ +"foo" \ No newline at end of file