rsass 0.29.2

Sass implementation in pure rust (not complete yet)
Documentation
//! Tests auto-converted from "sass-spec/spec/operators/modulo.hrx"

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

mod degenerate {
    use super::runner;

    mod modulus {
        use super::runner;

        mod infinity {
            use super::runner;

            #[test]
            fn negative_and_negative() {
                assert_eq!(
                    runner().ok("a {b: -1px % calc(-infinity * 1px)}\n"),
                    "a {\
         \n  b: -1px;\
         \n}\n"
                );
            }
            #[test]
            fn negative_and_positive() {
                assert_eq!(
                    runner().ok("a {b: -1px % calc(infinity * 1px)}\n"),
                    "a {\
         \n  b: calc(NaN * 1px);\
         \n}\n"
                );
            }
            #[test]
            fn positive_and_negative() {
                assert_eq!(
                    runner().ok("a {b: 1px % calc(-infinity * 1px)}\n"),
                    "a {\
         \n  b: calc(NaN * 1px);\
         \n}\n"
                );
            }
            #[test]
            fn positive_and_positive() {
                assert_eq!(
                    runner().ok("a {b: 1px % calc(infinity * 1px)}\n"),
                    "a {\
         \n  b: 1px;\
         \n}\n"
                );
            }
        }
    }
}