//! Tests auto-converted from "sass-spec/spec/directives/if/whitespace.hrx"

fn runner() -> crate::TestRunner {
    super::runner().with_cwd("whitespace")
}

mod condition {
    use super::runner;

    mod after_and {
        use super::runner;

        #[test]
        fn scss() {
            assert_eq!(
                runner().ok("@if true and\
             \n  true {}\n"),
                ""
            );
        }
    }
    mod before_and {
        use super::runner;

        #[test]
        fn scss() {
            assert_eq!(
                runner().ok("@if true \
             \n  and true{}\n"),
                ""
            );
        }
    }
}
mod test_else {
    use super::runner;

    mod before_block {
        use super::runner;

        #[test]
        fn scss() {
            assert_eq!(
                runner().ok("@if true {}\
             \n@else\
             \n  {}\n"),
                ""
            );
        }
    }
}
mod else_if {
    use super::runner;

    mod after_condition {
        use super::runner;

        #[test]
        fn scss() {
            assert_eq!(
                runner().ok("@if true {}\
             \n@else if true \
             \n  {}\n"),
                ""
            );
        }
    }
    mod before_condition {
        use super::runner;

        #[test]
        fn scss() {
            assert_eq!(
                runner().ok("@if true {}\
             \n@else if \
             \n  true {}\n"),
                ""
            );
        }
    }
}
mod error {
    use super::runner;

    mod else_if {
        use super::runner;

        mod before_if {
            use super::runner;

            #[test]
            fn scss() {
                assert_eq!(
                    runner().ok("@if true {}\
             \n@else \
             \n  if true {}\n"),
                    ""
                );
            }
        }
    }
}
mod test_if {
    use super::runner;

    mod before_condition {
        use super::runner;

        #[test]
        fn scss() {
            assert_eq!(
                runner().ok("@if\
             \n  true {}\n"),
                ""
            );
        }
    }
}
