// =============================================================================
// =ALEKSI TESTS - MAP-FILTER-KEYS
// =============================================================================

@import "aleksi/maps/map-filter-keys";

@include test-module('The map-filter-keys function')
{
  @include test('should remove the map items where the value does not pass a given test function')
  {
    @include assert-equal( map-filter-keys($str-map, 'str-index', 'e'), ('en': 'hello', 'es': 'ola') );
    @include assert-equal( map-filter-keys($str-map-keys-inserted, 'str-index', 'lang-'), $str-map-keys-inserted );
  }

  // @include xtest('should throw an error when passed invalid arguments')
  // {
  //   @include assert-equal( map-filter-keys($str-list, 'str-index', 'a'), null );
  // }
}