blob: c771d7fe452878a6f201b5e6e53803336b42dd39 [file] [log] [blame]
// Copyright (c) 2011, 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.
// @dart = 2.9
/// @assertion Future<T> single
/// Returns the single element.
/// @description Checks that the single element is returned.
/// @author kaigorodov
library single_A01_t01;
import "../../../Utils/expect.dart";
void test(CreateStreamFunction create) {
AsyncExpect.value(123, create([123]).single);
}