Remove dead compareIosVersions function (#146298)
Dead all the back in #10780
This commit is contained in:
@@ -140,28 +140,6 @@ void main() {
|
||||
});
|
||||
});
|
||||
|
||||
group('compareIosVersions', () {
|
||||
testWithoutContext('compares correctly', () {
|
||||
// This list must be sorted in ascending preference order
|
||||
final List<String> testList = <String>[
|
||||
'8', '8.0', '8.1', '8.2',
|
||||
'9', '9.0', '9.1', '9.2',
|
||||
'10', '10.0', '10.1',
|
||||
];
|
||||
|
||||
for (int i = 0; i < testList.length; i++) {
|
||||
expect(compareIosVersions(testList[i], testList[i]), 0);
|
||||
}
|
||||
|
||||
for (int i = 0; i < testList.length - 1; i++) {
|
||||
for (int j = i + 1; j < testList.length; j++) {
|
||||
expect(compareIosVersions(testList[i], testList[j]), lessThan(0));
|
||||
expect(compareIosVersions(testList[j], testList[i]), greaterThan(0));
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
group('sdkMajorVersion', () {
|
||||
late FakeSimControl simControl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user