We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6317600 commit c6e1b27Copy full SHA for c6e1b27
test/extensions_test.dart
@@ -6,16 +6,14 @@ import 'package:flutter_test/flutter_test.dart';
6
void main() {
7
group("Concept2DateExtension - ", () {
8
test('converting a time from bytes', () {
9
- // TODO: fixme, my endianness is backwards
10
- final bytes = Uint8List.fromList([42, 156, 1, 14]); //date 10908
+ final bytes = Uint8List.fromList([156, 42, 1, 14]); //date 10908
11
expect(
12
Concept2DateExtension.fromBytes(bytes), DateTime(2021, 12, 9, 14, 1));
13
// expect(CsafeIntExtension.fromBytes(bytes, Endian.little), 2147483648);
14
});
15
16
test('converting another time from bytes', () {
17
18
- final bytes = Uint8List.fromList([45, 241, 1, 14]);
+ final bytes = Uint8List.fromList([241, 45, 1, 14]);
19
20
Concept2DateExtension.fromBytes(bytes), DateTime(2022, 1, 31, 14, 1));
21
0 commit comments