MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / test_ones

Function test_ones

ciphercore-base/src/optimizer/constant_optimizer.rs:191–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189
190 #[test]
191 fn test_ones() {
192 || -> Result<()> {
193 let c = simple_context(|g| g.ones(array_type(vec![1000, 1000], UINT64)))?;
194 assert!(contexts_deep_equal(optimize_context(&c)?, c));
195 Ok(())
196 }()
197 .unwrap();
198 }
199
200 #[test]
201 fn test_constants_simple_deduplication() {

Callers

nothing calls this directly

Calls 3

simple_contextFunction · 0.85
onesMethod · 0.80
array_typeFunction · 0.50

Tested by

no test coverage detected