From 533ea96d4f4ca6ce9a6325842d77e62488d3204c Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 23 May 2020 23:32:13 -0400 Subject: [PATCH] Add a test for literal string blocks. --- js/test_cases/literal_string_block/input1.json | 1 + js/test_cases/literal_string_block/main.dust | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 js/test_cases/literal_string_block/input1.json create mode 100644 js/test_cases/literal_string_block/main.dust diff --git a/js/test_cases/literal_string_block/input1.json b/js/test_cases/literal_string_block/input1.json new file mode 100644 index 0000000..ad7288d --- /dev/null +++ b/js/test_cases/literal_string_block/input1.json @@ -0,0 +1 @@ +{"name": "Bob"} diff --git a/js/test_cases/literal_string_block/main.dust b/js/test_cases/literal_string_block/main.dust new file mode 100644 index 0000000..781ca76 --- /dev/null +++ b/js/test_cases/literal_string_block/main.dust @@ -0,0 +1,5 @@ +{` +This block is supposed + to preserve {name} all +newlines, whitespace, and braces +`}