Assert
This commit is contained in:
parent
90d1eda08f
commit
ffd943bc58
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -669,9 +669,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "fastrand"
|
||||
version = "1.7.0"
|
||||
version = "1.8.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf"
|
||||
checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499"
|
||||
dependencies = [
|
||||
"instant",
|
||||
]
|
||||
|
|
|
@ -761,9 +761,9 @@ mod test {
|
|||
for i in values_to_add {
|
||||
list_store.set(&list_store.append(), &[*i]);
|
||||
}
|
||||
assert_eq!(check_if_value_is_in_list_store(&list_store, 0, "Koczkodan"), true);
|
||||
assert_eq!(check_if_value_is_in_list_store(&list_store, 0, "Kachir"), true);
|
||||
assert_eq!(check_if_value_is_in_list_store(&list_store, 0, "Koczkodan2"), false);
|
||||
assert!(check_if_value_is_in_list_store(&list_store, 0, "Koczkodan"));
|
||||
assert!(check_if_value_is_in_list_store(&list_store, 0, "Kachir"));
|
||||
assert!(!check_if_value_is_in_list_store(&list_store, 0, "Koczkodan2"));
|
||||
|
||||
let columns_types: &[glib::types::Type] = &[glib::types::Type::STRING, glib::types::Type::STRING];
|
||||
let list_store = gtk4::ListStore::new(columns_types);
|
||||
|
@ -771,12 +771,12 @@ mod test {
|
|||
for i in values_to_add {
|
||||
list_store.set(&list_store.append(), i);
|
||||
}
|
||||
assert_eq!(check_if_value_is_in_list_store(&list_store, 0, "Koczkodan"), true);
|
||||
assert_eq!(check_if_value_is_in_list_store(&list_store, 1, "Krakus"), true);
|
||||
assert_eq!(check_if_value_is_in_list_store(&list_store, 0, "Kachir"), true);
|
||||
assert_eq!(check_if_value_is_in_list_store(&list_store, 1, "Wodnica"), true);
|
||||
assert_eq!(check_if_value_is_in_list_store(&list_store, 0, "Krakus"), false);
|
||||
assert_eq!(check_if_value_is_in_list_store(&list_store, 1, "Kachir"), false);
|
||||
assert!(check_if_value_is_in_list_store(&list_store, 0, "Koczkodan"));
|
||||
assert!(check_if_value_is_in_list_store(&list_store, 1, "Krakus"));
|
||||
assert!(check_if_value_is_in_list_store(&list_store, 0, "Kachir"));
|
||||
assert!(check_if_value_is_in_list_store(&list_store, 1, "Wodnica"));
|
||||
assert!(!check_if_value_is_in_list_store(&list_store, 0, "Krakus"));
|
||||
assert!(!check_if_value_is_in_list_store(&list_store, 1, "Kachir"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue