diff options
author | Bruce Yinhe <[email protected]> | 2014-07-15 15:38:27 +0200 |
---|---|---|
committer | Bruce Yinhe <[email protected]> | 2014-07-15 15:38:27 +0200 |
commit | 172e812c491680fbb175f56f7604d4098cdc9de4 (patch) | |
tree | 9e27ba7be46d58144961148b606328a27deee354 /lib/stdlib/test | |
parent | 218037f874b296eec9452a4195c5f2cef0329d06 (diff) | |
parent | 8517d458420fcf9381c81337b3e4f232273082e4 (diff) | |
download | otp-172e812c491680fbb175f56f7604d4098cdc9de4.tar.gz otp-172e812c491680fbb175f56f7604d4098cdc9de4.tar.bz2 otp-172e812c491680fbb175f56f7604d4098cdc9de4.zip |
Merge branch 'nox/maps-shell-expansion' into maint
OTP-12063
* nox/maps-shell-expansion:
Expand shell functions in map expressions
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r-- | lib/stdlib/test/shell_SUITE.erl | 5 |
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 |