use super::*; #[derive(Boilerplate)] pub(crate) struct CollectionsHtml { pub(crate) inscriptions: Vec, pub(crate) prev: Option, pub(crate) next: Option, } impl PageContent for CollectionsHtml { fn title(&self) -> String { "Collections".into() } } #[cfg(test)] mod tests { use super::*; #[test] fn without_prev_and_next() { assert_regex_match!( CollectionsHtml { inscriptions: vec![inscription_id(1), inscription_id(2)], prev: None, next: None, }, "

Collections

.* prev next .* " .unindent() ); } #[test] fn with_prev_and_next() { assert_regex_match!( CollectionsHtml { inscriptions: vec![inscription_id(1), inscription_id(2)],