Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

update the wscript for cityhash 1.0.1

  • Loading branch information...
commit 75a2e4e50bbca32b23fc3c297d9fe72a14f014fd 1 parent c31c973
Robin authored

Showing 2 changed files with 6 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 test.js
  2. +3 0  wscript
6 test.js
@@ -17,6 +17,6 @@ assertEqual('2578220239953316063', cityhash.hash64('hello'), 'Hash64 for "hello"
17 17 assertEqual('15738392108067291633', cityhash.hash64('Hello', 87392039), 'Hash64 for "hello" with seed 87392039');
18 18 assertEqual('16267654833214665223', cityhash.hash64('Hello', 87392039, 1230234), 'Hash64 for "hello" with seed 87392039 and 1230234');
19 19
20   -assertEqual('11793567364161249803,13788582196852422552', cityhash.hash128('Hello'), 'Hash128 for "Hello"');
21   -assertEqual('14316895837725277120,16588029950142229031', cityhash.hash128('hello'), 'Hash128 for "hello"');
22   -assertEqual('9958601979657309277,6783721701693091028', cityhash.hash128('Hello', '12343,30293'), 'Hash128 for "Hello" with seed 12343,30293');
  20 +assertEqual('9138004313465017137,12242971252332641544', cityhash.hash128('Hello'), 'Hash128 for "Hello"');
  21 +assertEqual('13523890104784088047,17404193039403234796', cityhash.hash128('hello'), 'Hash128 for "hello"');
  22 +assertEqual('15779891233746910938,15118107765960464233', cityhash.hash128('Hello', '12343,30293'), 'Hash128 for "Hello" with seed 12343,30293');
3  wscript
@@ -13,8 +13,11 @@ def configure(conf):
13 13 conf.env.append_value('CCFLAGS', ['-O3'])
14 14
15 15 def build(bld):
  16 + bld.exec_command('./configure', cwd='cityhash')
  17 +
16 18 libcity = bld.new_task_gen("cxx", "shlib")
17 19 libcity.source = "cityhash/src/city.cc"
  20 + libcity.includes = ["cityhash", "cityhash/src"]
18 21 libcity.name = "libcity"
19 22 libcity.target = "libcity"
20 23

0 comments on commit 75a2e4e

Please sign in to comment.
Something went wrong with that request. Please try again.