Skip to content

Commit

Permalink
matcher/suffix_array/test: rename a function
Browse files Browse the repository at this point in the history
create_complex_parser_trie() -> create_populated_suffix_table()

Signed-off-by: Tibor Benke <ihrwein@gmail.com>
  • Loading branch information
ihrwein committed Jan 20, 2016
1 parent 0fe6a19 commit cb8efc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/matcher/suffix_array/test.rs
Expand Up @@ -6,7 +6,7 @@ use parsers::SetParser;
use matcher::pattern::Pattern;
use matcher::Matcher;

fn create_complex_parser_trie() -> SuffixTable {
fn create_populated_suffix_table() -> SuffixTable {
let mut root = SuffixTable::new();
let cp1 = CompiledPatternBuilder::new()
.literal("app")
Expand Down Expand Up @@ -46,7 +46,7 @@ fn create_complex_parser_trie() -> SuffixTable {

#[test]
fn test_given_parser_trie_when_a_parser_is_not_matched_then_the_parser_stack_is_unwind_so_an_untried_parser_is_tried() {
let root = create_complex_parser_trie();
let root = create_populated_suffix_table();
println!("root: {:?}", &root);
{
let result = root.parse("app42letree123");
Expand Down

0 comments on commit cb8efc6

Please sign in to comment.