timewarrior/test
Maxim Beder 68d4978b7d Add test for summary truncating long anotations
When calling summary command with :annotations hint, if the annotation
is longer than a certain length, it's going to be truncated. The issue
is that the length and truncation are done on a raw string without
considering UTF8 multibyte characters, so there are edge cases when an
annotation is truncated in the middle of a character creating an invalid
UTF8 string.

Added a test case for this scenario.

Signed-off-by: Maxim Beder <macsim.beder@gmail.com>
2023-04-14 12:23:16 +02:00
..
basetest Fix typos and wording 2023-04-04 22:44:44 +02:00
docker Update Ubuntu docker images 2023-01-14 00:16:09 +01:00
scripts Use python 10 on macOS runners 2022-08-17 20:44:45 +02:00
simpletap doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
test_extensions Add tests for configurable report range, update man page 2022-12-31 22:22:49 +01:00
.gitignore test: Add test to ensure Datafile throws when deleteInterval fails 2020-08-11 10:39:34 +02:00
annotate.t Update copyrights 2023-04-04 22:44:44 +02:00
AtomicFile.t Rename atomic to AtomicFileTest 2020-03-02 21:42:53 +01:00
AtomicFileTest.cpp Update copyright ranges 2021-05-27 21:11:32 +02: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 copyrights 2023-04-04 22:44:44 +02:00
chart.t Update copyrights 2023-04-04 22:44:44 +02:00
cli.t Update copyrights 2023-04-04 22:44:44 +02:00
clock.t Update copyrights 2023-04-04 22:44:44 +02:00
CMakeLists.txt test: The tests depend on the documentation. 2021-04-10 22:52:04 +02:00
config.t Update copyrights 2023-04-04 22:44:44 +02:00
continue.t Update copyrights 2023-04-04 22:44:44 +02:00
data.t.cpp Update copyright dates 2019-10-18 10:59:16 +02:00
Datafile.t.cpp Update copyright ranges 2021-05-27 21:11:32 +02:00
DatetimeParser.t.cpp Update copyright ranges 2021-05-27 21:11:32 +02:00
delete.t Update copyrights 2023-04-04 22:44:44 +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 Update copyrights 2023-04-04 22:44:44 +02:00
extensions.t Update copyrights 2023-04-04 22:44:44 +02:00
fill.t Update copyrights 2023-04-04 22:44:44 +02:00
gaps.t Update copyrights 2023-04-04 22:44:44 +02:00
help.t Update copyrights 2023-04-04 22:44:44 +02:00
helper.t.cpp Update copyright holders 2019-10-18 10:59:16 +02:00
ids.t Update copyrights 2023-04-04 22:44:44 +02:00
interval.t.cpp doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
join.t Update copyrights 2023-04-04 22:44:44 +02:00
lengthen.t Update copyrights 2023-04-04 22:44:44 +02:00
modify.t Update copyrights 2023-04-04 22:44:44 +02:00
move.t Update copyrights 2023-04-04 22:44:44 +02:00
performance-plot.py Improve performance-plot script 2021-11-19 23:20:25 +01:00
performance-test.sh Fix typos 2022-08-17 21:23:43 +02:00
problems Add --details option 2022-12-29 13:56:21 +01:00
quiet.t Update copyrights 2023-04-04 22:44:44 +02:00
range.t.cpp Update copyright dates 2019-10-18 10:59:16 +02:00
resize.t Update copyrights 2023-04-04 22:44:44 +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 copyrights 2023-04-04 22:44:44 +02:00
split.t Update copyrights 2023-04-04 22:44:44 +02:00
start.t Fix typos and wording 2023-04-04 22:44:44 +02:00
stop.t Fix typos and wording 2023-04-04 22:44:44 +02:00
summary.t Add test for summary truncating long anotations 2023-04-14 12:23:16 +02:00
tag.t Fix typos and wording 2023-04-04 22:44:44 +02:00
TagInfoDatabase.t.cpp doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
tags.t Update copyrights 2023-04-04 22:44:44 +02:00
TempDir.h Update copyright ranges 2021-05-27 21:11:32 +02: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_totals.t Update copyrights 2023-04-04 22:44:44 +02:00
timemachine Improve timemachine test-script 2021-11-12 21:59:07 +01:00
track.t doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
undo.t Update copyright ranges 2021-05-27 21:11:32 +02:00
untag.t Fix typos and wording 2023-04-04 22:44:44 +02:00
util.t.cpp Update copyright holders 2019-10-18 10:59:16 +02:00
version.t Update copyrights 2023-04-04 22:44:44 +02:00
write-failure.t Fix typos and wording 2023-04-04 22:44:44 +02:00