blob: d2bfc07d1727b4332f035fa6a7a282b41be7ae84 [file] [log] [blame]
use crate::{find_recent_config_change_ids, CONFIG_CHANGE_HISTORY};
#[test]
fn test_find_recent_config_change_ids() {
// If change-id is greater than the most recent one, result should be empty.
assert!(find_recent_config_change_ids(usize::MAX).is_empty());
// There is no change-id equal to or less than 0, result should include the entire change history.
assert_eq!(find_recent_config_change_ids(0).len(), CONFIG_CHANGE_HISTORY.len());
}