rebo / atomic_hooks

4 stars 6 forks source link

Question regarding implementation #7

Open arn-the-long-beard opened 4 years ago

arn-the-long-beard commented 4 years ago

Hey,

In some cases when I use atom or reversible_atom, I get different results.

For example,

This unit test will pass

    #[test]
    fn test_delete() {
        let a = a_reversible();
        a.delete();
        assert_eq!(
            a_reversible().state_exists(),
            false,
            "The state  a_reversible should not exist"
        );
    }

but this is failing

    #[test]
    fn test_delete() {
        a_reversible().delete();

        assert_eq!(
            a_reversible().state_exists(),
            false,
            "The state  a_reversible should not exist"
        );
    }

Do you know why ?