timewarrior/test
Shaun Ruffell bba56cc633 getIntervalsById: Only add truly synthetic intervals to synthetic vector
This fixes an error where the latest interval, a non-synthetic interval,
is added to the synthetic array (and marked synthetic) if flatten() is
otherwise not able to convert it to a group of synthetic intervals.

When modify was attempting to edit this interval, it would fail since
synthetic intervals should not be written to the database unless the
database is being flattened and timewarrior believed the interval to be
modified was synthetic.

Closes #422

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2021-05-16 12:43:49 +02:00
..
basetest test: Thread.isAlive() -> Thread.is_alive() 2020-11-21 15:34:04 +01:00
docker Add Fedora 33 test image 2021-04-10 23:15:30 +02:00
scripts Replace roff man pages with asciidoctor 2021-02-21 20:58:30 +01:00
simpletap doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
test_extensions Tests: check ways report could be called from cli 2016-06-23 17:21:13 -04:00
.gitignore test: Add test to ensure Datafile throws when deleteInterval fails 2020-08-11 10:39:34 +02:00
annotate.t doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
AtomicFile.t Rename atomic to AtomicFileTest 2020-03-02 21:42:53 +01:00
AtomicFileTest.cpp doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
bash_tap.sh Use https:// link for opensource.org 2018-03-16 23:11:08 +01:00
bash_tap_ti.sh Use https:// link for opensource.org 2018-03-16 23:11:08 +01:00
cancel.t Update Copyright 2020-04-19 12:41:23 +02:00
chart.t Update Copyright 2020-04-19 12:41:23 +02:00
cli.t Update Copyright 2020-04-19 12:41:23 +02:00
clock.t Add starting times to start command 2020-08-19 15:41:52 +02:00
CMakeLists.txt test: The tests depend on the documentation. 2021-04-10 22:52:04 +02:00
config.t Update Copyright 2020-04-19 12:41:23 +02:00
continue.t Add test for command continue with future time 2020-08-21 23:03:53 +02:00
data.t.cpp Update copyright dates 2019-10-18 10:59:16 +02:00
Datafile.t.cpp doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
DatetimeParser.t.cpp doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
delete.t Use dynamic test data for interval enclosing a month border in delete.t 2020-07-17 13:59:05 +02:00
dom.t doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
exclusion.t.cpp Update copyright holders 2019-10-18 10:59:16 +02:00
export.t doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
extensions.t Update Copyright 2020-04-19 12:41:23 +02:00
fill.t Update Copyright 2020-04-19 12:41:23 +02:00
gaps.t Update Copyright 2020-04-19 12:41:23 +02:00
help.t Replace roff man pages with asciidoctor 2021-02-21 20:58:30 +01:00
helper.t.cpp Update copyright holders 2019-10-18 10:59:16 +02:00
ids.t Update Copyright 2020-04-19 12:41:23 +02:00
interval.t.cpp doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
join.t Update Copyright 2020-04-19 12:41:23 +02:00
lengthen.t Update Copyright 2020-04-19 12:41:23 +02:00
modify.t getIntervalsById: Only add truly synthetic intervals to synthetic vector 2021-05-16 12:43:49 +02:00
move.t doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
performance-plot.py Add performance tests 2019-12-06 16:29:40 +01:00
performance-test.sh test: Use faketime instead of date -v for relative dates 2020-01-17 17:48:57 +01:00
problems test/problems: Report when tests do not run properly 2020-01-26 22:38:52 +01:00
quiet.t Update Copyright 2020-04-19 12:41:23 +02:00
range.t.cpp Update copyright dates 2019-10-18 10:59:16 +02:00
resize.t Update Copyright 2020-04-19 12:41:23 +02:00
rules.t.cpp Update copyright holders 2019-10-18 10:59:16 +02:00
run_all Switch to python 3 2019-12-27 19:08:57 +01:00
shorten.t Update Copyright 2020-04-19 12:41:23 +02:00
split.t Update Copyright 2020-04-19 12:41:23 +02:00
start.t Allow tags to be enclosed in double quotes 2021-04-10 22:52:04 +02:00
stop.t doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
summary.t test:summary.t: Single digit week test should use logical or 2021-04-10 22:52:04 +02:00
tag.t Add starting times to start command 2020-08-19 15:41:52 +02:00
TagInfoDatabase.t.cpp doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
tags.t Update Copyright 2020-04-19 12:41:23 +02:00
TempDir.h doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
test.cpp Update copyright holders 2019-10-18 10:59:16 +02:00
test.h Update copyright holders 2019-10-18 10:59:16 +02:00
test_on-modify.timewarrior.t Update Copyright 2020-04-19 12:41:23 +02:00
test_totals.t Update Copyright 2020-04-19 12:41:23 +02:00
timemachine Add options --hours and --minutes to inject a range 2019-11-12 16:32:15 +01:00
track.t doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
undo.t Add assertion for interval count 2021-04-10 23:04:20 +02:00
untag.t Update Copyright 2020-04-19 12:41:23 +02:00
util.t.cpp Update copyright holders 2019-10-18 10:59:16 +02:00
version.t Update Copyright 2020-04-19 12:41:23 +02:00
write-failure.t test: Add write-failure.t 2020-02-23 19:03:40 +01:00