From 1aed5ddfb27a7f8967750771866d5f977e2a84ef Mon Sep 17 00:00:00 2001 From: karimpwnz Date: Mon, 4 Jan 2021 10:08:46 +0200 Subject: [PATCH] Add combination tests --- features/data/journals/dates_similar.journal | 8 +++++++- features/search.feature | 9 ++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/features/data/journals/dates_similar.journal b/features/data/journals/dates_similar.journal index 5eb28d70..ae5b689a 100644 --- a/features/data/journals/dates_similar.journal +++ b/features/data/journals/dates_similar.journal @@ -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. \ No newline at end of file +[2021-01-03 15:39] Hi. + +[2021-01-04 10:21] Hi. + +[2021-01-04 12:33] Hi. \ No newline at end of file diff --git a/features/search.feature b/features/search.feature index cba8fff7..9cce074d 100644 --- a/features/search.feature +++ b/features/search.feature @@ -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"