diff options
Diffstat (limited to 'test_fraction.c')
| -rw-r--r-- | test_fraction.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test_fraction.c b/test_fraction.c new file mode 100644 index 0000000..726b2fd --- /dev/null +++ b/test_fraction.c @@ -0,0 +1,15 @@ +#include <assert.h> +#include <stdio.h> + +#include "test.h" +#include "unit.h" + +void +test_percent(void) { + test(percent(12.345), 0.12345); +} + +void +test_as_percent(void) { + test(as_percent(percent(12.345)), 12.345); +} |