1
#![cfg(test)]
2

            
3
use crate::preprocessor::Preprocessor;
4

            
5
1
#[test]
6
1
fn pp_should_return_text_as_is_if_no_directive_is_found() {
7
1
    let source_text = r#"
8
1
        int main(void) {
9
1
            return 0;
10
1
        }
11
1
    "#
12
1
    .to_owned();
13
1

            
14
1
    let pp = Preprocessor::with_text(source_text.clone());
15
1

            
16
1
    assert_eq!(pp.parse(), source_text);
17
1
}