From bb11d94bd8dfd0f5554c02fd7175ced881370952 Mon Sep 17 00:00:00 2001
From: Juerd Waalboer <juerd@tnx.nl>
Date: Thu, 28 Dec 2023 14:06:10 +0100
Subject: [PATCH] More quoting tests

---
 t/prompt.t | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/t/prompt.t b/t/prompt.t
index d9287d3..345b0c2 100644
--- a/t/prompt.t
+++ b/t/prompt.t
@@ -34,13 +34,23 @@ are '"foo"', [qw/foo/];
 
 are "foo bar",           [qw/foo bar/];
 are "foo bar baz",       [qw/foo bar baz/];
-are "'foo' 'bar' 'baz'", [qw/foo bar baz/];
+are "'foo' 'bar' \"baz\"", [qw/foo bar baz/];
 
 are "foo;bar",   ['foo', "\0SEPARATOR", 'bar'];
 are "foo ;bar",  ['foo', "\0SEPARATOR", 'bar'];
 are "foo; bar",  ['foo', "\0SEPARATOR", 'bar'];
 are "foo ; bar", ['foo', "\0SEPARATOR", 'bar'];
 
+are "'foo';bar",   ['foo', "\0SEPARATOR", 'bar'];
+are "'foo' ;bar",  ['foo', "\0SEPARATOR", 'bar'];
+are "'foo'; bar",  ['foo', "\0SEPARATOR", 'bar'];
+are "'foo' ; bar", ['foo', "\0SEPARATOR", 'bar'];
+
+are "foo;'bar'",   ['foo', "\0SEPARATOR", 'bar'];
+are "foo ;'bar'",  ['foo', "\0SEPARATOR", 'bar'];
+are "foo; 'bar'",  ['foo', "\0SEPARATOR", 'bar'];
+are "foo ; 'bar'", ['foo', "\0SEPARATOR", 'bar'];
+
 are "foo\\;bar",   [qw/foo;bar/];
 are "foo \\;bar",  [qw/foo ;bar/];
 are "foo\\; bar",  [qw/foo; bar/];
@@ -58,6 +68,7 @@ are 'foo\\\\\\\\bar', ["foo\\\\bar"];
 
 are "abort", ["\0ABORT"];
 are "'abort'", [qw/abort/];
+are '"abort"', [qw/abort/];
 
 are "\\", 0;
 are "'foo", 0;