diff --git a/test/makeup/erlang_lexer/erlang_lexer_tokenizer_test.exs b/test/makeup/erlang_lexer/erlang_lexer_tokenizer_test.exs index 6965da4..71d7dbe 100644 --- a/test/makeup/erlang_lexer/erlang_lexer_tokenizer_test.exs +++ b/test/makeup/erlang_lexer/erlang_lexer_tokenizer_test.exs @@ -389,32 +389,47 @@ defmodule ErlangLexerTokenizer do describe "prompt" do test "without number" do - assert lex("> a.") == [{:generic_prompt, %{selectable: false}, "> "}, - {:string_symbol, %{}, "a"}, - {:punctuation, %{}, "."}] - assert lex("(a@b)> a.") == [{:generic_prompt, %{selectable: false}, "(a@b)> "}, - {:string_symbol, %{}, "a"}, - {:punctuation, %{}, "."}] + assert lex("> a.") == [ + {:generic_prompt, %{selectable: false}, "> "}, + {:string_symbol, %{}, "a"}, + {:punctuation, %{}, "."} + ] + + assert lex("(a@b)> a.") == [ + {:generic_prompt, %{selectable: false}, "(a@b)> "}, + {:string_symbol, %{}, "a"}, + {:punctuation, %{}, "."} + ] end test "with number" do - assert lex("1> a.") == [{:generic_prompt, %{selectable: false}, "1> "}, - {:string_symbol, %{}, "a"}, - {:punctuation, %{}, "."}] - assert lex("(a@b)1> a.") == [{:generic_prompt, %{selectable: false}, "(a@b)1> "}, - {:string_symbol, %{}, "a"}, - {:punctuation, %{}, "."}] + assert lex("1> a.") == [ + {:generic_prompt, %{selectable: false}, "1> "}, + {:string_symbol, %{}, "a"}, + {:punctuation, %{}, "."} + ] + + assert lex("(a@b)1> a.") == [ + {:generic_prompt, %{selectable: false}, "(a@b)1> "}, + {:string_symbol, %{}, "a"}, + {:punctuation, %{}, "."} + ] end test "greater-than still works" do - assert lex("1>2") == [{:number_integer, %{}, "1"}, - {:operator, %{}, ">"}, - {:number_integer, %{}, "2"}] - assert lex("1 > 2") == [{:number_integer, %{}, "1"}, - {:whitespace, %{}, " "}, - {:operator, %{}, ">"}, - {:whitespace, %{}, " "}, - {:number_integer, %{}, "2"}] + assert lex("1>2") == [ + {:number_integer, %{}, "1"}, + {:operator, %{}, ">"}, + {:number_integer, %{}, "2"} + ] + + assert lex("1 > 2") == [ + {:number_integer, %{}, "1"}, + {:whitespace, %{}, " "}, + {:operator, %{}, ">"}, + {:whitespace, %{}, " "}, + {:number_integer, %{}, "2"} + ] end end end