Add pure std.path queries and failure-preserving normalization/join using safe reverse measurement/emission and caller-provided output storage. Component queries return explicit Copy ranges; filesystem authority is checked independently. Complete the STD-7 implementation gate. Validation: 1079 conformance cases, 18 path cases with per-step collection and 12-seed schedule stress, independent 132-path/49-join capacity oracle, 68 CLI checks, fourteen previous source/std CLI suites, unit/Quick Reference, formatting, hosted smoke, 117/117 source coverage and reference budgets.
11 lines
313 B
Rust
11 lines
313 B
Rust
// expect: run
|
|
// trap: T0008
|
|
// phase: 6
|
|
// spec: docs/spec/16-standard-library.md §2.19
|
|
module test.path_bounds
|
|
import std.path;
|
|
fn main() -> u64 effects [] {
|
|
let range = std.path.basename(b"long/name.txt"); let short: [u8;1] = [0u8;1];
|
|
ref bytes = short[range.start..range.end]; return bytes.len as! u64;
|
|
}
|