We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb82b0c commit 9ebce19Copy full SHA for 9ebce19
lib/elixir/test/elixir/kernel/case_test.exs
@@ -18,6 +18,18 @@ defmodule Kernel.CaseTest do
18
assert vars_case(-1, -1) == { 0, 1 }
19
end
20
21
+ test :nested_vars_match do
22
+ x = { :error, { :ok, :done } }
23
+ assert (case x do
24
+ { :ok, right } ->
25
+ right
26
+ { _left, right } ->
27
+ case right do
28
+ { :ok, right } -> right
29
+ end
30
+ end) == :done
31
32
+
33
test :match_with_in do
34
assert(case 3 do
35
x in [1,2,3] ->
0 commit comments