Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion test/regex_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@ defmodule Outstanding.RegexTest do
gen_nothing_outstanding_test("realized", ~r/foo/, "foo")
gen_nothing_outstanding_test("realized, match within string", ~r/foo/, "barfoobar")
gen_nothing_outstanding_test("realized, match within String.Chars implementation", ~r/foo/, :barfoobar)
gen_result_outstanding_test("value result", ~r/foo/, "bar", ~r/foo/)
#doesn't work as ~r/foo/ gets compiled separately so doesn't match
#gen_result_outstanding_test("value result", ~r/foo/, "bar", ~r/foo/)
test "value result" do
foo_regex = ~r/foo/
outstanding = foo_regex --- "bar"
assert outstanding == foo_regex
end
end