Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkgs/checks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.1.1-dev

- Added an example.

# 0.1.0

- Initial release.
23 changes: 23 additions & 0 deletions pkgs/checks/example/example.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright (c) 2023, 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 'package:checks/checks.dart';
import 'package:test/scaffolding.dart';

void main() {
test('sample test', () {
final someValue = 5;
checkThat(someValue).equals(5);

final someList = [1, 2, 3, 4, 5];
checkThat(someList).deepEquals([1, 2, 3, 4, 5]);

final someString = 'abcdefghijklmnopqrstuvwxyz';

checkThat(someString)
..startsWith('a')
..endsWith('z')
..contains('lmno');
});
}
2 changes: 1 addition & 1 deletion pkgs/checks/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: checks
version: 0.1.0
version: 0.1.1-dev
description: >-
A framework for checking values against expectations and building custom
expectations.
Expand Down