// =============================================================================
// =ALEKSI - MAP-WALK-KEYS
// =============================================================================

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

@include test-module('The map-walk-keys function')
{
  @include test('should call the given function on all keys in a map')
  {
    @include assert-equal( map-walk-keys($str-map, 'to-upper-case'), $str-map-keys-upper-case );
  }

  @include test('should accepts additional arguments and pass them over to the function')
  {
    @include assert-equal( map-walk-keys($str-map, 'str-insert', 'lang-', 1), $str-map-keys-inserted );
  }

  // @include xtest('should throw an error when passed something else than a map')
  // {
  //   @include assert-equal( map-walk-keys($word, 'to-upper-case'), null );
  //   @include assert-equal( map-walk-keys($str-list, 'to-upper-case'), null );
  // }
}