From 9b20563af50a1188e42d9b9ae215fed9eb72d243 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 14 Jan 2007 21:38:54 +0000 Subject: [PATCH] r56243@Arsia: avar | 2007-01-14 21:38:37 +0000 * Test for valid title characters --- t/inc/Title.t | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 t/inc/Title.t diff --git a/t/inc/Title.t b/t/inc/Title.t new file mode 100644 index 0000000000..5115719778 --- /dev/null +++ b/t/inc/Title.t @@ -0,0 +1,33 @@ +#!/usr/bin/env php +|", $chr ) !== false || preg_match( "/[\\x00-\\x1f\\x7f]/", $chr ) ) { + unlike( $chr, "/[$titlechars]/", "chr($num) = $chr is not a valid titlechar" ); + } else { + like( $chr, "/[$titlechars]/", "chr($num) = $chr is a valid titlechar" ); + } +} + + +?> -- 2.20.1