샘플
Acknowledge that IterableExtension.sample before 1.19.0 retains the original sequence when count equals length.
sha256:c6c2b720e913c47eb8f6dddaa97094bb03800d936bdc2c9f292cdcffd7d37401
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Acknowledge that IterableExtension.sample before 1.19.0 retains the original sequence when count equals length. HOW
- 패키지
- collection 1.18.0
- 환경
- dart
- 생성일
- 2026-08-17T02:51:44Z
흔히 이렇게 알고 있다
IterableExtension.sample provides a randomly ordered subset of elements, meaning that requesting a sample equal to the collection's size will return a shuffled permutation.
이 샘플의 작성자가 여기서 개발자나 모델이 기대할 법한 내용으로 적어둔 것이다. 아래 계약이 실제로 실행된 것이다.
컨트랙트
- Before 1.19.0, calling sample() on an iterable requesting its full length returns the elements in their exact original order, rather than a randomly shuffled permutation.
- if ([1, 2, 3, 4, 5].sample(5).toString() != '[1, 2, 3, 4, 5]') throw Exception('Failed');
파일
- NOTES.md
- csx.json
- pubspec.lock
- pubspec.yaml
- test/contract.dart
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- dart 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · pub@1 · 2026-08-17 · ed25519:d91480838ac982c9