aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2014-07-01 02:42:49 +0200
committerAnthony Ramine <[email protected]>2014-07-01 02:56:51 +0200
commit8517d458420fcf9381c81337b3e4f232273082e4 (patch)
treeb15589dfc8bf5f163821cb0c9469cfdb3a7fe3ee /lib/stdlib/test
parentc9e36ab16034bb7fe71f772df6bba22070976bbf (diff)
downloadotp-8517d458420fcf9381c81337b3e4f232273082e4.tar.gz
otp-8517d458420fcf9381c81337b3e4f232273082e4.tar.bz2
otp-8517d458420fcf9381c81337b3e4f232273082e4.zip
Expand shell functions in map expressions
Reported-by: Danil Zagoskin
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r--lib/stdlib/test/shell_SUITE.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/stdlib/test/shell_SUITE.erl b/lib/stdlib/test/shell_SUITE.erl
index e016432f4d..f841e2c4a6 100644
--- a/lib/stdlib/test/shell_SUITE.erl
+++ b/lib/stdlib/test/shell_SUITE.erl
@@ -2532,6 +2532,11 @@ otp_6554(Config) when is_list(Config) ->
"\n end.\nok.\n" =
t(<<"begin F = fun() -> foo end, 1 end. B = F(). C = 17. b().">>),
+ ?line "3: command not found" = comm_err(<<"#{v(3) => v}.">>),
+ ?line "3: command not found" = comm_err(<<"#{k => v(3)}.">>),
+ ?line "3: command not found" = comm_err(<<"#{v(3) := v}.">>),
+ ?line "3: command not found" = comm_err(<<"#{k := v(3)}.">>),
+ ?line "3: command not found" = comm_err(<<"(v(3))#{}.">>),
%% Tests I'd like to do: (you should try them manually)
%% "catch spawn_link(fun() -> timer:sleep(1000), exit(foo) end)."
%% "** exception error: foo" should be output after 1 second