forked from UCL-RITS/rse-classwork-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90c5065
commit cb65383
Showing
4 changed files
with
25 additions
and
15 deletions.
There are no files selected for viewing
Binary file modified
BIN
+435 Bytes
(120%)
week5-testing/__pycache__/test_times.cpython-38-pytest-6.1.1.pyc
Binary file not shown.
Binary file not shown.
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,15 +1,17 @@ | ||
- regualar overlap: | ||
test_times1: time_range("2010-01-12 10:00:00", "2010-01-12 12:00:00") | ||
test_times2: time_range("2010-01-12 10:30:00", "2010-01-12 10:45:00",2,60) | ||
expected: [('2010-01-12 10:30:00', '2010-01-12 10:37:00'), ('2010-01-12 10:38:00', '2010-01-12 10:45:00')] | ||
-edge case: | ||
test_times1: time_range("2010-01-12 10:45:00", "2010-01-12 12:00:00") | ||
test_times2: time_range("2010-01-12 10:30:00", "2010-01-12 10:45:00",2,60) | ||
expected: [] | ||
-no overlap: | ||
test_times1: time_range("2010-01-12 10:45:00", "2010-01-12 12:00:00") | ||
test_times2: time_range("2010-01-12 10:30:00", "2010-01-12 10:35:00",2,60) | ||
expected: [] | ||
- overlap: | ||
test_times1: ["2010-01-12 10:00:00", "2010-01-12 12:00:00"] | ||
test_times2: ["2010-01-12 10:30:00", "2010-01-12 10:45:00",2,60] | ||
expected: | ||
- ['2010-01-12 10:30:00', '2010-01-12 10:37:00'] | ||
- ['2010-01-12 10:38:00', '2010-01-12 10:45:00'] | ||
- edge case: | ||
test_times1: ["2010-01-12 10:45:00", "2010-01-12 12:00:00"] | ||
test_times2: ["2010-01-12 10:30:00", "2010-01-12 10:45:00",2,60] | ||
expected: [] | ||
- no overlap: | ||
test_times1: ["2010-01-12 10:45:00", "2010-01-12 12:00:00"] | ||
test_times2: ["2010-01-12 10:30:00", "2010-01-12 10:35:00",2,60] | ||
expected: [] | ||
|
||
|
||
|
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