Fix old .ktn file includes
This commit is contained in:
parent
889e078328
commit
bc4d58ffa2
10
src/lib.rs
10
src/lib.rs
|
@ -42,7 +42,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn lex_file() {
|
||||
let source = include_str!("ast_fn.ktn");
|
||||
let source = include_str!("ast_fn.fae");
|
||||
let theme = ColorTheme::new();
|
||||
let mut lex = lexer::Lexer::new(source);
|
||||
|
||||
|
@ -56,7 +56,7 @@ mod tests {
|
|||
// TODO use spans to color-code instead of raw tokens, to show original whitespace
|
||||
/*#[test]
|
||||
fn color_file() {
|
||||
let source = include_str!("../example.ktn");
|
||||
let source = include_str!("../example.fae");
|
||||
let theme = ColorTheme::new();
|
||||
let mut lex = Token::lexer(source);
|
||||
|
||||
|
@ -74,16 +74,16 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn ast_fn() {
|
||||
print_ast(include_str!("ast_fn.ktn"));
|
||||
print_ast(include_str!("ast_fn.fae"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ast_struct() {
|
||||
print_ast(include_str!("ast_struct.ktn"));
|
||||
print_ast(include_str!("ast_struct.fae"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ast_example() {
|
||||
print_ast(include_str!("../example.ktn"));
|
||||
print_ast(include_str!("../example.fae"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue