File 0618-stdlib-update-edlin_expand-test-to-try-unicode-and-n.patch of Package erlang
From 5d337355349afdf046d643bcd0f6824552c84d01 Mon Sep 17 00:00:00 2001
From: Fredrik Frantzen <frazze@erlang.org>
Date: Mon, 9 Jun 2025 10:48:03 +0200
Subject: [PATCH 2/2] stdlib: update edlin_expand test to try unicode and
non-atom type
---
lib/stdlib/test/edlin_expand_SUITE.erl | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/stdlib/test/edlin_expand_SUITE.erl b/lib/stdlib/test/edlin_expand_SUITE.erl
index 15abaaa7f0..369e2c75e3 100644
--- a/lib/stdlib/test/edlin_expand_SUITE.erl
+++ b/lib/stdlib/test/edlin_expand_SUITE.erl
@@ -240,6 +240,9 @@ map_completion(_Config) ->
%% test that an already specified key does not get suggested again
{no, [], [{"a_key",_},{"c_key", _}]} = do_expand("MapBinding#{b_key=>1,"),
%% test that unicode works
+ {yes, "'илли́ч'=>", []} = do_expand("UnicodeMap#{"),
+ %% test that non atoms are not suggested as completion
+ {no, "", []} = do_expand("NonAtomMap#{"),
ok.
function_parameter_completion(Config) ->
@@ -644,6 +647,8 @@ do_expand(String) ->
Bs = [
{'Binding', 0},
{'MapBinding', #{a_key=>0, b_key=>1, c_key=>2}},
+ {'UnicodeMap', #{'илли́ч' => 0}},
+ {'NonAtomMap', #{{} => 1}},
{'RecordBinding', {some_record, 1, 2}},
{'TupleBinding', {0, 1, 2}},
{'Söndag', 0},
--
2.43.0