blob: 1050f96ab2031d09d89188257450328c913590d9 [file] [log] [blame]
// Copyright (c) 2020, 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.
// @dart = 2.9
import 'package:analysis_server/src/services/correction/fix/data_driven/transform_set_error_code.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
import '../code_fragment_parser_test.dart';
void main() {
defineReflectiveSuite(() {
defineReflectiveTests(InvalidCharacterTest);
});
}
@reflectiveTest
class InvalidCharacterTest extends AbstractCodeFragmentParserTest {
void test_final() {
assertErrors('arguments;', [
error(TransformSetErrorCode.invalidCharacter, 9, 1),
]);
}
void test_initial() {
assertErrors('{ some', [
error(TransformSetErrorCode.invalidCharacter, 0, 1),
]);
}
}