From f45aba56f2e4e6097444ef29953d8fdd67e71590 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 20 Oct 2025 01:37:03 +0900 Subject: [PATCH] added the data for a test case --- t/JSON.awk.in | 28 ++++++++++++++++++++++++++++ t/JSON.awk.out | 16 ++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 t/JSON.awk.in create mode 100644 t/JSON.awk.out diff --git a/t/JSON.awk.in b/t/JSON.awk.in new file mode 100644 index 00000000..05f9c374 --- /dev/null +++ b/t/JSON.awk.in @@ -0,0 +1,28 @@ +{ + "first_name": "John", + "last_name": "Smith", + "is_alive": true, + "age": 27, + "address": { + "street_address": "21 2nd Street", + "city": "New York", + "state": "NY", + "postal_code": "10021-3100" + }, + "phone_numbers": [ + { + "type": "home", + "number": "212 555-1234" + }, + { + "type": "office", + "number": "646 555-4567" + } + ], + "children": [ + "Catherine", + "Thomas", + "Trevor" + ], + "spouse": null +} diff --git a/t/JSON.awk.out b/t/JSON.awk.out new file mode 100644 index 00000000..feb9ee95 --- /dev/null +++ b/t/JSON.awk.out @@ -0,0 +1,16 @@ +["first_name"] "John" +["last_name"] "Smith" +["is_alive"] true +["age"] 27 +["address","street_address"] "21 2nd Street" +["address","city"] "New York" +["address","state"] "NY" +["address","postal_code"] "10021-3100" +["phone_numbers",0,"type"] "home" +["phone_numbers",0,"number"] "212 555-1234" +["phone_numbers",1,"type"] "office" +["phone_numbers",1,"number"] "646 555-4567" +["children",0] "Catherine" +["children",1] "Thomas" +["children",2] "Trevor" +["spouse"] null