From cd73fd40ffc04a65abe0260fe82949d7c354e282 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sun, 2 Mar 2025 12:18:34 -0500 Subject: add inHG pressure unit --- test_pressure.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test_pressure.c') diff --git a/test_pressure.c b/test_pressure.c index f04a1bc..e805858 100644 --- a/test_pressure.c +++ b/test_pressure.c @@ -29,6 +29,11 @@ test_psi(void) { test(psi(123.456), 851199.15638539323); } +void +test_inch_mercury(void) { + test(inch_mercury(123.456), 418070.040384); +} + void test_as_pascal(void) { test(as_pascal(pascal(123.456)), 123.456); @@ -53,3 +58,8 @@ void test_as_psi(void) { test(as_psi(psi(123.456)), 123.456); } + +void +test_as_inch_mercury(void) { + test(as_inch_mercury(inch_mercury(123.456)), 123.456); +} -- cgit v1.2.3