From 77fef61856e353a458b96a7226047a4fb7c36c95 Mon Sep 17 00:00:00 2001 From: "susumu.yata" Date: Tue, 26 Oct 2010 01:45:34 +0000 Subject: [PATCH] Fixed a problem in test-char-cont.cc. --- tests/test-char-cond.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-char-cond.cc b/tests/test-char-cond.cc index f28c5d9..11128ac 100644 --- a/tests/test-char-cond.cc +++ b/tests/test-char-cond.cc @@ -23,8 +23,8 @@ int main() { assert(cond_cstring(c) == ((c == '\0') || ((c >= 'A') && (c <= 'C')))); } - static const nwc_toolkit::CondTable cond_table( - nwc_toolkit::CharTable("-A-Z")); + static const nwc_toolkit::CharTable HYPHEN_AND_CAPITAL_LETTERS("-A-Z"); + static const nwc_toolkit::CondTable cond_table(HYPHEN_AND_CAPITAL_LETTERS); for (int c = 0; c < 256; ++c) { assert(cond_table(c) == ((c == '-') || ((c >= 'A') && (c <= 'Z')))); }