MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / test_equality

Function test_equality

crates/cust/src/memory/unified.rs:832–839  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

830
831 #[test]
832 fn test_equality() {
833 let _context = crate::quick_init().unwrap();
834 let x = UnifiedBox::new(5u64).unwrap();
835 let y = UnifiedBox::new(5u64).unwrap();
836 let z = UnifiedBox::new(0u64).unwrap();
837 assert_eq!(x, y);
838 assert!(x != z);
839 }
840
841 #[test]
842 fn test_ordering() {

Callers

nothing calls this directly

Calls 2

quick_initFunction · 0.85
newFunction · 0.85

Tested by

no test coverage detected