Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 263b3f9

Browse files
committed
enum test updates for analyzer 3.3.0
1 parent 5d41313 commit 263b3f9

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

test/rules/annotate_overrides_test.dart

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ class AnnotateOverridesTest extends LintRuleTest {
2424

2525
test_field() async {
2626
await assertDiagnostics(r'''
27-
enum A {
27+
class O {
28+
int get x => 0;
29+
}
30+
31+
enum A implements O {
2832
a,b,c;
29-
int get hashCode => 0;
33+
int get x => 0;
3034
}
3135
''', [
32-
lint('annotate_overrides', 28, 8),
36+
lint('annotate_overrides', 76, 1),
3337
]);
3438
}
3539

@@ -47,10 +51,14 @@ enum A {
4751
@FailingTest(issue: 'https://github.com/dart-lang/linter/issues/3093')
4852
test_ok() async {
4953
await assertNoDiagnostics(r'''
50-
enum A {
54+
class O {
55+
int get x => 0;
56+
}
57+
58+
enum A implements O {
5159
a,b,c;
5260
@override
53-
int get hashCode => 0;
61+
int get x => 0;
5462
@override
5563
String toString() => '';
5664
}

test/rules/prefer_final_fields_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class PreferFinalFieldsTest extends LintRuleTest {
2222
@override
2323
String get lintRule => 'prefer_final_fields';
2424

25-
@FailingTest(issue: 'https://github.com/dart-lang/linter/issues/3198')
2625
test_enum() async {
2726
await assertDiagnostics(r'''
2827
enum A {

test/rules/unnecessary_getters_setters_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class UnnecessaryGettersSettersTest extends LintRuleTest {
2222
@override
2323
String get lintRule => 'unnecessary_getters_setters';
2424

25-
@FailingTest(issue: 'https://github.com/dart-lang/linter/issues/3200')
2625
test_enum() async {
2726
await assertDiagnostics(r'''
2827
enum A {

0 commit comments

Comments
 (0)