Add combination tests

This commit is contained in:
karimpwnz 2021-01-04 10:08:46 +02:00
parent 2da0c6b6dc
commit 1aed5ddfb2
2 changed files with 13 additions and 4 deletions

View file

@ -4,6 +4,12 @@
[2019-01-03 10:08] Hi.
[2019-01-07 01:02] Hi.
[2020-02-05 12:10] Hi.
[2021-01-03 15:39] Hi.
[2021-01-04 10:21] Hi.
[2021-01-04 12:33] Hi.

View file

@ -235,9 +235,12 @@ Feature: Searching in a journal
| args | entry1 | entry2 |
| -year 2018 | 2018-02-04 06:04 Hi. | 2018-03-05 08:06 Hi. |
| -year 18 | 2018-02-04 06:04 Hi. | 2018-03-05 08:06 Hi. |
Examples: month and day
| args | entry1 | entry2 |
| -month 1 -day 3 | 2019-01-03 10:08 Hi. | 2021-01-03 15:39 Hi. |
Examples: combinations
| args | entry1 | entry2 |
| -month 1 -day 3 | 2019-01-03 10:08 Hi. | 2021-01-03 15:39 Hi. |
| -month 1 -year 2019 | 2019-01-03 10:08 Hi. | 2019-01-07 01:02 Hi. |
| -day 4 -year 2021 | 2021-01-04 10:21 Hi. | 2021-01-04 12:33 Hi. |
| -month 1 -day 4 -year 2021 | 2021-01-04 10:21 Hi. | 2021-01-04 12:33 Hi. |
Scenario: Reminiscing
Given we use the config "dates_similar.yaml"