Add unit test

This commit is contained in:
Mark Spanbroek 2020-09-08 08:40:26 +02:00 committed by markspanbroek
parent b1f9dd4ab1
commit 211c6fb17c
2 changed files with 9 additions and 0 deletions

1
tests/nim.cfg Normal file
View File

@ -0,0 +1 @@
--path=".."

8
tests/testNgtcp2.nim Normal file
View File

@ -0,0 +1,8 @@
import unittest
import ngtcp2
test "default settings":
var settings: ngtcp2_settings
ngtcp2_settings_default(addr settings)
check settings.transport_params.max_udp_payload_size > 0
check settings.transport_params.active_connection_id_limit > 0