commit | 725afd8b559c0726433bdf69361618966e769170 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Sat Feb 01 11:54:28 2014 +0100 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Sat Feb 01 11:54:28 2014 +0100 |
tree | fb31a235d0fed3ecb1ecd377c642194b767fe5df | |
parent | b05db2a6aac94143a7f22bee7dec942fa0b5a5a0 [diff] [blame] |
Fix the 'error' test suite
diff --git a/tests/suites/main_test.function b/tests/suites/main_test.function index dc80135..1c50809 100644 --- a/tests/suites/main_test.function +++ b/tests/suites/main_test.function
@@ -61,7 +61,9 @@ continue; } - if( str[i] < '0' || str[i] > '9' ) + if( ! ( ( str[i] >= '0' && str[i] <= '9' ) || + ( hex && ( ( str[i] >= 'a' && str[i] <= 'f' ) || + ( str[i] >= 'A' && str[i] <= 'F' ) ) ) ) ) { digits = 0; break;