Skip to content

Commit

Permalink
add more test cases for in word symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
SocialfiPanda committed Dec 6, 2014
1 parent d3b2100 commit c19f9b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/elixir/test/elixir/io/ansi/docs_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,15 @@ defmodule IO.ANSI.DocsTest do

result = format("foo_bar_")
assert result == "foo_bar_\n\e[0m"

result = format("foo*bar, foo*bar*baz!")
assert result == "foo*bar, foo*bar*baz!\n\e[0m"

result = format("*foo*bar")
assert result == "*foo*bar\n\e[0m"

result = format("foo*bar*")
assert result == "foo*bar*\n\e[0m"
end

test "backtick preceeded by space gets interpreted" do
Expand Down

0 comments on commit c19f9b5

Please sign in to comment.