Commit Graph

16 Commits (6b9600fecd351be2fa181c8cf4283fc60a129cf3)

Author SHA1 Message Date
Paul Riou c26849217e test:Add test for output config with multiple exclusion/wildcard 2023-03-13 00:49:18 +00:00
Aleksei Bavshin 6225db0a48
test: refactor date formatter tests.
- Add tests for global locale.
- Warn about missing locales.
- Downgrade REQUIRE to CHECK.
- Skip tests if localized formatting does not work as expected.
2023-01-21 02:18:43 -08:00
Aleksei Bavshin 67efe1af89
refactor(clock): remove struct waybar_time
The structure was used to pass the locale instance to the date
formatter. All the supported versions of `fmt` are passing the locale
parameter via `FormatContext.locale()` so we can remove the struct and
simplify the code.

While we at it, drop `date::make_zoned` in favor of CTAD on a
`date::zoned_time` constructor.
2023-01-20 22:50:01 -08:00
Aleksei Bavshin 43d52c59d9
test: fix build with Catch2 v2.x
Use smaller includes for Catch2 v3.
2023-01-20 22:49:59 -08:00
llyyr 1db3c55b48 Fix build with catch2>=3.0.0 2022-10-16 19:21:43 +05:30
Alex f2fcadbf62 refactor: lint 2022-04-06 08:37:19 +02:00
Aleksei Bavshin 766c8a1035
test: add tests for waybar_time formatter 2022-01-07 22:33:50 -08:00
Aleksei Bavshin 8c41aaae04
refactor(test): use single executable 2022-01-07 19:21:51 -08:00
Aleksei Bavshin 4b5dc1bb3a
test: count copies and moves done by SafeSignal 2021-11-28 09:52:18 -08:00
Aleksei Bavshin 3e2197a82a
test(util): add tests for SafeSignal
Add a fixture for writing tests that require interaction with Glib event
loop and a very basic test for SafeSignal.
2020-12-28 17:28:03 -08:00
Elyes HAOUAS f18eb71ad7 Fix spelling errors
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
2021-10-02 18:13:17 +02:00
Aleksei Bavshin 0c1d3e30b6
fix(config): preserve explicit null when merging objects 2021-09-15 22:20:44 +07:00
Aleksei Bavshin ccc60b4245
refactor(config): more sensible multi-bar include behavior 2021-09-15 22:15:27 +07:00
Aleksei Bavshin 8912bd3ed0
test: multi-bar config with includes 2021-09-15 21:34:56 +07:00
Aleksei Bavshin 9f3b34e4d9
test: validate configuration load 2021-09-15 21:34:55 +07:00
Aleksei Bavshin 6eba62f060
test: add build configs for catch2 2021-09-15 21:34:55 +07:00