
@include test-module('Sassdash') {
  @include test('_size') {
    $list: 1 2 3;

    @include assert-equal(_size(('one': 1, 'two': 2, 'three': 3)), 3,
      'should return the number of own enumerable properties of a map');

    @include assert-equal(_size($list), 3,
      'should return the length of a list');

    @each $value in $test-falsey {
      @include assert-equal(_size($value), 0,
        'should accept a falsey map arg');
    }

    $args: test-args(1, 2, 3);

    @include assert-equal(_size($args), 3,
      'should work with arglist object');

    @include assert-equal(_size('abc'), 3,
      'should work with a string for collection');
  }
}