'use strict';

// const assert = require('chai').assert;

describe('ES2015 Iterators ', () => {
  it('should iterate over an array', () => {
    const arr = [1, 2, 3];

    for (const i of arr) {
      console.log(i);
    }
  });

  it('should iterate over a string', () => {
    const str = 'test';

    for (const i of str) {
      console.log(i);
    }
  });

  it('should iterate over a map', () => {
    const map = new Map([['one', 1], ['two', 2]]);

    for (const i of map) {
      console.log(i);
    }
  });

  it('should iterate over a set', () => {
    const set = new Set([1, 2]);

    for (const i of set) {
      console.log(i);
    }
  });
});

@@ -648,13 +648,286 @@
  %7D%0A  %7D);
+%0A%0A  it('should print iterator contents', () =%3E %7B%0A    const set = new Set(%5B1, 2, 3%5D);%0A%0A    const iterator = set%5BSymbol.iterator%5D();%0A%0A    console.log(iterator.next());%0A    console.log(iterator.next());%0A    console.log(iterator.next());%0A    console.log(iterator.next());%0A  %7D);
 %0A%7D);%0A

print iterable contents