string_sequence_tester
This crate defines a simple structure for testing the content of a string and checking whether it contains one or more sequences of consecutive lines.
This can be useful for testing proc-macro expansions (which is the usecase that started the development of this crate).
A Sequence is a collection of consecutive Lines that mus be checked against the lines of a text; to check a Sequence presence in a text, a SequenceTree must be used.
A SequenceTree allows performing checks with both only one Sequence and with multiple, logically linked Sequences. The SequenceTree variants show which logic operators can be applied to Sequences.
Examples
extern crate string_sequence_tester;
use ;
let TEST_LINES: = concat!.lines.map.collect;
let sequence_tree = Sequence;
assert!;