blob: 27e12b33d585fe3f3de2c61c7f798e6df599b4de [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.
/**
* @assertion All string literals implement the built-in class String.
* @description Checks that string literals implement class String.
* @author msyabro
*/
import '../../../Utils/expect.dart';
main() {
Expect.isTrue("" is String);
Expect.isTrue('' is String);
Expect.isTrue(r"" is String);
Expect.isTrue(r'' is String);
Expect.isTrue("""""" is String);
Expect.isTrue('''''' is String);
Expect.isTrue(r"""""" is String);
Expect.isTrue(r'''''' is String);
Expect.isTrue("String" is String);
Expect.isTrue('\x00\x01\x02' is String);
Expect.isTrue(r"\\\\\\\\" is String);
Expect.isTrue(r'$$$$$' is String);
Expect.isTrue("""
new line """ is String);
}