aboutsummaryrefslogtreecommitdiffstats
path: root/test_fraction.c
blob: 726b2fd3611c97bf56417955458ee5a66a5d0d02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}