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

Commit

Permalink
Added full unit test coverage for Set<T> and fixed any issues revealed.
Browse files Browse the repository at this point in the history
  • Loading branch information
electricessence committed Apr 14, 2016
1 parent c488863 commit 31ec1b9
Show file tree
Hide file tree
Showing 11 changed files with 362 additions and 56 deletions.
2 changes: 2 additions & 0 deletions dist/commonjs/System/Collections/Enumeration/Enumerator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions source/System/Collections/Enumeration/Enumerator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/System/Collections/Enumeration/Enumerator.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions source/System/Collections/Enumeration/Enumerator.ts
Expand Up @@ -9,10 +9,9 @@
///<reference path="IYield.d.ts"/>
'use strict'; // For compatibility with (let, const, function, class);

import Type from '../../Types';
import DisposableBase from '../../Disposable/DisposableBase';
import ArrayEnumerator from './ArrayEnumerator';
import IndexEnumerator from './IndexEnumerator';
import Type from "../../Types";
import ArrayEnumerator from "./ArrayEnumerator";
import IndexEnumerator from "./IndexEnumerator";


class EmptyEnumerator implements IEnumerator<any>
Expand All @@ -33,6 +32,9 @@ class EmptyEnumerator implements IEnumerator<any>
}

const Empty = new EmptyEnumerator();
Object.freeze(Empty);

export const empty:IEnumerator<any> = Empty;

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

0 comments on commit 31ec1b9

Please sign in to comment.