mirror of
https://github.com/codex-storage/nim-json-rpc.git
synced 2025-02-20 15:08:06 +00:00
setup nimble test
This commit is contained in:
parent
9ebf3990fd
commit
12d45a7e08
15
.gitignore
vendored
15
.gitignore
vendored
@ -1 +1,16 @@
|
||||
# Ignore all files without extensions (unix executable files)
|
||||
*
|
||||
!*.*
|
||||
!*/
|
||||
|
||||
# Ignore all binary outputs
|
||||
*.so
|
||||
*.dylib
|
||||
*.a
|
||||
*.la
|
||||
*.exe
|
||||
*.dll
|
||||
|
||||
# Ignore the nimcache folders
|
||||
nimcache/
|
||||
|
||||
|
@ -6,4 +6,15 @@ license = "Apache License 2.0"
|
||||
srcDir = "src"
|
||||
|
||||
### Dependencies
|
||||
requires "nim >= 0.17.3"
|
||||
requires "nim >= 0.17.3",
|
||||
"nimcrypto"
|
||||
|
||||
proc configForTests() =
|
||||
--hints: off
|
||||
--debuginfo
|
||||
--path: "."
|
||||
--run
|
||||
|
||||
task test, "run tests":
|
||||
configForTests()
|
||||
setCommand "c", "tests/all.nim"
|
||||
|
3
tests/all.nim
Normal file
3
tests/all.nim
Normal file
@ -0,0 +1,3 @@
|
||||
import
|
||||
testutils, testserverclient
|
||||
|
@ -1,4 +1,4 @@
|
||||
import strutils, ../src/server/private/transportutils, unittest
|
||||
import strutils, eth-rpc/server/private/transportutils, unittest
|
||||
|
||||
suite "Encoding":
|
||||
test "Encode quantity":
|
||||
@ -13,4 +13,3 @@ suite "Encoding":
|
||||
for i, b in bytePairs(0x07_06_05_04_03_02_01_00'u64):
|
||||
check b == i.byte
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user