diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-09 16:24:13 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-09 16:24:13 +0000 |
commit | 9a634a53f0d7135ef82e6888a89091db173c7f7f (patch) | |
tree | b424545f9ad05288f6d94048bea5fc48e90aeff0 /tests/warning.c | |
parent | 28de29088084e5f544b79760748ef28739b5c769 (diff) | |
download | dimension-9a634a53f0d7135ef82e6888a89091db173c7f7f.tar.xz |
Code formatting.
Diffstat (limited to 'tests/warning.c')
-rw-r--r-- | tests/warning.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/warning.c b/tests/warning.c index 9b8ba12..7b6aac3 100644 --- a/tests/warning.c +++ b/tests/warning.c @@ -25,18 +25,26 @@ int main() { - if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) return EXIT_FAILURE; + if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) { + return EXIT_FAILURE; + } dmnsn_set_resilience(DMNSN_SEVERITY_LOW); - if (dmnsn_get_resilience() != DMNSN_SEVERITY_LOW) return EXIT_FAILURE; + if (dmnsn_get_resilience() != DMNSN_SEVERITY_LOW) { + return EXIT_FAILURE; + } dmnsn_set_resilience(DMNSN_SEVERITY_MEDIUM); - if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) return EXIT_FAILURE; + if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) { + return EXIT_FAILURE; + } dmnsn_error(DMNSN_SEVERITY_LOW, "This warning is expected."); dmnsn_set_resilience(DMNSN_SEVERITY_HIGH); - if (dmnsn_get_resilience() != DMNSN_SEVERITY_HIGH) return EXIT_FAILURE; + if (dmnsn_get_resilience() != DMNSN_SEVERITY_HIGH) { + return EXIT_FAILURE; + } dmnsn_error(DMNSN_SEVERITY_LOW, "This warning is expected."); dmnsn_error(DMNSN_SEVERITY_MEDIUM, "This warning is expected."); |