chore: fix some comments (#145397)

fix some comments
This commit is contained in:
goodmost
2024-03-20 01:00:24 +08:00
committed by GitHub
parent 28498fe18a
commit 3236957f02
12 changed files with 19 additions and 19 deletions

View File

@@ -2522,10 +2522,10 @@ NumberFormat.decimalPatternDigits(
testWithoutContext('dollar signs are escaped properly when there is a select clause', () {
const String dollarSignWithSelect = r'''
{
"dollarSignWithSelect": "$nice_bug\nHello Bug! Manifistation #1 {selectPlaceholder, select, case{message} other{messageOther}}"
"dollarSignWithSelect": "$nice_bug\nHello Bug! Manifestation #1 {selectPlaceholder, select, case{message} other{messageOther}}"
}''';
setupLocalizations(<String, String>{ 'en': dollarSignWithSelect });
expect(getGeneratedFileContent(locale: 'en'), contains(r'\$nice_bug\nHello Bug! Manifistation #1 $_temp0'));
expect(getGeneratedFileContent(locale: 'en'), contains(r'\$nice_bug\nHello Bug! Manifestation #1 $_temp0'));
});
testWithoutContext('can generate method with named parameter', () {

View File

@@ -275,13 +275,13 @@ void main() {
'open',
<String>[
'-a',
'/non_existant_path',
'/non_existent_path',
'-g',
'-j',
'-F',
xcworkspace.path,
],
'The application /non_existant_path cannot be opened for an unexpected reason',
'The application /non_existent_path cannot be opened for an unexpected reason',
),
),
]);
@@ -304,7 +304,7 @@ void main() {
expect(
logger.errorText,
contains('The application /non_existant_path cannot be opened for an unexpected reason'),
contains('The application /non_existent_path cannot be opened for an unexpected reason'),
);
expect(fakeProcessManager, hasNoRemainingExpectations);
expect(status, false);
@@ -807,7 +807,7 @@ void main() {
expect(status, isTrue);
});
testWithoutContext('prints error message when deleting temporary directory that is nonexistant', () async {
testWithoutContext('prints error message when deleting temporary directory that is nonexistent', () async {
final Xcode xcode = setupXcode(
fakeProcessManager: fakeProcessManager,
fileSystem: fileSystem,
@@ -914,7 +914,7 @@ void main() {
expect(exitStatus, isTrue);
});
testWithoutContext('does not crash when deleting temporary directory that is nonexistant when force exiting', () async {
testWithoutContext('does not crash when deleting temporary directory that is nonexistent when force exiting', () async {
final Xcode xcode = setupXcode(
fakeProcessManager: FakeProcessManager.any(),
fileSystem: fileSystem,

View File

@@ -38,7 +38,7 @@ void main() {
);
});
test('framework name name confilicts', () {
test('framework name conflicts', () {
final Set<String> alreadyTakenNames = <String>{};
expect(
frameworkUri('libfoo.dylib', alreadyTakenNames),