Test: ensure that multi-line strings are invalid

This commit is contained in:
GreasySlug 2022-09-19 10:18:36 +09:00
parent 6619bbee8a
commit 4c65b6e729
2 changed files with 9 additions and 0 deletions

View file

@ -6,6 +6,11 @@ use erg_parser::error::ParserRunnerErrors;
use erg_parser::lex::Lexer;
use erg_parser::ParserRunner;
#[test]
fn parse_str_literal() -> Result<(), ParserRunnerErrors> {
expect_failure("tests/failed_str_lit.er")
}
#[test]
fn parse_dependent() -> Result<(), ParserRunnerErrors> {
expect_success("tests/dependent.er")