+
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions test/xid_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,21 @@ void main() {
true,
);
});

final xidStructure = Xid();
test('Binary data length test', () {
// Sample binary data
List<int> binaryData = xidStructure.toBytes();

// Convert binary data to string
String binaryString = xidStructure.toString();

// Check if binary data is 12 bytes in length
expect(binaryData.length, 12);

// Check if string representation of binary data is 20 characters in length
expect(binaryString.length, 20);
});
});
}

Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载