Navaron Bracke

fix test expectations; fix missing comma

... ... @@ -14,7 +14,9 @@ enum EncryptionType {
const EncryptionType(this.rawValue);
@Deprecated('EncryptionType.none is deprecated. Use EncryptionType.unknown instead.')
@Deprecated(
'EncryptionType.none is deprecated. Use EncryptionType.unknown instead.',
)
static const EncryptionType none = EncryptionType.unknown;
factory EncryptionType.fromRawValue(int value) {
... ...
... ... @@ -21,8 +21,8 @@ void main() {
const int negative = -1;
const int outOfRange = 3;
expect(() => AddressType.fromRawValue(negative), AddressType.unknown);
expect(() => AddressType.fromRawValue(outOfRange), AddressType.unknown);
expect(AddressType.fromRawValue(negative), AddressType.unknown);
expect(AddressType.fromRawValue(outOfRange), AddressType.unknown);
});
test('can be converted to raw value', () {
... ...
... ... @@ -31,8 +31,8 @@ void main() {
const int negative = -1;
const int outOfRange = 13;
expect(() => BarcodeType.fromRawValue(negative), BarcodeType.unknown);
expect(() => BarcodeType.fromRawValue(outOfRange), BarcodeType.unknown);
expect(BarcodeType.fromRawValue(negative), BarcodeType.unknown);
expect(BarcodeType.fromRawValue(outOfRange), BarcodeType.unknown);
});
test('can be converted to raw value', () {
... ...
... ... @@ -21,8 +21,8 @@ void main() {
const int negative = -1;
const int outOfRange = 3;
expect(() => EmailType.fromRawValue(negative), EmailType.unknown);
expect(() => EmailType.fromRawValue(outOfRange), EmailType.unknown);
expect(EmailType.fromRawValue(negative), EmailType.unknown);
expect(EmailType.fromRawValue(outOfRange), EmailType.unknown);
});
test('can be converted to raw value', () {
... ...
... ... @@ -22,11 +22,8 @@ void main() {
const int negative = -1;
const int outOfRange = 4;
expect(() => EncryptionType.fromRawValue(negative), EncryptionType.unknown);
expect(
() => EncryptionType.fromRawValue(outOfRange),
EncryptionType.unknown,
);
expect(EncryptionType.fromRawValue(negative), EncryptionType.unknown);
expect(EncryptionType.fromRawValue(outOfRange), EncryptionType.unknown);
});
test('can be converted to raw value', () {
... ...
... ... @@ -23,8 +23,8 @@ void main() {
const int negative = -1;
const int outOfRange = 5;
expect(() => PhoneType.fromRawValue(negative), PhoneType.unknown);
expect(() => PhoneType.fromRawValue(outOfRange), PhoneType.unknown);
expect(PhoneType.fromRawValue(negative), PhoneType.unknown);
expect(PhoneType.fromRawValue(outOfRange), PhoneType.unknown);
});
test('can be converted to raw value', () {
... ...