Skip to content
This repository was archived by the owner on Dec 25, 2018. It is now read-only.

Commit 31ec1b9

Browse files
author
electricessence
committed
Added full unit test coverage for Set<T> and fixed any issues revealed.
1 parent c488863 commit 31ec1b9

File tree

11 files changed

+362
-56
lines changed

11 files changed

+362
-56
lines changed

dist/commonjs/System/Collections/Enumeration/Enumerator.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/commonjs/System/Collections/Enumeration/Enumerator.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/System/Collections/Enumeration/Enumerator.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/System/Collections/Enumeration/Enumerator.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/System/Collections/Enumeration/Enumerator.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
///<reference path="IYield.d.ts"/>
1010
'use strict'; // For compatibility with (let, const, function, class);
1111

12-
import Type from '../../Types';
13-
import DisposableBase from '../../Disposable/DisposableBase';
14-
import ArrayEnumerator from './ArrayEnumerator';
15-
import IndexEnumerator from './IndexEnumerator';
12+
import Type from "../../Types";
13+
import ArrayEnumerator from "./ArrayEnumerator";
14+
import IndexEnumerator from "./IndexEnumerator";
1615

1716

1817
class EmptyEnumerator implements IEnumerator<any>
@@ -33,6 +32,9 @@ class EmptyEnumerator implements IEnumerator<any>
3332
}
3433

3534
const Empty = new EmptyEnumerator();
35+
Object.freeze(Empty);
36+
37+
export const empty:IEnumerator<any> = Empty;
3638

3739
// Could be array, or IEnumerable...
3840
export function from<T>(source:IEnumerable<T> | IArray<T>):IEnumerator<T>

0 commit comments

Comments
 (0)