Skip to content

Commit

Permalink
update test names
Browse files Browse the repository at this point in the history
  • Loading branch information
milmazz committed Aug 1, 2023
1 parent e221da8 commit f46ae19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/style/single_node_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ defmodule Styler.Style.SingleNodeTest do
assert_style("Timex.after?(a, b)", "DateTime.after?(a, b)")
end

test "DateTime.compare to DateTime.before?" do
test "{DateTime,NaiveDateTime,Time,Date}.compare to {DateTime,NaiveDateTime,Time,Date}.before?" do
assert_style("DateTime.compare(foo, bar) == :lt", "DateTime.before?(foo, bar)")
assert_style("NaiveDateTime.compare(foo, bar) == :lt", "NaiveDateTime.before?(foo, bar)")
assert_style("Time.compare(foo, bar) == :lt", "Time.before?(foo, bar)")
assert_style("Date.compare(foo, bar) == :lt", "Date.before?(foo, bar)")
end

test "DateTime.compare to DateTime.after" do
test "{DateTime,NaiveDateTime,Time,Date}.compare to {DateTime,NaiveDateTime,Time,Date}.after?" do
assert_style("DateTime.compare(foo, bar) == :gt", "DateTime.after?(foo, bar)")
assert_style("NaiveDateTime.compare(foo, bar) == :gt", "NaiveDateTime.after?(foo, bar)")
assert_style("Time.compare(foo, bar) == :gt", "Time.after?(foo, bar)")
Expand Down

0 comments on commit f46ae19

Please sign in to comment.