blob: 8281bdc6fb215a0d6243325e826f2a83eade1ac9 [file] [log] [blame]
// Copyright (c) 2017, 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 Encoding getByName(String name)
/// Gets an Encoding object from the name of the character set name. The names
/// used are the IANA official names for the character set (see
/// The name passed is case insensitive.
/// ...
/// @description Checks that this method is case insensitive
/// @author
import "dart:convert";
import "../../../Utils/expect.dart";
List<String> encodings = [
main() {
encodings.forEach((String encodingName) {
Encoding? e = Encoding.getByName(encodingName);
Expect.isNotNull(e, "Encoding " + encodingName + " is not supported");