-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#297 Fix test failures because of times with microseconds
- Loading branch information
1 parent
988bd3d
commit 377123b
Showing
13 changed files
with
493 additions
and
453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
elixir 1.12.1-otp-24 | ||
erlang 24.0.2 | ||
elixir 1.14.5-otp-25 | ||
erlang 25.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
defmodule Cocktail.EdgeCasesTest do | ||
use ExUnit.Case | ||
|
||
import Cocktail.TestSupport.Assertions | ||
|
||
alias Cocktail.Schedule | ||
|
||
test "override start time to before the schedule's start time" do | ||
schedule = ~N[2017-10-01 09:00:00] |> Schedule.new() |> Schedule.add_recurrence_rule(:daily) | ||
|
||
times = schedule |> Schedule.occurrences(~N[2017-09-01 00:00:00]) |> Enum.take(3) | ||
|
||
assert times == [ | ||
~N[2017-10-01 09:00:00], | ||
~N[2017-10-02 09:00:00], | ||
~N[2017-10-03 09:00:00] | ||
] | ||
assert_equivalent_times(times, [ | ||
~N[2017-10-01 09:00:00], | ||
~N[2017-10-02 09:00:00], | ||
~N[2017-10-03 09:00:00] | ||
]) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.