Skip to content

Commit

Permalink
Update to Nim 2.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
2-towns committed Jan 7, 2025
1 parent 1ecad68 commit 7bdbd87
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# If NIM_COMMIT is set to "nimbusbuild", this will use the
# version pinned by nimbus-build-system.
#PINNED_NIM_VERSION := 38640664088251bbc88917b4bacfd86ec53014b8 # 1.6.21
PINNED_NIM_VERSION := v2.0.12
PINNED_NIM_VERSION := v2.0.14
ifeq ($(NIM_COMMIT),)
NIM_COMMIT := $(PINNED_NIM_VERSION)
else ifeq ($(NIM_COMMIT),pinned)
Expand Down
9 changes: 6 additions & 3 deletions tests/codex/testasyncheapqueue.nim
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ asyncchecksuite "Asynchronous Tests":

test "Test update":
var heap = newAsyncHeapQueue[Task](5)
let data = [("a", 4), ("b", 3), ("c", 2)]

for item in [("a", 4), ("b", 3), ("c", 2)]:
for item in data:
check heap.pushNoWait(item).isOk

check heap[0] == (name: "c", priority: 2)
Expand All @@ -173,8 +174,9 @@ asyncchecksuite "Asynchronous Tests":

test "Test pushOrUpdate - update":
var heap = newAsyncHeapQueue[Task](3)
let data = [("a", 4), ("b", 3), ("c", 2)]

for item in [("a", 4), ("b", 3), ("c", 2)]:
for item in data:
check heap.pushNoWait(item).isOk

check heap[0] == (name: "c", priority: 2)
Expand All @@ -183,8 +185,9 @@ asyncchecksuite "Asynchronous Tests":

test "Test pushOrUpdate - push":
var heap = newAsyncHeapQueue[Task](2)
let data = [("a", 4), ("b", 3)]

for item in [("a", 4), ("b", 3)]:
for item in data:
check heap.pushNoWait(item).isOk

check heap[0] == ("b", 3) # sanity check for order
Expand Down
2 changes: 1 addition & 1 deletion vendor/nim-codex-dht
2 changes: 1 addition & 1 deletion vendor/nim-contract-abi
2 changes: 1 addition & 1 deletion vendor/nim-datastore
2 changes: 1 addition & 1 deletion vendor/nim-ethers
2 changes: 1 addition & 1 deletion vendor/nim-poseidon2
2 changes: 1 addition & 1 deletion vendor/nimbus-build-system

0 comments on commit 7bdbd87

Please sign in to comment.