aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-02-28 17:21:25 -0500
committerSam Anthony <sam@samanthony.xyz>2025-02-28 17:21:25 -0500
commit555849edd9b7053e7197b88e150aa05479df0872 (patch)
treea4b60a4d6842d35ba869ac8586d9d1b769d1784d
parentcfe3bdba26ef24830acfe33e5ff424def9cb37b6 (diff)
downloadvolute-555849edd9b7053e7197b88e150aa05479df0872.zip
failing pressure tests
-rw-r--r--Makefile2
-rw-r--r--test.c11
-rw-r--r--test.h11
-rw-r--r--test_pressure.c54
4 files changed, 77 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 485a08a..8dd85cc 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ SRC = main.c microui.c renderer.c widget.c ui.c unit.c engine.c
OBJ = ${SRC:.c=.o}
HDR = microui.h renderer.h widget.h ui.h unit.h engine.h
-TEST_SRC = test.c test_angular_speed.c test_volume.c unit.c
+TEST_SRC = test.c test_angular_speed.c test_pressure.c test_volume.c unit.c
TEST_OBJ = ${TEST_SRC:.c=.o}
volute: ${OBJ}
diff --git a/test.c b/test.c
index 0a0b4a9..fed69c7 100644
--- a/test.c
+++ b/test.c
@@ -9,6 +9,17 @@ main(void) {
test_as_deg_per_sec();
test_as_rpm();
+ test_pascal();
+ test_millibar();
+ test_kilopascal();
+ test_bar();
+ test_psi();
+ test_as_pascal();
+ test_as_millibar();
+ test_as_kilopascal();
+ test_as_bar();
+ test_as_psi();
+
test_cubic_centimetre();
test_litre();
test_cubic_metre();
diff --git a/test.h b/test.h
index 033a955..9cb9b8f 100644
--- a/test.h
+++ b/test.h
@@ -15,6 +15,17 @@ void test_as_rad_per_sec(void);
void test_as_deg_per_sec(void);
void test_as_rpm(void);
+void test_pascal(void);
+void test_millibar(void);
+void test_kilopascal(void);
+void test_bar(void);
+void test_psi(void);
+void test_as_pascal(void);
+void test_as_millibar(void);
+void test_as_kilopascal(void);
+void test_as_bar(void);
+void test_as_psi(void);
+
void test_cubic_centimetre(void);
void test_litre(void);
void test_cubic_metre(void);
diff --git a/test_pressure.c b/test_pressure.c
new file mode 100644
index 0000000..a64bac9
--- /dev/null
+++ b/test_pressure.c
@@ -0,0 +1,54 @@
+#include <assert.h>
+#include <stdio.h>
+
+#include "test.h"
+
+void
+test_pascal(void) {
+ assert(0);
+}
+
+void
+test_millibar(void) {
+ assert(0);
+}
+
+void
+test_kilopascal(void) {
+ assert(0);
+}
+
+void
+test_bar(void) {
+ assert(0);
+}
+
+void
+test_psi(void) {
+ assert(0);
+}
+
+void
+test_as_pascal(void) {
+ assert(0);
+}
+
+void
+test_as_millibar(void) {
+ assert(0);
+}
+
+void
+test_as_kilopascal(void) {
+ assert(0);
+}
+
+void
+test_as_bar(void) {
+ assert(0);
+}
+
+void
+test_as_psi(void) {
+
+}