Validate that block begins and ends are correctly paired
diff --git a/gen/src/block.rs b/gen/src/block.rs
index 19dc8b1..96a9a6e 100644
--- a/gen/src/block.rs
+++ b/gen/src/block.rs
@@ -1,6 +1,6 @@
 use proc_macro2::Ident;
 
-#[derive(Copy, Clone)]
+#[derive(Copy, Clone, PartialEq, Debug)]
 pub enum Block<'a> {
     AnonymousNamespace,
     Namespace(&'static str),