Updates tests
This commit is contained in:
parent
815b70c630
commit
161484f693
2 changed files with 1 additions and 23 deletions
|
@ -8,7 +8,7 @@ import 'package:test/scaffolding.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
test("Test parsing a argument", () async {
|
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();
|
Arguments defaults = Arguments();
|
||||||
|
|
||||||
|
|
|
@ -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", () {
|
test("Test stream bitflipping", () {
|
||||||
ByteLayer layer = ByteLayer();
|
ByteLayer layer = ByteLayer();
|
||||||
layer.writeBytes({0, 255, 80});
|
layer.writeBytes({0, 255, 80});
|
||||||
|
|
Loading…
Reference in a new issue