// =============================================================================
// =ALEKSI TETS - MAP-HAS-KEYS
// =============================================================================

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

@include test-module('The map-has-keys function')
{
  @include test('should return true if a map has all the keys in a given list')
  {
    @include assert-equal( map-has-keys($str-map, 'en' 'es'), true );
    @include assert-equal( map-has-keys($str-map, 'en'), true );
    @include assert-equal( map-has-keys($num-map, 'int' 'px'), true );
  }

  @include test('should also return false if the map does not have one or more of the given keys')
  {
    @include assert-equal( map-has-keys($str-map, 'foo' 'bar' 'baz'), false );
    @include assert-equal( map-has-keys($str-map, 'en' 'fr' 'es' 'wiz'), false );
    @include assert-equal( map-has-keys($str-map, 'foo'), false );
    @include assert-equal( map-has-keys($num-map, 'foo' 'bar'), false );
    @include assert-equal( map-has-keys($num-map, 'int' 'px' 'foo'), false );
  }
}