File 5018-Use-triple-quoted-string-in-test-source.patch of Package erlang
From 1104d1935e7375c394e9faf5973ad39ab31b785d Mon Sep 17 00:00:00 2001
From: Raimo Niskanen <raimo@erlang.org>
Date: Fri, 1 Sep 2023 15:28:29 +0200
Subject: [PATCH 8/8] Use triple-quoted string in test source
---
lib/stdlib/test/erl_scan_SUITE.erl | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/lib/stdlib/test/erl_scan_SUITE.erl b/lib/stdlib/test/erl_scan_SUITE.erl
index 666e746f8e..5da9c4e159 100644
--- a/lib/stdlib/test/erl_scan_SUITE.erl
+++ b/lib/stdlib/test/erl_scan_SUITE.erl
@@ -1505,6 +1505,24 @@ triple_quoted_string(Config) when is_list(Config) ->
"\"\"\"\"", % A string starts at the last char but never ends
{1,1}, []),
+ %% Test the real deal in this source code
+ """"
+ ```erlang
+ foo() ->
+ """
+ \foo
+ \bar
+ """.
+ ```
+ """"
+ =
+ "```erlang
+foo() ->
+ \"\"\"
+ \\foo
+ \\bar
+ \"\"\".
+```",
ok.
test_string(String, ExpectedWithCol) ->
--
2.35.3