Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update the wscript for cityhash 1.0.1

  • Loading branch information...
commit 75a2e4e50bbca32b23fc3c297d9fe72a14f014fd 1 parent c31c973
Robin authored
Showing with 6 additions and 3 deletions.
  1. +3 −3 test.js
  2. +3 −0  wscript
6 test.js
View
@@ -17,6 +17,6 @@ assertEqual('2578220239953316063', cityhash.hash64('hello'), 'Hash64 for "hello"
assertEqual('15738392108067291633', cityhash.hash64('Hello', 87392039), 'Hash64 for "hello" with seed 87392039');
assertEqual('16267654833214665223', cityhash.hash64('Hello', 87392039, 1230234), 'Hash64 for "hello" with seed 87392039 and 1230234');
-assertEqual('11793567364161249803,13788582196852422552', cityhash.hash128('Hello'), 'Hash128 for "Hello"');
-assertEqual('14316895837725277120,16588029950142229031', cityhash.hash128('hello'), 'Hash128 for "hello"');
-assertEqual('9958601979657309277,6783721701693091028', cityhash.hash128('Hello', '12343,30293'), 'Hash128 for "Hello" with seed 12343,30293');
+assertEqual('9138004313465017137,12242971252332641544', cityhash.hash128('Hello'), 'Hash128 for "Hello"');
+assertEqual('13523890104784088047,17404193039403234796', cityhash.hash128('hello'), 'Hash128 for "hello"');
+assertEqual('15779891233746910938,15118107765960464233', cityhash.hash128('Hello', '12343,30293'), 'Hash128 for "Hello" with seed 12343,30293');
3  wscript
View
@@ -13,8 +13,11 @@ def configure(conf):
conf.env.append_value('CCFLAGS', ['-O3'])
def build(bld):
+ bld.exec_command('./configure', cwd='cityhash')
+
libcity = bld.new_task_gen("cxx", "shlib")
libcity.source = "cityhash/src/city.cc"
+ libcity.includes = ["cityhash", "cityhash/src"]
libcity.name = "libcity"
libcity.target = "libcity"
Please sign in to comment.
Something went wrong with that request. Please try again.