// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
/*-----------------------------------------------------------------------------
| Copyright (c) 2014-2017, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|----------------------------------------------------------------------------*/
import { map } from '@lumino/algorithm';

import { testIterator } from './iter.spec';

describe('@lumino/algorithm', () => {
  describe('map()', () => {
    testIterator(() => {
      let result = [0, 1, 4, 9, 16, 25];
      let it = map([0, 1, 2, 3, 4, 5], x => x ** 2);
      return [it, result];
    });
  });
});
