You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubfnf1() -> u32{1}#[cfg(test)]mod tests {use hello_world::f1;#[test]fninvisible_to_linter(){let x = true;iffalse == x {println!("x is false");}assert_eq!(1, f1());}}
inside the lib.cairo, linter won't catch the false == x problem inside the invisible_to_linter.
When we create /tests/test1.cairo integration test, linter catches it with no problem.
The text was updated successfully, but these errors were encountered:
Currenctly when we put the
inside the
lib.cairo
, linter won't catch thefalse == x
problem inside theinvisible_to_linter
.When we create
/tests/test1.cairo
integration test, linter catches it with no problem.The text was updated successfully, but these errors were encountered: