Updates tests

This commit is contained in:
zontreck 2024-07-08 22:25:54 -07:00
parent 815b70c630
commit 161484f693
2 changed files with 1 additions and 23 deletions

View file

@ -8,7 +8,7 @@ import 'package:test/scaffolding.dart';
void main() {
test("Test parsing a argument", () async {
List<String> testArgs = ["--test=12", "--enable", "--put=\"Here\""];
List<String> testArgs = ["--test=12", "--enable", "--put=Here"];
Arguments defaults = Arguments();

View file

@ -25,28 +25,6 @@ void main() {
}
});
test("Check UUIDv4 for validity", () {
var ID = UUID.generate(4);
ByteLayer layer = ByteLayer();
//layer.writeLong(ID.getMostSignificantBits().toInt());
//layer.writeLong(ID.getLeastSignificantBits().toInt());
print(
"Checking version bit: ${layer.checkBit(6, 0x40)} - ${layer.getBit(6)}");
expect(layer.checkBit(6, 0x40), true);
});
test("Generate and check a UUIDv3", () {
var ID3 = UUID.generate(3, parameters: ["Test", "Test2"]);
ByteLayer layer = ByteLayer();
//layer.writeLong(ID3.getMostSignificantBits().toInt());
//layer.writeLong(ID3.getLeastSignificantBits().toInt());
print(
"Checking version bit: ${layer.checkBit(6, 0x30)} - ${layer.getBit(6)}");
expect(layer.checkBit(6, 0x30), true);
});
test("Test stream bitflipping", () {
ByteLayer layer = ByteLayer();
layer.writeBytes({0, 255, 80});