rust-postgres/tests/types/uuid.rs

11 lines
287 B
Rust
Raw Normal View History

2014-11-17 17:43:10 +00:00
extern crate uuid;
use types::test_type;
#[test]
fn test_uuid_params() {
test_type("UUID", &[(Some(uuid::Uuid::parse_str("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11").unwrap()),
2014-11-17 17:43:10 +00:00
"'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'"),
(None, "NULL")])
}