enable lint prefer_single_quotes (#12665)
This commit is contained in:
committed by
GitHub
parent
b07ea41954
commit
1fce14a31c
@@ -16,7 +16,7 @@ void main() {
|
||||
expression = expression.appendDigit(4);
|
||||
expression = expression.computeResult();
|
||||
expect(expression.state, equals(ExpressionState.Result));
|
||||
expect(expression.toString(), equals("24"));
|
||||
expect(expression.toString(), equals('24'));
|
||||
});
|
||||
|
||||
test('Test floating point 0.1 + 0.2 = 0.3', () {
|
||||
@@ -30,7 +30,7 @@ void main() {
|
||||
expression = expression.appendDigit(2);
|
||||
expression = expression.computeResult();
|
||||
expect(expression.state, equals(ExpressionState.Result));
|
||||
expect(expression.toString(), equals("0.3"));
|
||||
expect(expression.toString(), equals('0.3'));
|
||||
});
|
||||
|
||||
test('Test floating point 1.0/10.0 = 0.1', () {
|
||||
@@ -45,7 +45,7 @@ void main() {
|
||||
expression = expression.appendDigit(0);
|
||||
expression = expression.computeResult();
|
||||
expect(expression.state, equals(ExpressionState.Result));
|
||||
expect(expression.toString(), equals("0.1"));
|
||||
expect(expression.toString(), equals('0.1'));
|
||||
});
|
||||
|
||||
test('Test 1/0 = Infinity', () {
|
||||
@@ -55,7 +55,7 @@ void main() {
|
||||
expression = expression.appendDigit(0);
|
||||
expression = expression.computeResult();
|
||||
expect(expression.state, equals(ExpressionState.Result));
|
||||
expect(expression.toString(), equals("Infinity"));
|
||||
expect(expression.toString(), equals('Infinity'));
|
||||
});
|
||||
|
||||
test('Test use result in next calculation: 1 + 1 = 2 + 1 = 3 + 1 = 4', () {
|
||||
@@ -71,7 +71,7 @@ void main() {
|
||||
expression = expression.appendDigit(1);
|
||||
expression = expression.computeResult();
|
||||
expect(expression.state, equals(ExpressionState.Result));
|
||||
expect(expression.toString(), equals("4"));
|
||||
expect(expression.toString(), equals('4'));
|
||||
});
|
||||
|
||||
test('Test minus -3 - -2 = -1', () {
|
||||
@@ -83,6 +83,6 @@ void main() {
|
||||
expression = expression.appendDigit(2);
|
||||
expression = expression.computeResult();
|
||||
expect(expression.state, equals(ExpressionState.Result));
|
||||
expect(expression.toString(), equals("-1"));
|
||||
expect(expression.toString(), equals('-1'));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -51,21 +51,21 @@ void main() {
|
||||
expect(app.theme.platform, equals(TargetPlatform.iOS));
|
||||
|
||||
// Verify the font scale.
|
||||
final Size origTextSize = tester.getSize(find.text("Small"));
|
||||
final Size origTextSize = tester.getSize(find.text('Small'));
|
||||
expect(origTextSize, equals(const Size(176.0, 14.0)));
|
||||
|
||||
// Switch font scale.
|
||||
await tester.tap(find.text('Small'));
|
||||
await tester.pump();
|
||||
await tester.pump(const Duration(seconds: 1)); // Wait until it's changed.
|
||||
final Size textSize = tester.getSize(find.text("Small"));
|
||||
final Size textSize = tester.getSize(find.text('Small'));
|
||||
expect(textSize, equals(const Size(176.0, 11.0)));
|
||||
|
||||
// Set font scale back to default.
|
||||
await tester.tap(find.text('System Default'));
|
||||
await tester.pump();
|
||||
await tester.pump(const Duration(seconds: 1)); // Wait until it's changed.
|
||||
final Size newTextSize = tester.getSize(find.text("Small"));
|
||||
final Size newTextSize = tester.getSize(find.text('Small'));
|
||||
expect(newTextSize, equals(origTextSize));
|
||||
|
||||
// Scroll to the bottom of the menu.
|
||||
|
||||
@@ -21,7 +21,7 @@ void main() {
|
||||
});
|
||||
}
|
||||
|
||||
const String testCodeFile = """// A fake test file
|
||||
const String testCodeFile = '''// A fake test file
|
||||
// START test_0
|
||||
test 0 0
|
||||
test 0 1
|
||||
@@ -32,7 +32,7 @@ test 0 1
|
||||
test 1 0
|
||||
test 1 1
|
||||
// END
|
||||
""";
|
||||
''';
|
||||
|
||||
class TestAssetBundle extends AssetBundle {
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user