Declare locals final where not reassigned (gallery) (#8571)
This commit is contained in:
@@ -11,12 +11,12 @@ import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
test('Flutter gallery example code parser test', () async {
|
||||
TestAssetBundle bundle = new TestAssetBundle();
|
||||
final TestAssetBundle bundle = new TestAssetBundle();
|
||||
|
||||
String codeSnippet0 = await getExampleCode('test_0', bundle);
|
||||
final String codeSnippet0 = await getExampleCode('test_0', bundle);
|
||||
expect(codeSnippet0, 'test 0 0\ntest 0 1');
|
||||
|
||||
String codeSnippet1 = await getExampleCode('test_1', bundle);
|
||||
final String codeSnippet1 = await getExampleCode('test_1', bundle);
|
||||
expect(codeSnippet1, 'test 1 0\ntest 1 1');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user