diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2017-11-08 14:08:56 +0100 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2017-11-08 14:08:56 +0100 |
commit | e83d7d3f9b0564aaf847a6b9da983d90592d3556 (patch) | |
tree | 43413d85ff34f16cfd2db4d2221ba57890864c4f /lib/iex/test/iex/autocomplete_test.exs | |
parent | 0845fef08e7ee4fe4f2797605b7a2c871385fb8e (diff) | |
download | elixir-e83d7d3f9b0564aaf847a6b9da983d90592d3556.tar.gz |
Also add callback completion
Diffstat (limited to 'lib/iex/test/iex/autocomplete_test.exs')
-rw-r--r-- | lib/iex/test/iex/autocomplete_test.exs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/iex/test/iex/autocomplete_test.exs b/lib/iex/test/iex/autocomplete_test.exs index ceccf1ddc..b642656c8 100644 --- a/lib/iex/test/iex/autocomplete_test.exs +++ b/lib/iex/test/iex/autocomplete_test.exs @@ -60,11 +60,20 @@ defmodule IEx.AutocompleteTest do end test "Elixir type completion" do + assert expand('t :gen_ser') == {:yes, 'ver', []} assert expand('t String') == {:yes, '', ['String', 'StringIO']} assert expand('t String.') == {:yes, '', ['codepoint/0', 'grapheme/0', 'pattern/0', 't/0']} assert expand('t String.grap') == {:yes, 'heme', []} end + test "Elixir callback completion" do + assert expand('b :strin') == {:yes, 'g', []} + assert expand('b String') == {:yes, '', ['String', 'StringIO']} + assert expand('b String.') == {:no, '', []} + assert expand('b Access.') == {:yes, '', ['fetch/2', 'get/3', 'get_and_update/3', 'pop/2']} + assert expand('b GenServer.term') == {:yes, 'inate', []} + end + test "Elixir completion with self" do assert expand('Enumerable') == {:yes, '.', []} end |