Files
sdk/tests/lib_2/mirrors/get_symbol_name_test.dart
T
Ben Konyi 5b60e5841d Migrated test block 222 to Dart 2.0.
Minor changes to a few tests, no major refactors.

Bug:
Change-Id: I66c00b6465597a3534071f8d70c4718f209d5e6e
Reviewed-on: https://dart-review.googlesource.com/3787
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2017-09-13 02:05:02 +00:00

17 lines
508 B
Dart

// Copyright (c) 2013, 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.
import 'dart:mirrors' show MirrorSystem;
expect(expected, actual) {
if (expected != actual) {
throw 'Expected: "$expected", but got "$actual"';
}
}
main() {
expect('fisk', MirrorSystem.getName(const Symbol('fisk')));
expect('fisk', MirrorSystem.getName(new Symbol('fisk')));
}