From c05eb3172db674f7f701bc823b7467449016f7af Mon Sep 17 00:00:00 2001 From: Abdulaziz Ghuloum Date: Tue, 26 Nov 2024 10:49:58 +0300 Subject: [PATCH] added test --- examples/object-pattern-1.ts.md | 18 ++++++++++++++++++ tests/object-pattern-1.ts | 3 +++ 2 files changed, 21 insertions(+) create mode 100644 examples/object-pattern-1.ts.md create mode 100644 tests/object-pattern-1.ts diff --git a/examples/object-pattern-1.ts.md b/examples/object-pattern-1.ts.md new file mode 100644 index 0000000..3ac03e4 --- /dev/null +++ b/examples/object-pattern-1.ts.md @@ -0,0 +1,18 @@ +## `object-pattern-1.ts` + +### Status: `DONE` + +### Input Program + +```typescript +using_syntax_rules( + [foo, {foo: x}, x + 2] +).rewrite({foo: 1}) +``` + +### Output Program + +```typescript +1 + 2; +``` + diff --git a/tests/object-pattern-1.ts b/tests/object-pattern-1.ts new file mode 100644 index 0000000..398a2e9 --- /dev/null +++ b/tests/object-pattern-1.ts @@ -0,0 +1,3 @@ +using_syntax_rules( + [foo, {foo: x}, x + 2] +).rewrite({foo: 1})