mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
[WIP]test: collection and class attr
This commit is contained in:
parent
b2a0dc19e5
commit
9e1d5d263d
3 changed files with 62 additions and 0 deletions
|
@ -67,6 +67,16 @@ fn exec_invalid_chunk_prs_err() -> Result<(), ()> {
|
|||
expect_failure("tests/invalid_chunk.er", 62)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn expect_failure_collections_err() -> Result<(), ()> {
|
||||
expect_failure("tests/invalid_collections.er", 33)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn expect_failure_class_def_err() -> Result<(), ()> {
|
||||
expect_failure("tests/invalid_class_definition.er", 4)
|
||||
}
|
||||
|
||||
fn _parse_test_from_code(file_path: &'static str) -> Result<(), ParserRunnerErrors> {
|
||||
let input = Input::file(file_path.into());
|
||||
let cfg = ErgConfig {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue