mirror of
https://gitee.com/openharmony/security_asset
synced 2024-11-30 19:40:31 +00:00
fix for test
Match-id-a9b281b7e8d539400a3f1de594d76f7f9bb509fd
This commit is contained in:
parent
fbdd29d93d
commit
c076b92505
@ -70,7 +70,7 @@ pub fn test_helper() {
|
||||
let exist = db
|
||||
.is_data_exists_default(&DbMap::from([
|
||||
(COLUMN_OWNER, Value::Bytes(b"owner1".to_vec())),
|
||||
(COLUMN_ALIAS, Value::Bytes(b"alias1".to_vec())),
|
||||
(COLUMN_ALIAS, Value::Bytes(b"alias2".to_vec())),
|
||||
]))
|
||||
.unwrap();
|
||||
assert!(!exist);
|
||||
|
@ -542,9 +542,9 @@ pub fn test_query() {
|
||||
}
|
||||
println!()
|
||||
}
|
||||
assert_eq!(result_set.len(), 5);
|
||||
assert_eq!(result_set.len(), 3);
|
||||
let count = table.count_datas(&DbMap::new()).unwrap();
|
||||
assert_eq!(count, 5);
|
||||
assert_eq!(count, 3);
|
||||
let count = table.count_datas(&DbMap::from([("id", Value::Number(3))])).unwrap();
|
||||
assert_eq!(count, 1);
|
||||
let exits = table
|
||||
@ -664,7 +664,7 @@ pub fn test_data_exists_and_data_count() {
|
||||
let exist = db
|
||||
.is_data_exists_default(&DbMap::from([
|
||||
(COLUMN_OWNER, Value::Bytes(b"owner1".to_vec())),
|
||||
(COLUMN_ALIAS, Value::Bytes(b"alias1".to_vec())),
|
||||
(COLUMN_ALIAS, Value::Bytes(b"alias2".to_vec())),
|
||||
]))
|
||||
.unwrap();
|
||||
assert!(!exist);
|
||||
|
Loading…
Reference in New Issue
Block a user