e7738de6d2
CI / Deep Native Runtime Cases (1/6) (push) Has been skipped
CI / Native Preflight (push) Failing after 1s
CI / Native Runtime Cases (1/2) (push) Failing after 0s
CI / Native Runtime Cases (2/2) (push) Failing after 1s
CI / Native Metadata Reports (push) Failing after 0s
CI / Native Direct Backend Artifacts (push) Failing after 0s
CI / Native Sanitizer Smoke (push) Failing after 1s
CI / Command Contract Snapshots (push) Failing after 1s
CI / Deep Conformance Suite (push) Has been skipped
CI / Graph Build Perf (push) Failing after 1s
CI / Deep Native Preflight (push) Has been skipped
CI / Deep Native Runtime Cases (2/6) (push) Has been skipped
CI / Deep Native Runtime Cases (3/6) (push) Has been skipped
CI / Conformance Suite (push) Failing after 1s
CI / Workspace Checks (push) Failing after 0s
CI / Deep Native Runtime Cases (5/6) (push) Has been skipped
CI / Deep Native Runtime Cases (6/6) (push) Has been skipped
CI / Deep Native Runtime Cases (4/6) (push) Has been skipped
CI / Deep Graph Build Perf (push) Has been skipped
18 lines
925 B
Plaintext
18 lines
925 B
Plaintext
pub fn main(world: World) -> Void raises {
|
|
var values: [5]i32 = [0, 0, 0, 0, 0]
|
|
let extra: [2]i32 = [4, 1]
|
|
var len: usize = 0
|
|
len = std.collections.push(values, len, 3)
|
|
len = std.collections.push(values, len, 1)
|
|
len = std.collections.append(values, len, extra)
|
|
let remaining: usize = std.collections.remaining(values, len)
|
|
let full: Bool = std.collections.isFull(values, len)
|
|
std.sort.insertionI32(values[..len])
|
|
let live: Span<i32> = std.collections.view(values, len)
|
|
let found: usize = std.search.binaryI32(live, 4)
|
|
let missing: usize = std.search.indexOf(live, 9)
|
|
if len == 4 && remaining == 1 && !full && std.mem.len(live) == 4 && std.collections.count(values, len, 1) == 2 && std.collections.contains(values, len, 3) && std.sort.isSortedI32(live) && found == 3 && missing == std.mem.len(live) {
|
|
check world.out.write("std collections algorithms ok\n")
|
|
}
|
|
}
|