//! Tests auto-converted from "sass-spec/spec/core_functions/color/hwb/three_args/units.hrx"

#[allow(unused)]
fn runner() -> crate::TestRunner {
    super::runner().with_cwd("units")
}

mod hue {
    #[allow(unused)]
    use super::runner;

    #[test]
    fn deg() {
        assert_eq!(
            runner().ok("@use \'sass:color\';\
             \na {b: color.hwb(0deg, 30%, 40%)}\n"),
            "a {\
         \n  b: #994d4d;\
         \n}\n"
        );
    }
    #[test]
    #[ignore] // unexepected error
    fn non_angle() {
        assert_eq!(
            runner().ok("@use \'sass:color\';\
             \na {b: color.hwb(1in, 30%, 40%)}\n"),
            "a {\
         \n  b: #994e4d;\
         \n}\n"
        );
    }
    #[test]
    fn rad() {
        assert_eq!(
            runner().ok("@use \'sass:color\';\
             \na {b: color.hwb(1rad, 30%, 40%)}\n"),
            "a {\
         \n  b: #99964d;\
         \n}\n"
        );
    }
}
