From 643d289bf0e882c8b99e43e52e04249853a26a52 Mon Sep 17 00:00:00 2001 From: joshvera Date: Thu, 16 Mar 2017 16:47:14 -0400 Subject: [PATCH] Add tests for assignment-pattern --- test/fixtures/javascript/assignment-pattern.A.js | 1 + test/fixtures/javascript/assignment-pattern.B.js | 1 + test/fixtures/javascript/assignment-pattern.diff+A.txt | 5 +++++ test/fixtures/javascript/assignment-pattern.diff+B.txt | 6 ++++++ test/fixtures/javascript/assignment-pattern.diff-A.txt | 5 +++++ test/fixtures/javascript/assignment-pattern.diff-B.txt | 6 ++++++ test/fixtures/javascript/assignment-pattern.diffA-B.txt | 5 +++++ test/fixtures/javascript/assignment-pattern.diffB-A.txt | 5 +++++ test/fixtures/javascript/assignment-pattern.parseA.txt | 1 + test/fixtures/javascript/assignment-pattern.parseB.txt | 1 + 10 files changed, 36 insertions(+) create mode 100644 test/fixtures/javascript/assignment-pattern.A.js create mode 100644 test/fixtures/javascript/assignment-pattern.B.js create mode 100644 test/fixtures/javascript/assignment-pattern.diff+A.txt create mode 100644 test/fixtures/javascript/assignment-pattern.diff+B.txt create mode 100644 test/fixtures/javascript/assignment-pattern.diff-A.txt create mode 100644 test/fixtures/javascript/assignment-pattern.diff-B.txt create mode 100644 test/fixtures/javascript/assignment-pattern.diffA-B.txt create mode 100644 test/fixtures/javascript/assignment-pattern.diffB-A.txt create mode 100644 test/fixtures/javascript/assignment-pattern.parseA.txt create mode 100644 test/fixtures/javascript/assignment-pattern.parseB.txt diff --git a/test/fixtures/javascript/assignment-pattern.A.js b/test/fixtures/javascript/assignment-pattern.A.js new file mode 100644 index 000000000..328f1e833 --- /dev/null +++ b/test/fixtures/javascript/assignment-pattern.A.js @@ -0,0 +1 @@ +var { x = 0 } = foo; diff --git a/test/fixtures/javascript/assignment-pattern.B.js b/test/fixtures/javascript/assignment-pattern.B.js new file mode 100644 index 000000000..6de024589 --- /dev/null +++ b/test/fixtures/javascript/assignment-pattern.B.js @@ -0,0 +1 @@ +var { y = 1 } = foo; diff --git a/test/fixtures/javascript/assignment-pattern.diff+A.txt b/test/fixtures/javascript/assignment-pattern.diff+A.txt new file mode 100644 index 000000000..7ecf60e0f --- /dev/null +++ b/test/fixtures/javascript/assignment-pattern.diff+A.txt @@ -0,0 +1,5 @@ +{+(Program + (VarDecl + (VarAssignment + (Other"destructuring_pattern" + (Object (Assignment (Identifier) (NumberLiteral)))) (Identifier))))+} \ No newline at end of file diff --git a/test/fixtures/javascript/assignment-pattern.diff+B.txt b/test/fixtures/javascript/assignment-pattern.diff+B.txt new file mode 100644 index 000000000..94a81f114 --- /dev/null +++ b/test/fixtures/javascript/assignment-pattern.diff+B.txt @@ -0,0 +1,6 @@ +{+(Program + (VarDecl + (VarAssignment + (Other"destructuring_pattern" + (Object + (Assignment (Identifier) (NumberLiteral)))) (Identifier))))+} \ No newline at end of file diff --git a/test/fixtures/javascript/assignment-pattern.diff-A.txt b/test/fixtures/javascript/assignment-pattern.diff-A.txt new file mode 100644 index 000000000..1075e9211 --- /dev/null +++ b/test/fixtures/javascript/assignment-pattern.diff-A.txt @@ -0,0 +1,5 @@ +{-(Program + (VarDecl + (VarAssignment + (Other"destructuring_pattern" + (Object (Assignment (Identifier) (NumberLiteral)))) (Identifier))))-} \ No newline at end of file diff --git a/test/fixtures/javascript/assignment-pattern.diff-B.txt b/test/fixtures/javascript/assignment-pattern.diff-B.txt new file mode 100644 index 000000000..618a6f08b --- /dev/null +++ b/test/fixtures/javascript/assignment-pattern.diff-B.txt @@ -0,0 +1,6 @@ +{-(Program + (VarDecl + (VarAssignment + (Other"destructuring_pattern" + (Object + (Assignment (Identifier) (NumberLiteral)))) (Identifier))))-} \ No newline at end of file diff --git a/test/fixtures/javascript/assignment-pattern.diffA-B.txt b/test/fixtures/javascript/assignment-pattern.diffA-B.txt new file mode 100644 index 000000000..3175ab683 --- /dev/null +++ b/test/fixtures/javascript/assignment-pattern.diffA-B.txt @@ -0,0 +1,5 @@ +(Program(VarDecl(VarAssignment(Other"destructuring_pattern"(Object(Assignment{ + (Identifier)->(Identifier) +}{ + (NumberLiteral)->(NumberLiteral) +})))(Identifier)))) \ No newline at end of file diff --git a/test/fixtures/javascript/assignment-pattern.diffB-A.txt b/test/fixtures/javascript/assignment-pattern.diffB-A.txt new file mode 100644 index 000000000..3175ab683 --- /dev/null +++ b/test/fixtures/javascript/assignment-pattern.diffB-A.txt @@ -0,0 +1,5 @@ +(Program(VarDecl(VarAssignment(Other"destructuring_pattern"(Object(Assignment{ + (Identifier)->(Identifier) +}{ + (NumberLiteral)->(NumberLiteral) +})))(Identifier)))) \ No newline at end of file diff --git a/test/fixtures/javascript/assignment-pattern.parseA.txt b/test/fixtures/javascript/assignment-pattern.parseA.txt new file mode 100644 index 000000000..1bfcaf2e8 --- /dev/null +++ b/test/fixtures/javascript/assignment-pattern.parseA.txt @@ -0,0 +1 @@ +(Program(VarDecl(VarAssignment(Other"destructuring_pattern"(Object(Assignment(Identifier)(NumberLiteral))))(Identifier)))) \ No newline at end of file diff --git a/test/fixtures/javascript/assignment-pattern.parseB.txt b/test/fixtures/javascript/assignment-pattern.parseB.txt new file mode 100644 index 000000000..1bfcaf2e8 --- /dev/null +++ b/test/fixtures/javascript/assignment-pattern.parseB.txt @@ -0,0 +1 @@ +(Program(VarDecl(VarAssignment(Other"destructuring_pattern"(Object(Assignment(Identifier)(NumberLiteral))))(Identifier)))) \ No newline at end of file