aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Lubbers2016-08-28 17:41:29 +0200
committerMart Lubbers2016-08-28 17:41:29 +0200
commit0dd9c013078286896824a2a17624c6e79f1e5d36 (patch)
tree196b19a2252cd53861fafb1810aa5572a86cb906
parentlinux kernel coding style, fix deprecated libraries (diff)
tabs>spacE'
-rw-r--r--example.c16
-rw-r--r--minctest.h12
2 files changed, 14 insertions, 14 deletions
diff --git a/example.c b/example.c
index 9fcc46c..170b200 100644
--- a/example.c
+++ b/example.c
@@ -20,15 +20,15 @@
#include "minctest.h"
int main(void) {
- struct tester *tester = test_initialize();
- tester->show_pass = false;
+ struct tester *tester = test_initialize();
+ tester->show_pass = false;
- test_true(tester, 1 == 1, "1 = 1");
- test_true(tester, 42 == 6 * 7, "42 = 6*7");
- test_true(tester, !NULL, "NULL is false");
- test_true(tester, -10 > 10, "Negative is greater than positive");
+ test_true(tester, 1 == 1, "1 = 1");
+ test_true(tester, 42 == 6 * 7, "42 = 6*7");
+ test_true(tester, !NULL, "NULL is false");
+ test_true(tester, -10 > 10, "Negative is greater than positive");
- test_wrapup(tester);
- test_exit(tester);
+ test_wrapup(tester);
+ test_exit(tester);
}
diff --git a/minctest.h b/minctest.h
index 0170480..071a5af 100644
--- a/minctest.h
+++ b/minctest.h
@@ -23,12 +23,12 @@
#include <sys/time.h>
struct tester {
- uint16_t passed; // Number of passed tests
- uint16_t failed; // Number of failed tests
- bool show_pass; // Whether or not to print a message when a test passes
- struct timeval start_last_test; // Time last test was started
- struct timeval created; // Time this was created
- __suseconds_t used; // usecs used for tests
+ uint16_t passed; // Number of passed tests
+ uint16_t failed; // Number of failed tests
+ bool show_pass; // Whether or not to print a message when a test passes
+ struct timeval start_last_test; // Time last test was started
+ struct timeval created; // Time this was created
+ __suseconds_t used; // usecs used for tests
};
/**