Commit Graph

5 Commits (614b20d0736bb5ea04f3b4d4305d7cbd32fe6b9d)

Author SHA1 Message Date
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 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 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
Aleksei Bavshin 6eba62f060
test: add build configs for catch2 2021-09-15 21:34:55 +07:00