Fix frameworkVersionFor for flutter doctor and usage (#54217)
This commit is contained in:
committed by
GitHub
parent
f8784e72a9
commit
19c8948e61
@@ -23,9 +23,9 @@ void main() {
|
||||
const List<String> valid_versions = <String>[
|
||||
'1.2.3',
|
||||
'12.34.56',
|
||||
'1.2.3-pre.1',
|
||||
'1.2.3+hotfix.1',
|
||||
'1.2.3+hotfix.12-pre.12',
|
||||
'1.2.3.pre.1',
|
||||
'1.2.3-4.5.pre',
|
||||
'1.2.3-5.0.pre.12',
|
||||
];
|
||||
for (final String version in valid_versions) {
|
||||
when(file.readAsString()).thenAnswer((Invocation invocation) => Future<String>.value(version));
|
||||
@@ -41,8 +41,8 @@ void main() {
|
||||
const List<String> invalid_versions = <String>[
|
||||
'1.2.3.4',
|
||||
'1.2.3.',
|
||||
'1.2-pre.1',
|
||||
'1.2.3-pre',
|
||||
'1.2.pre.1',
|
||||
'1.2.3-pre.1',
|
||||
'1.2.3-pre.1+hotfix.1',
|
||||
' 1.2.3',
|
||||
'1.2.3-hotfix.1',
|
||||
|
||||
Reference in New Issue
Block a user