From 16d17ff792a35ad4d39ef0ce5aa15c55814ddc07 Mon Sep 17 00:00:00 2001 From: Emma Heath Date: Tue, 14 Jan 2014 14:18:47 +1300 Subject: [PATCH 2/2] Bug:11540 increasing coverage of Charset.pm To test 1. run prove t/Charset.t 2. apply patch 3. run prove t/Charset.t notice more tests are run --- t/Charset.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/t/Charset.t b/t/Charset.t index 7de3414..5d4fcea 100755 --- a/t/Charset.t +++ b/t/Charset.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 8; BEGIN { use_ok('C4::Charset'); } @@ -18,3 +18,8 @@ ok(!utf8::is_utf8($octets), "verify that IsStringUTF8ish does not magically turn $octets = "a\xc2" . "c"; ok(!IsStringUTF8ish($octets), "verify octets are not valid UTF-8"); + +ok(!SetUTF8Flag(), 'Testing SetUTF8Flag' ); + + + -- 1.7.9.5