Skip to content

Commit 8b5f2da

Browse files
committed
Fix test integration
1 parent 75f2ad1 commit 8b5f2da

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎test_integration/src/assertions.dart‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'dart:typed_data';
2+
13
import 'package:cipherlib/codecs.dart';
24

35
bool bytesEq(List<int> a, List<int> b) {
@@ -9,7 +11,7 @@ bool bytesEq(List<int> a, List<int> b) {
911
}
1012

1113
void expectSameUtf8(List<int> got, String want) {
12-
final s = fromUtf8(got);
14+
final s = fromUtf8(Uint8List.fromList(got));
1315
if (s != want) {
1416
throw StateError('expected UTF-8 "$want", got "$s"');
1517
}

0 commit comments

Comments
 (0)