diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-02-28 15:03:42 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-02-28 15:03:42 -0500 |
| commit | 24f0677b76ba5be7114031f2d6d6746dcb64ce55 (patch) | |
| tree | 8db568429667f9b6637916267a8ee484e87020a1 /test_angular_speed.c | |
| parent | 4835ce7a09dc9012539c33b602e581057d945151 (diff) | |
| download | volute-24f0677b76ba5be7114031f2d6d6746dcb64ce55.zip | |
refactor tests
Diffstat (limited to 'test_angular_speed.c')
| -rw-r--r-- | test_angular_speed.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test_angular_speed.c b/test_angular_speed.c new file mode 100644 index 0000000..41f9ab6 --- /dev/null +++ b/test_angular_speed.c @@ -0,0 +1,35 @@ +#include <assert.h> +#include <stdio.h> + +#include "test.h" +#include "unit.h" + +void +test_rad_per_sec(void) { + test(rad_per_sec(123.456), 123.456); +} + +void +test_deg_per_sec(void) { + test(deg_per_sec(123.456), 2.15471367888); +} + +void +test_rpm(void) { + test(rpm(123.456), 12.92828207328); +} + +void +test_as_rad_per_sec(void) { + test(as_rad_per_sec(rad_per_sec(123.456)), 123.456); +} + +void +test_as_deg_per_sec(void) { + test(as_deg_per_sec(deg_per_sec(123.456)), 123.456); +} + +void +test_as_rpm(void) { + test(as_rpm(rpm(123.456)), 123.456); +} |