2
0
mirror of synced 2025-02-27 12:50:32 +00:00
nim-secp256k1/tests/test1.nim
2018-03-12 13:51:33 +02:00

8 lines
254 B
Nim

import secp256k1, unittest
suite "Test1":
test "Context should be created and destroyed":
let ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN or SECP256K1_CONTEXT_VERIFY)
check ctx != nil
secp256k1_context_destroy(ctx)