Commit Graph

10 Commits

Author SHA1 Message Date
bb15e33a2a fix(alsa): Remove upper bound to get_volume (#2184)
Fixes #2173 

* feat(alsa): Remove upper bound to get_volume

* Add tests. Trim unnecessary function.
2020-09-20 14:26:17 +02:00
f983bb63bb tests: Convert math test to gtest 2018-06-10 16:42:07 +02:00
c865add821 refactor(tests): Migrate to googletest
googletest (gtest) is more feature rich than the current implementation
which only provides expect() which is basically an assertion. It is also
quite intuitive to use, this can be seen in the rewrite of the
command_line test where EXPECT_THROW replaces a whole try-catch block.

I have also moved the source files the test depend on to be linked in
CMakeLists.txt instead of including them directly because include .cpp
files is bad.

The two x11 tests were removed because they were written two years ago
and a lot of the things they depend on, don't actually exist anymore in
polybar (I think we switched to xpp after those tests were written)

Tests are now compiled with the gcov lib which can be used to provide
test coverage in a second step
2018-04-10 00:56:51 +02:00
452afcdc68 refactor: Integral types 2017-01-24 07:11:14 +01:00
5b33ada576 refactor(common): Cleanup 2017-01-11 07:17:54 +01:00
5c9bfc147c fix(xbacklight): Lower inc/dec value to 5 and fix flooring 2017-01-11 04:40:10 +01:00
c5bc338ae3 feat(math_util): Templated min/max 2016-11-26 13:09:29 +01:00
d6a5212ef3 fix(volume): Handle alsa playback range
Ref #174
2016-11-20 23:49:08 +01:00
fd57ab0f3d fix: project rename 2016-11-19 06:26:07 +01:00
bc67e64e79 feat: Add math_util::percentage_to_value 2016-10-25 07:05:01 +02:00