From eefdaed21807c73905419e341277785fe80fb824 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Thu, 25 Jun 2015 19:15:57 -0400 Subject: sort keys to try to eliminate data dependence on Ruby version --- data/data_generator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data') diff --git a/data/data_generator.rb b/data/data_generator.rb index 3d8c3b7..0fd25c0 100644 --- a/data/data_generator.rb +++ b/data/data_generator.rb @@ -313,8 +313,8 @@ $stdout << "};\n\n" $stdout << "const utf8proc_int32_t utf8proc_combinations[] = {\n " i = 0 -comb1st_indicies.keys.each_index do |a| - comb2nd_indicies.keys.each_index do |b| +comb1st_indicies.keys.sort.each_index do |a| + comb2nd_indicies.keys.sort.each_index do |b| i += 1 if i == 8 i = 0 -- cgit v1.2.3