Skip to content

Commit

Permalink
Adds new test case to preserve path chars
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Jul 10, 2017
1 parent b23a451 commit b9a3e04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/recase_test/path_case_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ defmodule Recase.PathCaseTest do
assert convert("path case", "\\") == "path\\case"
end

test "should preserve path chars" do
assert convert("/path case") == "/path/case"
assert convert("C:\\path case", "\\") == "C:\\path\\case"
end

test "should not modify extra chars" do
assert convert("!#$%^&*(){}[]~`'\"") == "!#$%^&*(){}[]~`'\""
end
Expand Down

0 comments on commit b9a3e04

Please sign in to comment.