aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_stub_hints.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_stub_hints.c')
-rw-r--r--test/test_stub_hints.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_stub_hints.c b/test/test_stub_hints.c
index 7720f0d..2dea844 100644
--- a/test/test_stub_hints.c
+++ b/test/test_stub_hints.c
@@ -49,6 +49,10 @@ main(void)
puglSetEventFunc(view, onEvent);
puglSetDefaultSize(view, 512, 512);
+ // Check invalid cases
+ assert(puglSetViewHint(view, (PuglViewHint)9999, 0) == PUGL_BAD_PARAMETER);
+ assert(puglGetViewHint(view, (PuglViewHint)9999) == PUGL_DONT_CARE);
+
// Set all relevant hints that support it to PUGL_DONT_CARE
assert(!puglSetViewHint(view, PUGL_RED_BITS, PUGL_DONT_CARE));
assert(!puglSetViewHint(view, PUGL_GREEN_BITS, PUGL_DONT_CARE));