Declare locals final where not reassigned (gallery) (#8571)

This commit is contained in:
Chris Bracken
2017-03-03 17:51:21 -08:00
committed by GitHub
parent aa07d14755
commit 96eea437b2
30 changed files with 73 additions and 73 deletions

View File

@@ -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');
});
}