test: fix the pressure offset tests
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 6 Aug 2019 03:30:14 +0000 (13:30 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 8 Aug 2019 03:58:54 +0000 (13:58 +1000)
commitad13116f4e6d919d67e0c2a7f3f5eae4216a4772
tree72a782c41f7b1174d0d715bb228021c7c5eb7044
parent031fbc84bd36347c775ca687b78454bfba244198
test: fix the pressure offset tests

Unsuprisingly, a normalized [0,1] value will always be between 0 and 1, so
bhis gave us a false positive. Check for the real values instead.

Those values aren't 100% correct because of a bug in the offset handling which
will be fixed in a follow-up commit. The difference is near enough that it
doesn't matter here anyway.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/test-tablet.c