diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-02-28 18:03:06 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-02-28 18:03:06 -0500 |
| commit | bc1d5a436f81561072d7f4f0f0ecb1fa85718c7f (patch) | |
| tree | 4b5a3a0a10934ce9f85dcae54d80ab91a89ede12 /test_pressure.c | |
| parent | 555849edd9b7053e7197b88e150aa05479df0872 (diff) | |
| download | volute-bc1d5a436f81561072d7f4f0f0ecb1fa85718c7f.zip | |
pressure conversion functions
Diffstat (limited to 'test_pressure.c')
| -rw-r--r-- | test_pressure.c | 21 |
1 files changed, 11 insertions, 10 deletions
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 <stdio.h> #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); } |