Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit 006e4b8

Browse files
committed
tryuseval
1 parent 2daa611 commit 006e4b8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/base_test.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,12 @@ void main() {
2727

2828
expect(ref.val, equals(3));
2929
});
30+
31+
test('tryUseVal', () {
32+
final ref = Ref(1);
33+
34+
tryUseVal(ref, (val) {
35+
expect(val, 1);
36+
});
37+
});
3038
}

0 commit comments

Comments
 (0)