undoredo 0.9.4

Undo-redo for Rust using deltas, snapshots, or commands.
Documentation
// SPDX-FileCopyrightText: 2025 undoredo contributors
//
// SPDX-License-Identifier: MIT OR Apache-2.0

#[path = "../common/mod.rs"]
mod common;

use alloc::collections::BTreeSet;
use undoredo::delta::BTreeSetHalfDelta;
use undoredo::Recorder;

#[test]
fn test_recorder_apply_delta_on_set() {
    let recorder = Recorder::<BTreeSet<i32>>::new(BTreeSet::new());
    common::test_recorder_apply_delta_on_set(recorder);
}

#[test]
fn test_insert_and_remove_on_set() {
    let recorder = Recorder::<BTreeSet<i32>>::new(BTreeSet::new());
    common::test_insert_and_remove_on_set(recorder);
}

#[test]
fn test_delta_undo_redo_on_set() {
    common::test_delta_undo_redo_on_set::<i32, BTreeSet<i32>, BTreeSetHalfDelta<i32>>(BTreeSet::new());
}

#[test]
fn test_snapshot_undo_redo() {
    common::test_snapshot_undo_redo_set::<i32, BTreeSet<i32>>(BTreeSet::new());
}