From bc1d5a436f81561072d7f4f0f0ecb1fa85718c7f Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Fri, 28 Feb 2025 18:03:06 -0500 Subject: pressure conversion functions --- test_pressure.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'test_pressure.c') diff --git a/test_pressure.c b/test_pressure.c index a64bac9..f04a1bc 100644 --- a/test_pressure.c +++ b/test_pressure.c @@ -2,53 +2,54 @@ #include #include "test.h" +#include "unit.h" void test_pascal(void) { - assert(0); + test(pascal(123.456), 123.456); } void test_millibar(void) { - assert(0); + test(millibar(123.456), 12345.6); } void test_kilopascal(void) { - assert(0); + test(kilopascal(123.456), 123456.0); } void test_bar(void) { - assert(0); + test(bar(123.456), 12345600.0); } void test_psi(void) { - assert(0); + test(psi(123.456), 851199.15638539323); } void test_as_pascal(void) { - assert(0); + test(as_pascal(pascal(123.456)), 123.456); } void test_as_millibar(void) { - assert(0); + test(as_millibar(millibar(123.456)), 123.456); } void test_as_kilopascal(void) { - assert(0); + test(as_kilopascal(kilopascal(123.456)), 123.456); } void test_as_bar(void) { - assert(0); + test(as_bar(bar(123.456)), 123.456); } void test_as_psi(void) { - + test(as_psi(psi(123.456)), 123.456); } -- cgit v1.2.3