tests: Use public-code and private-code instead of code

The wayland-scanner sub-commands private-code and public-code replaced
the old code command, so lets use those in the tests instead.

This requires at least wayland-scanner 1.15.0.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
diff --git a/tests/scan.sh b/tests/scan.sh
index 15dd39f..0b1ff00 100755
--- a/tests/scan.sh
+++ b/tests/scan.sh
@@ -7,4 +7,5 @@
 
 $SCANNER client-header $1 /dev/null
 $SCANNER server-header $1 /dev/null
-$SCANNER code $1 /dev/null
+$SCANNER private-code $1 /dev/null
+$SCANNER public-code $1 /dev/null