From b02541586e75944333cd53514f079787358c40f5 Mon Sep 17 00:00:00 2001 From: Joseph Shearer Date: Mon, 30 Oct 2023 11:08:52 -0400 Subject: [PATCH] Add back test for creation --- crates/doc/src/ptr.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/doc/src/ptr.rs b/crates/doc/src/ptr.rs index 53a27f946e..d16ecabde7 100644 --- a/crates/doc/src/ptr.rs +++ b/crates/doc/src/ptr.rs @@ -524,6 +524,13 @@ mod test { assert!(ptr.create_value(&mut root_value).is_none()); assert!(ptr.create_heap_node(&mut root_heap_doc, &alloc).is_none()); } + + let next_index_ptr = Pointer::from_iter( + vec![Token::Property("foo".to_string()), Token::NextProperty].into_iter(), + ); + + let res = next_index_ptr.create_value(&mut root_value); + assert_eq!(res, None); } #[test]