// Copyright (c) 2022, 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:test'; | |
main() { | |
Class c = new Class(); | |
expect(42, c.method1()); | |
expect(87, c.method2()); | |
expect(123, c.method3()); | |
} | |
expect(expected, actual) { | |
if (expected != actual) { | |
throw 'Expected $expected, actual $actual'; | |
} | |
} |