diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-02-28 15:23:05 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-02-28 15:23:05 -0500 |
| commit | d4976912beceb70a110050f212d5a1f17f974f17 (patch) | |
| tree | 4483a9990b26b05018d8bc63b468eb46e333967f /test_volume.c | |
| parent | 24f0677b76ba5be7114031f2d6d6746dcb64ce55 (diff) | |
| download | volute-d4976912beceb70a110050f212d5a1f17f974f17.zip | |
volume unit conversion functions
Diffstat (limited to 'test_volume.c')
| -rw-r--r-- | test_volume.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test_volume.c b/test_volume.c index 1dac319..84b29a0 100644 --- a/test_volume.c +++ b/test_volume.c @@ -6,40 +6,40 @@ void test_cubic_centimetre(void) { - assert(0); + test(cubic_centimetre(123.456), 0.000123456); } void test_litre(void) { - assert(0); + test(litre(123.456), 0.123456); } void test_cubic_metre(void) { - assert(0); + test(cubic_metre(123.456), 123.456); } void test_cubic_inch(void) { - assert(0); + test(cubic_inch(123.456), 0.0020230814); } void test_as_cubic_centimetre(void) { - assert(0); + test(as_cubic_centimetre(cubic_centimetre(123.456)), 123.456); } void test_as_litre(void) { - assert(0); + test(as_litre(litre(123.456)), 123.456); } void test_as_cubic_metre(void) { - assert(0); + test(as_cubic_metre(cubic_metre(123.456)), 123.456); } void test_as_cubic_inch(void) { - assert(0); + test(as_cubic_inch(cubic_inch(123.456)), 123.456); } |