Skip to content

Commit 326d1c0

Browse files
committed
remove hotfix after it got merged
1 parent c9755a4 commit 326d1c0

File tree

2 files changed

+27
-29
lines changed

2 files changed

+27
-29
lines changed

testament/important_packages.nim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ pkg "gnuplot"
4242
pkg "hts", "nim c -o:htss src/hts.nim"
4343
pkg "illwill", "nimble examples"
4444
pkg "inim"
45-
pkg "itertools", "git checkout pr_fix_for_new_hashes2 && nim doc src/itertools.nim".toCommand, url = "https://github.com/timotheecour/itertools"
46-
# pkg "itertools", "nim doc src/itertools.nim"
45+
pkg "itertools", "nim doc src/itertools.nim"
4746
pkg "iterutils"
4847
pkg "jstin"
4948
pkg "karax", "nim c -r tests/tester.nim"

tests/vm/tcompiletimetable.nim

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -57,30 +57,29 @@ for i in 0..high(xzzzz): echo xzzzz[i]
5757

5858

5959
import std/hashes
60-
block:
61-
# check CT vs RT produces same results for Table
62-
template callFun(T) =
63-
block:
64-
proc fun(): string =
65-
var t: Table[T, string]
66-
let n = 10
67-
for i in 0.int64..<n.int64:
68-
let i2 = when T.sizeof == type(i).sizeof: i else: i.int32
69-
let k = cast[T](i2)
70-
# cast intentional for regression testing,
71-
# producing small values
72-
doAssert k notin t
73-
t[k] = $(i, k)
74-
doAssert k in t
75-
$t
76-
const s1 = fun()
77-
let s2 = fun()
78-
# echo s1 # for debugging
79-
doAssert s1 == s2
80-
doAssert s1 == s2
81-
doAssert hash(0.0) == hash(-0.0)
82-
callFun(float)
83-
callFun(float32)
84-
callFun(int64)
85-
callFun(uint32)
86-
callFun(char)
60+
# check CT vs RT produces same results for Table
61+
template callFun(T) =
62+
block:
63+
proc fun(): string =
64+
var t: Table[T, string]
65+
let n = 10
66+
for i in 0.int64..<n.int64:
67+
let i2 = when T.sizeof == type(i).sizeof: i else: i.int32
68+
let k = cast[T](i2)
69+
# cast intentional for regression testing,
70+
# producing small values
71+
doAssert k notin t
72+
t[k] = $(i, k)
73+
doAssert k in t
74+
$t
75+
const s1 = fun()
76+
let s2 = fun()
77+
# echo s1 # for debugging
78+
doAssert s1 == s2
79+
doAssert s1 == s2
80+
doAssert hash(0.0) == hash(-0.0)
81+
callFun(float)
82+
callFun(float32)
83+
callFun(int64)
84+
callFun(uint32)
85+
callFun(char)

0 commit comments

Comments
 (0)