CodeSampleX

示例

HeapPriorityQueue.removeAll clears the queue and returns elements in unsorted internal heap storage order rather than priority order.

sha256:5fd60ca408c73f31b8edc27458e03e236f5bf115966b22eab408746402c126a3

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
HeapPriorityQueue.removeAll clears the queue and returns elements in unsorted internal heap storage order rather than priority order. HOW
collection 1.19.0
环境
dart
创建时间
2026-08-17T02:04:51Z

常见的想当然

Calling removeAll on a PriorityQueue empties the queue and returns all elements sorted in priority order.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执