MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / normalize

Function normalize

compiler/tests/vm.rs:42–44  ·  view source on GitHub ↗

Apply set normalization line-by-line so both sides compare order-independent.

(lines: &[String])

Source from the content-addressed store, hash-verified

40
41 // Apply set normalization line-by-line so both sides compare order-independent.
42 fn normalize(lines: &[String]) -> Vec<String> {
43 lines.iter().map(|l| normalize_set(l)).collect()
44 }
45
46 // Resume on each PendingEvent by pushing the next interactive_events entry.
47 fn drive(vm: &mut VM, interactive: &[String]) -> Result<(), VmErr> {

Callers 1

test_casesFunction · 0.85

Calls 3

normalize_setFunction · 0.85
collectMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected