diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/permut2.exp | 60 | ||||
-rw-r--r-- | tests/permut3.exp | 60 | ||||
-rw-r--r-- | tests/permutc2.exp | 60 |
3 files changed, 90 insertions, 90 deletions
diff --git a/tests/permut2.exp b/tests/permut2.exp index d5d710f..40149ba 100644 --- a/tests/permut2.exp +++ b/tests/permut2.exp @@ -33,8 +33,8 @@ error "gperf generated tables don't work with this execution character set. Plea #define TOTAL_KEYWORDS 4 #define MIN_WORD_LENGTH 2 #define MAX_WORD_LENGTH 2 -#define MIN_HASH_VALUE 2 -#define MAX_HASH_VALUE 5 +#define MIN_HASH_VALUE 0 +#define MAX_HASH_VALUE 3 /* maximum key range = 4, duplicates = 0 */ #ifdef __GNUC__ @@ -44,6 +44,7 @@ __inline inline #endif #endif +/*ARGSUSED*/ static unsigned int hash (str, len) register const char *str; @@ -51,34 +52,34 @@ hash (str, len) { static unsigned char asso_values[] = { - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 0, 1, 0, 3, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 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, 4, 4, + 4, 4, 4, 4, 4, 4, 4 }; - return len + asso_values[(unsigned char)str[1]+1] + asso_values[(unsigned char)str[0]]; + return asso_values[(unsigned char)str[1]+1] + asso_values[(unsigned char)str[0]]; } #ifdef __GNUC__ @@ -94,7 +95,6 @@ in_word_set (str, len) { static const char * wordlist[] = { - "", "", "xy", "zx", "yx", diff --git a/tests/permut3.exp b/tests/permut3.exp index 94d0b1d..51045cf 100644 --- a/tests/permut3.exp +++ b/tests/permut3.exp @@ -33,8 +33,8 @@ error "gperf generated tables don't work with this execution character set. Plea #define TOTAL_KEYWORDS 4 #define MIN_WORD_LENGTH 3 #define MAX_WORD_LENGTH 3 -#define MIN_HASH_VALUE 3 -#define MAX_HASH_VALUE 6 +#define MIN_HASH_VALUE 0 +#define MAX_HASH_VALUE 3 /* maximum key range = 4, duplicates = 0 */ #ifdef __GNUC__ @@ -44,6 +44,7 @@ __inline inline #endif #endif +/*ARGSUSED*/ static unsigned int hash (str, len) register const char *str; @@ -51,34 +52,34 @@ hash (str, len) { static unsigned char asso_values[] = { - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 2, 0, 1, - 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7,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4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4 }; - return len + asso_values[(unsigned char)str[1]+1] + asso_values[(unsigned char)str[0]]; + return asso_values[(unsigned char)str[1]+1] + asso_values[(unsigned char)str[0]]; } #ifdef __GNUC__ @@ -94,7 +95,6 @@ in_word_set (str, len) { static const char * wordlist[] = { - "", "", "", "bca", "cab", "acb", diff --git a/tests/permutc2.exp b/tests/permutc2.exp index 1fcdbbc..ea51805 100644 --- a/tests/permutc2.exp +++ b/tests/permutc2.exp @@ -37,8 +37,8 @@ error "gperf generated tables don't work with this execution character set. Plea #define TOTAL_KEYWORDS 8 #define MIN_WORD_LENGTH 2 #define MAX_WORD_LENGTH 2 -#define MIN_HASH_VALUE 2 -#define MAX_HASH_VALUE 9 +#define MIN_HASH_VALUE 0 +#define MAX_HASH_VALUE 7 /* maximum key range = 8, duplicates = 0 */ #ifndef GPERF_DOWNCASE @@ -91,6 +91,7 @@ __inline inline #endif #endif +/*ARGSUSED*/ static unsigned int hash (str, len) register const char *str; @@ -98,34 +99,34 @@ hash (str, len) { static unsigned char asso_values[] = { - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10, 1,10,10, 3,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10, 3, 1, - 0, 7, 1, 0, 3,10,10, 1,10,10, - 3,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 3, 1, 0, 0, 1, 0, 2,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10,10, - 10,10,10,10,10,10,10,10,10 + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 1, 8, 8, 3, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 3, 1, + 0, 7, 1, 0, 3, 8, 8, 1, 8, 8, + 3, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 3, 1, 0, 0, 1, 0, 2, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 8 }; - return len + asso_values[(unsigned char)str[1]+3] + asso_values[(unsigned char)str[0]]; + return asso_values[(unsigned char)str[1]+3] + asso_values[(unsigned char)str[0]]; } #ifdef __GNUC__ @@ -141,7 +142,6 @@ in_word_set (str, len) { static const char * wordlist[] = { - "", "", "{w", "az", "ay", |