Add tests for apply_demorgan

This commit is contained in:
Lukas Wirth 2021-02-24 11:42:32 +01:00
parent 9db970ee08
commit 694f7a7e9f
3 changed files with 83 additions and 18 deletions

View file

@ -527,8 +527,11 @@ pub mod tokens {
use crate::{ast, AstNode, Parse, SourceFile, SyntaxKind::*, SyntaxToken};
pub(super) static SOURCE_FILE: Lazy<Parse<SourceFile>> =
Lazy::new(|| SourceFile::parse("const C: <()>::Item = (1 != 1, 2 == 2, !true, *p)\n;\n\n"));
pub(super) static SOURCE_FILE: Lazy<Parse<SourceFile>> = Lazy::new(|| {
SourceFile::parse(
"const C: <()>::Item = (1 != 1, 2 == 2, 3 < 3, 4 <= 4, 5 > 5, 6 >= 6, !true, *p)\n;\n\n",
)
});
pub fn single_space() -> SyntaxToken {
SOURCE_FILE