You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
441 B
18 lines
441 B
5 years ago
|
|
||
|
import 'dart:io';
|
||
|
|
||
|
import 'package:kdbx/src/internal/byte_utils.dart';
|
||
|
import 'package:test/test.dart';
|
||
|
|
||
|
void main() {
|
||
|
group('WriteHelper', () {
|
||
|
test('writing bytes', () {
|
||
|
final bytesBuilder = BytesBuilder();
|
||
|
final writer = WriterHelper(bytesBuilder);
|
||
|
writer.writeUint32(1);
|
||
|
print('result: ' + ByteUtils.toHexList(writer.output.toBytes()));
|
||
|
expect(writer.output.toBytes(), hasLength(4));
|
||
|
});
|
||
|
});
|
||
|
}
|