Skip to content

Commit

Permalink
#[ignore] test instead of commenting out
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljklein committed Dec 12, 2024
1 parent e9a6d31 commit 74615fc
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions compiler/noirc_frontend/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1289,23 +1289,23 @@ fn lambda$f1(mut env$l1: (Field)) -> Field {

// TODO(https://github.com/noir-lang/noir/issues/6780): currently failing
// with a stack overflow
//
// #[test]
// fn deny_cyclic_globals() {
// let src = r#"
// global A: u32 = B;
// global B: u32 = A;
//
// fn main() {}
// "#;
//
// let errors = get_program_errors(src);
// assert_eq!(errors.len(), 1);
// assert!(matches!(
// errors[0].0,
// CompilationError::ResolverError(ResolverError::DependencyCycle { .. })
// ));
// }
#[test]
#[ignore]
fn deny_cyclic_globals() {
let src = r#"
global A: u32 = B;
global B: u32 = A;
fn main() {}
"#;

let errors = get_program_errors(src);
assert_eq!(errors.len(), 1);
assert!(matches!(
errors[0].0,
CompilationError::ResolverError(ResolverError::DependencyCycle { .. })
));
}

#[test]
fn deny_cyclic_type_aliases() {
Expand Down

0 comments on commit 74615fc

Please sign in to comment.