Skip to content

Commit

Permalink
test: ignore GLR cyclic grammar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
igordejanovic committed Oct 14, 2023
1 parent 555f686 commit 5025b2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/src/glr/special/cyclic_1/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ rustemo_mod!(lang_actions, "/src/glr/special/cyclic_1");
use self::lang::LangParser;

#[test]
#[ignore]
fn glr_special_cyclic_1() {
let forest = LangParser::new().parse("x").unwrap();

// This will cause stack overflow as the forest is circular
//

// TODO: Detection of circular forest should be implemented and a panic with
// the cause should be done.
//assert_eq!(forest.solutions(), 1);
assert_eq!(forest.solutions(), 1);
}
1 change: 1 addition & 0 deletions tests/src/glr/special/cyclic_2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ rustemo_mod!(lang_actions, "/src/glr/special/cyclic_2");
use self::lang::LangParser;

#[test]
#[ignore]
fn glr_special_cyclic_2() {
let forest = LangParser::new().parse("x").unwrap();

Expand Down

0 comments on commit 5025b2c

Please sign in to comment.