Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

string interpolation edge case tests

  • Loading branch information...
commit b7fa5ebc5821fa6a47f4ce4911208971eaf6cc4a 1 parent 5232c5c
@afri afri authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/suites/sjs-testsuite.sjs
View
12 test/suites/sjs-testsuite.sjs
@@ -1454,3 +1454,15 @@ test("complex detached blocklambda return", 111, function() {
test("comments across strings", 1, function() {
return /* " */ 2; /* " */1;
});
+
+test('interpolation edge case 1 "#{1}"', '1', function() {
+ return "#{1}";
+});
+
+test('interpolation edge case 2 "#{1}2"', '12', function() {
+ return "#{1}2";
+});
+
+test('interpolation edge case 3 "#{1}#{2}"', '12', function() {
+ return "#{1}#{2}";
+});
Please sign in to comment.
Something went wrong with that request. Please try again.