diff --git a/tests/nim.cfg b/tests/nim.cfg new file mode 100644 index 0000000..8ea4922 --- /dev/null +++ b/tests/nim.cfg @@ -0,0 +1 @@ +--path=".." diff --git a/tests/testNgtcp2.nim b/tests/testNgtcp2.nim new file mode 100644 index 0000000..c1f37a8 --- /dev/null +++ b/tests/testNgtcp2.nim @@ -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