From daba85baaad9560ac92884018b03835bdb385ee4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 10 Jul 2021 13:47:28 +0100 Subject: [PATCH] jst-lower: Add a check that we do not duplicate z coordinates Signed-off-by: Ian Jackson --- jstest/jst-lower.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/jstest/jst-lower.rs b/jstest/jst-lower.rs index c5ffcf84..18015785 100644 --- a/jstest/jst-lower.rs +++ b/jstest/jst-lower.rs @@ -200,6 +200,14 @@ impl Test { } } } + + // all the z coordinates are still distinct + { + for (n0,n1) in new.iter().tuple_windows() { + assert!( n1.new_z > n0.new_z, + "{:?} {:?}", &n0, &n1 ); + } + } } } @@ -385,6 +393,7 @@ defs_marker = fake_dom[{{ pieces | length + 1 }}]; fake_dom[{{ loop.index0 }}].nextElementSibling = fake_dom[{{ loop.index }}]; {%- endfor %} fake_dom[{{ pieces | length }}].nextElementSibling = fake_dom[{{ pieces | length + 1 }}]; +defs_marker.previousElementSibling = fake_dom[{{ pieces | length }}]; uorecord = { targets: [ -- 2.30.2