summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/sratom_test.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/sratom_test.c b/tests/sratom_test.c
index 1738e3d..bd54326 100644
--- a/tests/sratom_test.c
+++ b/tests/sratom_test.c
@@ -383,13 +383,10 @@ test(SerdEnv* env, bool top_level, bool pretty_numbers)
static int
test_env(SerdEnv* env)
{
- if (test(env, false, false)) {
- return 1;
- } else if (test(env, true, false)) {
- return 1;
- } else if (test(env, false, true)) {
- return 1;
- } else if (test(env, true, true)) {
+ if (test(env, false, false) || //
+ test(env, true, false) || //
+ test(env, false, true) || //
+ test(env, true, true)) {
return 1;
}