mirror of
https://github.com/logos-messaging/chat_proto.git
synced 2026-01-04 05:53:10 +00:00
update tests
This commit is contained in:
parent
4bef110b70
commit
54ebf40320
@ -1,10 +1,10 @@
|
||||
import unittest
|
||||
|
||||
import chat_types
|
||||
import chat_proto
|
||||
|
||||
suite "Type Encoding Tests":
|
||||
test "HistoryEntry roundtrip":
|
||||
let x = chat_types.HistoryEntry(message_id: "12345", retrieval_hint: @[1'u8, 2, 3, 255])
|
||||
let x = chat_proto.HistoryEntry(message_id: "12345", retrieval_hint: @[1'u8, 2, 3, 255])
|
||||
let encoded = Protobuf.encode(x)
|
||||
let decoded = Protobuf.decode(encoded, HistoryEntry)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user