Skip to content

Commit

Permalink
Fixed a problem in test-char-cont.cc.
Browse files Browse the repository at this point in the history
  • Loading branch information
susumu.yata committed Oct 26, 2010
1 parent 8bd72a5 commit 77fef61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test-char-cond.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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'))));
}
Expand Down

0 comments on commit 77fef61

Please sign in to comment.