Skip to content

Commit 8fed1a7

Browse files
committed
Updated unit tests
1 parent 46678de commit 8fed1a7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Tests/TLVCodingTests/TLVCodingTests.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ final class TLVCodingTests: XCTestCase {
2424

2525
func testCodable() {
2626

27+
compare(
28+
[
29+
UInt8(0xAA),
30+
UInt8(0xBB),
31+
UInt8(0xCC),
32+
],
33+
Data([
34+
0,1,0xAA,
35+
1,1,0xBB,
36+
2,1,0xCC
37+
])
38+
)
39+
2740
compare(Person(gender: .male, name: "Coleman"),
2841
Data([0, 1, 0, 1, 7, 67, 111, 108, 101, 109, 97, 110]))
2942

0 commit comments

Comments
 (0)