blob: 5eb15788bd9deb07c149d3f283fc3ef6efcf02c6 [file] [log] [blame]
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:test_reflective_loader/test_reflective_loader.dart';
import '../../../../client/completion_driver_test.dart';
void main() {
defineReflectiveSuite(() {
defineReflectiveTests(LogicalOrPatternTest);
});
}
@reflectiveTest
class LogicalOrPatternTest extends AbstractCompletionDriverTest
with LogicalOrPatternTestCases {}
mixin LogicalOrPatternTestCases on AbstractCompletionDriverTest {
void test_afterOperator() async {
await computeSuggestions('''
void f(int i) {
if (i case < 3 || ^ ) ];
}
''');
assertResponse(r'''
suggestions
const
kind: keyword
false
kind: keyword
final
kind: keyword
null
kind: keyword
true
kind: keyword
var
kind: keyword
''');
}
}