Add unittest
[ 48s] + ./pest
[ 48s]
[ 48s] running 62 tests
[ 48s] test error::tests::display_custom_span_empty ... ok
[ 48s] test error::tests::display_custom_pos ... ok
[ 48s] test error::tests::display_custom_span_end_after_newline ... ok
[ 48s] test error::tests::display_custom_span_three_lines ... ok
[ 48s] test error::tests::display_custom_span_two_lines ... ok
[ 48s] test error::tests::display_custom_span_two_lines_inverted_cols ... ok
[ 48s] test error::tests::display_parsing_error_mixed ... ok
[ 48s] test error::tests::display_parsing_error_positives ... ok
[ 48s] test error::tests::display_parsing_error_negatives ... ok
[ 48s] test error::tests::error_with_path ... ok
[ 48s] test error::tests::underline_with_tabs ... ok
[ 48s] test iterators::flat_pairs::tests::double_ended_iter_for_flat_pairs ... ok
[ 48s] test error::tests::mapped_parsing_error ... ok
[ 48s] test error::tests::display_parsing_error_unknown ... ok
[ 48s] test iterators::flat_pairs::tests::iter_for_flat_pairs ... ok
[ 48s] test iterators::flat_pairs::tests::test_line_col ... ok
[ 48s] test iterators::line_index::tests::test_line_index ... ok
[ 48s] test iterators::pair::tests::pair_into_inner ... ok
[ 48s] test iterators::pairs::tests::as_str ... ok
[ 48s] test iterators::pairs::tests::as_str_empty ... ok
[ 48s] test iterators::pairs::tests::concat ... ok
[ 48s] test iterators::pairs::tests::double_ended_iter_for_pairs ... ok
[ 48s] test iterators::pairs::tests::iter_for_pairs ... ok
[ 48s] test iterators::pairs::tests::pairs_debug ... ok
[ 48s] test iterators::pairs::tests::pairs_display ... ok
[ 48s] test iterators::pairs::tests::test_line_col ... ok
[ 48s] test iterators::pairs::tests::test_rev_iter_line_col ... ok
[ 48s] test iterators::tokens::tests::double_ended_iter_for_tokens ... ok
[ 48s] test macros::tests::fails_with ... ok
[ 48s] test macros::tests::empty - should panic ... ok
[ 48s] test macros::tests::missing_end - should panic ... ok
[ 48s] test macros::tests::wrong_negatives - should panic ... ok
[ 48s] test macros::tests::wrong_pos - should panic ... ok
[ 48s] test macros::tests::wrong_positives - should panic ... ok
[ 48s] test parser_state::test::normalize_index_neg ... ok
[ 48s] test parser_state::test::normalize_index_pos ... ok
[ 48s] test position::tests::cmp ... ok
[ 48s] test position::tests::empty ... ok
[ 48s] test position::tests::hash ... ok
[ 48s] test position::tests::cmp_panic - should panic ... ok
[ 48s] test position::tests::line_col ... ok
[ 48s] test position::tests::line_of ... ok
[ 48s] test position::tests::line_of_empty ... ok
[ 48s] test position::tests::line_of_between_new_line ... ok
[ 48s] test macros::tests::parses_to ... ok
[ 48s] test position::tests::line_of_new_line ... ok
[ 48s] test position::tests::match_insensitive ... ok
[ 48s] test position::tests::match_range ... ok
[ 48s] test position::tests::parts ... ok
[ 48s] test position::tests::skip ... ok
[ 48s] test position::tests::skip_empty ... ok
[ 48s] test position::tests::skip_until ... ok
[ 48s] test span::tests::get ... ok
[ 48s] test span::tests::get_fails ... ok
[ 48s] test span::tests::lines_eof ... ok
[ 48s] test span::tests::lines_mid ... ok
[ 48s] test span::tests::lines_span ... ok
[ 48s] test span::tests::span_comp ... ok
[ 48s] test span::tests::split ... ok
[ 48s] test stack::test::snapshot_twice ... ok
[ 48s] test stack::test::snapshot_with_empty ... ok
[ 48s] test stack::test::stack_ops ... ok
[ 48s]
[ 48s] test result: ok. 62 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s