Skip to content

Commit efd3ff2

Browse files
committed
✅ Add tests
1 parent 4f3f865 commit efd3ff2

File tree

1 file changed

+13
-0
lines changed
  • packages/agent_dart_base/test/candid

1 file changed

+13
-0
lines changed

packages/agent_dart_base/test/candid/idl.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,19 @@ void idlTest() {
275275
]),
276276
throwsA(isError<ArgumentError>()),
277277
);
278+
expect(
279+
IDL.encode(
280+
[
281+
IDL.Tuple([IDL.Text, IDL.Text])
282+
],
283+
[
284+
['a', 'b']
285+
],
286+
),
287+
Uint8List.fromList(
288+
[68, 73, 68, 76, 1, 108, 2, 0, 113, 1, 113, 1, 0, 1, 97, 1, 98],
289+
),
290+
);
278291
});
279292

280293
test('IDL encoding (arraybuffer)', () {

0 commit comments

Comments
 (0)