Uwe Hermann
b5df922e4f
sr_voltage_string(): Add a space before the unit.
...
This makes the output consistent with most of the other functions
in libsigrok.
2017-08-06 19:45:45 +02:00
Uwe Hermann
c911599da7
Add sr_voltage_string() unit tests.
2017-08-06 19:38:31 +02:00
Soeren Apel
6984cfb245
Rework sr_period_string
2017-03-07 17:13:46 +01:00
Stefan Brüns
5223412ebe
tests/strutil: Check output of sr_period_string
2017-01-21 15:08:21 +01:00
Gerhard Sittig
2ea1fdf121
license: remove FSF postal address from boiler plate license text
...
Remove the FSF postal address as it might change (it did in the past).
Reference the gnu.org website instead which is more stable.
2017-01-07 16:05:39 +01:00
Stefan Brüns
5ec172d7e9
strutil: add method to get an sr_rational from a string
...
The method accepts strings with numbers in scientific or normal notation,
e.g. -1.25 or 3.37e-6. The numeric range is limited by the sr_rational
range, i.e +-9.2e18, resolution is ~19 digits.
2016-05-16 23:35:10 +02:00
Daniel Elstner
6ec6c43b47
Build: Include <config.h> first in all source files
...
Since Autoconf places some important feature flags only into the
configuration header, it is necessary to include it globally to
guarantee a consistent build.
2015-09-13 18:54:46 +02:00
Daniel Elstner
4960aeb035
tests: Include <libsigrok/libsigrok.h>
...
This matches the global style and avoids the "../" path
components.
2015-08-16 18:28:13 +02:00
Uwe Hermann
02a2bf688f
unit tests: Drop unneeded check_ filename prefix.
2015-02-17 15:24:28 +01:00