Skip to content

Commit

Permalink
Add back test for creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jshearer committed Oct 30, 2023
1 parent 4d4e6e9 commit b025415
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/doc/src/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit b025415

Please sign in to comment.