blob: e501d66388d41528aa0c724c5537ecc9303881c0 [file] [log] [blame]
// Copyright (c) 2011, 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
/// @assertion Constructs a regular expression.
/// @description Checks that null flags arguments can be used.
/// @author rodionov
import "../../../Utils/expect.dart";
main() {
RegExp re = new RegExp(r".", multiLine: null, caseSensitive: null);
Expect.isNotNull(re.firstMatch("a"), "Check: a");
re = new RegExp(r".", multiLine: null, caseSensitive: null);
Expect.isNotNull(re.firstMatch("b\na"), "Check: b\\na");
re = new RegExp(r".", multiLine: null, caseSensitive: null);
Expect.isNotNull(re.firstMatch("A"), "Check:A");
}