MCPcopy Create free account
hub / github.com/assert-rs/assert_cmd / into_code_from_array

Function into_code_from_array

src/assert.rs:1178–1181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1176
1177 #[test]
1178 fn into_code_from_array() {
1179 let pred = convert_code(&[3, 10] as &[i32]);
1180 assert!(pred.eval(&10));
1181 }
1182
1183 // Since IntoOutputPredicate exists solely for conversion, test it under that scenario to ensure
1184 // it works as expected.

Callers

nothing calls this directly

Calls 1

convert_codeFunction · 0.85

Tested by

no test coverage detected