blob: b59504280d889d63b4a1f9772d28bcb8432d3c5d [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 If the string is not already all upper case, returns a new string
/// where all characters of this string are made upper case. Returns
/// this otherwise.
/// @description Checks that if the string is already in upper case then it is
/// returned instead of a new string.
/// @author msyabro
import "../../../Utils/expect.dart";
main() {
String str = "ALL CHARACTERS IN UPPER CASE";
String str2 = str.toUpperCase();
Expect.identical(str, str2);
}