expected_output 2.0.0 copy "expected_output: ^2.0.0" to clipboard
expected_output: ^2.0.0 copied to clipboard

discontinued
SDKDart

Easily write and test multiline input and expected output, and avoid test case data clutter in your test logic.

example/example.dart

// Copyright (c) 2019, 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.

library touppercase.tests;

import 'package:expected_output/expected_output.dart';
import 'package:test/test.dart';

void main() {
  for (var dataCase in dataCasesUnder(library: #touppercase.tests)) {
    test(dataCase.testDescription, () {
      var actualOutput = dataCase.input.toUpperCase();
      expect(actualOutput, equals(dataCase.expectedOutput));
    });
  }
}
1
likes
140
pub points
6%
popularity

Publisher

verified publisherlabs.dart.dev

Easily write and test multiline input and expected output, and avoid test case data clutter in your test logic.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

path, pedantic, test

More

Packages that depend on expected_output