blob: d5c517713f528ec3708f7280a141f55a7f09564c [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(https://fxbug.dev/84961): Fix null safety and remove this language version.
// @dart=2.9
import 'package:inspect_dart_codelab_part_3_lib/reverser.dart';
import 'package:test/test.dart';
// CODELAB: Include the inspect test module.
void main() {
ReverserImpl openReverser() {
// [START open_reverser]
return ReverserImpl(ReverserStats.noop());
// [END open_reverser]
}
test('reverser', () async {
final reverser = openReverser();
final result = await reverser.reverse('hello');
expect(result, equals('olleh'));
// CODELAB: assert that the inspect data is correct.
});
}