//! Tests auto-converted from "sass-spec/spec/libsass/lists.hrx"

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

#[test]
fn test() {
    assert_eq!(
        runner().ok("div {\
             \n  $list: append(1/2 3, 4);\
             \n  content: (1 2 3) == (1, 2, 3);\
             \n  content: (1 2 3) == (1 2 3);\
             \n  content: var $list;\
             \n  content: lit (1/2 3 4);\
             \n  content: (1/2 3 4) == $list;\
             \n  a: length((1/2 3 4)), length($list);\
             \n  b: nth((1/2 3 4), 1), nth($list, 1);\
             \n  content: (1/2 3 4) == (1/2 3 4);\
             \n  /***/\
             \n  content: length($list);\
             \n  content: type-of(nth($list, 1));\
             \n  content: nth($list, 1);\
             \n  content: nth(1/2 3 4, 1);\
             \n  $a: 1 2 3;\
             \n  $b: (1 2 3);\
             \n  content: $a == $b;\
             \n  content: 1 2 () 3;\
             \n  color: red == #ff0000;\
             \n  $color-list : fudge red blue;\
             \n  color: nth($color-list, 2) == #ff0000;\
             \n  color: nth($color-list, 2) == red;\
             \n}"),
        "div {\
         \n  content: false;\
         \n  content: true;\
         \n  content: var 1/2 3 4;\
         \n  content: lit 1/2 3 4;\
         \n  content: true;\
         \n  a: 3, 3;\
         \n  b: 0.5, 0.5;\
         \n  content: true;\
         \n  /***/\
         \n  content: 3;\
         \n  content: number;\
         \n  content: 0.5;\
         \n  content: 0.5;\
         \n  content: true;\
         \n  content: 1 2 3;\
         \n  color: true;\
         \n  color: true;\
         \n  color: true;\
         \n}\n"
    );
}
