shrub/tests/sys/vane/alef.hoon

22 lines
383 B
Plaintext
Raw Normal View History

2019-05-25 05:03:33 +03:00
/+ *test
/= alef /: /===/sys/vane/alef
/!noun/
::
|%
++ test-packet-encoding ^- tang
::
=/ =packet:alef
:* [sndr=~nec rcvr=~doznec-doznec]
encrypted=%.n
origin=~
content=[12 13]
==
::
=/ encoded (encode-packet:alef packet)
=/ decoded (decode-packet:alef encoded)
::
%+ expect-eq
!> packet
!> decoded
--