Added another test.

This commit is contained in:
vorboyvo 2025-09-24 13:31:16 -04:00
parent d1dece78fe
commit f58cd7f2f6

View file

@ -144,3 +144,10 @@ fn test_symmetry_negative() {
let (_, b) = parser::subtree("([1.0]A[3.0]B)").unwrap();
assert_ne!(a, b)
}
#[test]
fn test_symmetry_complex() {
let (_, a) = parser::subtree("([1.0]C[0.5]([1.0]B[2.5]A))").unwrap();
let (_, b) = parser::subtree("([0.5]([2.5]A[1.0]B)[1.0]C)").unwrap();
assert_eq!(a, b)
}