/// Tests that different variants of the same enum can be compared to each other
/// See: https://github.com/rune-rs/rune/pull/215
#[test]
fn assert_variant_comparisons() {
    enum Units {
        A,
        B,
    }

    assert_ne!(Units::A, Units::B);
    assert_eq!(Units::A, Units::A);

    enum Mixed1 {
        A(a),
        B,
    }

    assert_ne!(Mixed1::A(10), Mixed1::B);
    assert_eq!(Mixed1::A(10), Mixed1::A(10));

    enum Mixed2 {
        A {
            a,
        },
        B,
    }

    assert_ne!(Mixed2::A { a: 10 }, Mixed2::B);
    assert_eq!(Mixed2::A { a: 10 }, Mixed2::A { a: 10 });
}
