MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / math_unary_inherits_temp_args

Function math_unary_inherits_temp_args

src/python/py_kernel.rs:547–554  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

545
546 #[test]
547 fn math_unary_inherits_temp_args() {
548 let km = PyKernelModule::new();
549 let x = km.arg("x");
550 let temp_id = *x.temp_args.keys().next().unwrap();
551 let result = km.sqrt(x);
552 assert_eq!(result.temp_args.len(), 1);
553 assert_eq!(result.temp_args.get(&temp_id), Some(&"x".to_string()));
554 }
555
556 #[test]
557 fn math_binary_merges_temp_args() {

Callers

nothing calls this directly

Calls 2

argMethod · 0.45
sqrtMethod · 0.45

Tested by

no test coverage detected