My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/development/libs/barrel/src/tests/common/utils.rs

16 lines
271 B

use crate::types;
#[test]
fn cloning_types() {
let tt = types::text();
assert_eq!(tt, tt.clone());
}
#[test]
fn equals_types() {
let t1 = types::text();
let t2 = t1.clone();
let t3 = types::integer();
assert!(t1 == t2);
assert!(t1 != t3);
}