@everyonesoftware/common 13.0.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/outputs/sources/ANSIStyles.d.ts +10 -0
- package/outputs/sources/ANSIStyles.d.ts.map +1 -0
- package/outputs/sources/ANSIStyles.js +23 -0
- package/outputs/sources/ANSIStyles.js.map +1 -0
- package/outputs/sources/CharacterTable.d.ts +11 -0
- package/outputs/sources/CharacterTable.d.ts.map +1 -0
- package/outputs/sources/CharacterTable.js +28 -0
- package/outputs/sources/CharacterTable.js.map +1 -0
- package/outputs/sources/Clock.d.ts +12 -0
- package/outputs/sources/Clock.d.ts.map +1 -0
- package/outputs/sources/Clock.js +10 -0
- package/outputs/sources/Clock.js.map +1 -0
- package/outputs/sources/FetchError.d.ts +7 -0
- package/outputs/sources/FetchError.d.ts.map +1 -0
- package/outputs/sources/FetchError.js +20 -0
- package/outputs/sources/FetchError.js.map +1 -0
- package/outputs/sources/HttpRequestHandler.d.ts +8 -0
- package/outputs/sources/HttpRequestHandler.d.ts.map +1 -0
- package/outputs/sources/HttpRequestHandler.js +2 -0
- package/outputs/sources/HttpRequestHandler.js.map +1 -0
- package/outputs/sources/IndentedCharacterWriteStream.d.ts +21 -0
- package/outputs/sources/IndentedCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/IndentedCharacterWriteStream.js +110 -0
- package/outputs/sources/IndentedCharacterWriteStream.js.map +1 -0
- package/outputs/sources/Indexable.d.ts +51 -0
- package/outputs/sources/Indexable.d.ts.map +1 -0
- package/outputs/sources/Indexable.js +122 -0
- package/outputs/sources/Indexable.js.map +1 -0
- package/outputs/sources/MutableIndexable.d.ts +51 -0
- package/outputs/sources/MutableIndexable.d.ts.map +1 -0
- package/outputs/sources/MutableIndexable.js +96 -0
- package/outputs/sources/MutableIndexable.js.map +1 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts +25 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts.map +1 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.js +77 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.js.map +1 -0
- package/outputs/sources/RealClock.d.ts +11 -0
- package/outputs/sources/RealClock.d.ts.map +1 -0
- package/outputs/sources/RealClock.js +15 -0
- package/outputs/sources/RealClock.js.map +1 -0
- package/outputs/sources/Token.d.ts +31 -0
- package/outputs/sources/Token.d.ts.map +1 -0
- package/outputs/sources/Token.js +80 -0
- package/outputs/sources/Token.js.map +1 -0
- package/outputs/sources/TokenType.d.ts +19 -0
- package/outputs/sources/TokenType.d.ts.map +1 -0
- package/outputs/sources/TokenType.js +27 -0
- package/outputs/sources/TokenType.js.map +1 -0
- package/outputs/sources/Tokenizer.d.ts +37 -0
- package/outputs/sources/Tokenizer.d.ts.map +1 -0
- package/outputs/sources/Tokenizer.js +163 -0
- package/outputs/sources/Tokenizer.js.map +1 -0
- package/outputs/sources/assertMessageParameters.d.ts +22 -0
- package/outputs/sources/assertMessageParameters.d.ts.map +1 -0
- package/outputs/sources/assertMessageParameters.js +2 -0
- package/outputs/sources/assertMessageParameters.js.map +1 -0
- package/outputs/sources/asyncIterator.d.ts +155 -0
- package/outputs/sources/asyncIterator.d.ts.map +1 -0
- package/outputs/sources/asyncIterator.js +303 -0
- package/outputs/sources/asyncIterator.js.map +1 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts +13 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js +34 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js.map +1 -0
- package/outputs/sources/asyncResult.d.ts +73 -0
- package/outputs/sources/asyncResult.d.ts.map +1 -0
- package/outputs/sources/asyncResult.js +33 -0
- package/outputs/sources/asyncResult.js.map +1 -0
- package/outputs/sources/basicDisposable.d.ts +21 -0
- package/outputs/sources/basicDisposable.d.ts.map +1 -0
- package/outputs/sources/basicDisposable.js +42 -0
- package/outputs/sources/basicDisposable.js.map +1 -0
- package/outputs/sources/byteList.d.ts +43 -0
- package/outputs/sources/byteList.d.ts.map +1 -0
- package/outputs/sources/byteList.js +128 -0
- package/outputs/sources/byteList.js.map +1 -0
- package/outputs/sources/byteListStream.d.ts +20 -0
- package/outputs/sources/byteListStream.d.ts.map +1 -0
- package/outputs/sources/byteListStream.js +84 -0
- package/outputs/sources/byteListStream.js.map +1 -0
- package/outputs/sources/byteReadStream.d.ts +23 -0
- package/outputs/sources/byteReadStream.d.ts.map +1 -0
- package/outputs/sources/byteReadStream.js +6 -0
- package/outputs/sources/byteReadStream.js.map +1 -0
- package/outputs/sources/byteWriteStream.d.ts +15 -0
- package/outputs/sources/byteWriteStream.d.ts.map +1 -0
- package/outputs/sources/byteWriteStream.js +6 -0
- package/outputs/sources/byteWriteStream.js.map +1 -0
- package/outputs/sources/bytes.d.ts +20 -0
- package/outputs/sources/bytes.d.ts.map +1 -0
- package/outputs/sources/bytes.js +22 -0
- package/outputs/sources/bytes.js.map +1 -0
- package/outputs/sources/characterList.d.ts +39 -0
- package/outputs/sources/characterList.d.ts.map +1 -0
- package/outputs/sources/characterList.js +122 -0
- package/outputs/sources/characterList.js.map +1 -0
- package/outputs/sources/characterListStream.d.ts +27 -0
- package/outputs/sources/characterListStream.d.ts.map +1 -0
- package/outputs/sources/characterListStream.js +103 -0
- package/outputs/sources/characterListStream.js.map +1 -0
- package/outputs/sources/characterReadStream.d.ts +25 -0
- package/outputs/sources/characterReadStream.d.ts.map +1 -0
- package/outputs/sources/characterReadStream.js +57 -0
- package/outputs/sources/characterReadStream.js.map +1 -0
- package/outputs/sources/characterReadStreamIterator.d.ts +31 -0
- package/outputs/sources/characterReadStreamIterator.d.ts.map +1 -0
- package/outputs/sources/characterReadStreamIterator.js +79 -0
- package/outputs/sources/characterReadStreamIterator.js.map +1 -0
- package/outputs/sources/characterWriteStream.d.ts +18 -0
- package/outputs/sources/characterWriteStream.d.ts.map +1 -0
- package/outputs/sources/characterWriteStream.js +27 -0
- package/outputs/sources/characterWriteStream.js.map +1 -0
- package/outputs/sources/commandLineParameter.d.ts +30 -0
- package/outputs/sources/commandLineParameter.d.ts.map +1 -0
- package/outputs/sources/commandLineParameter.js +73 -0
- package/outputs/sources/commandLineParameter.js.map +1 -0
- package/outputs/sources/commandLineParameters.d.ts +23 -0
- package/outputs/sources/commandLineParameters.d.ts.map +1 -0
- package/outputs/sources/commandLineParameters.js +82 -0
- package/outputs/sources/commandLineParameters.js.map +1 -0
- package/outputs/sources/comparable.d.ts +79 -0
- package/outputs/sources/comparable.d.ts.map +1 -0
- package/outputs/sources/comparable.js +106 -0
- package/outputs/sources/comparable.js.map +1 -0
- package/outputs/sources/comparer.d.ts +62 -0
- package/outputs/sources/comparer.d.ts.map +1 -0
- package/outputs/sources/comparer.js +102 -0
- package/outputs/sources/comparer.js.map +1 -0
- package/outputs/sources/comparison.d.ts +18 -0
- package/outputs/sources/comparison.d.ts.map +1 -0
- package/outputs/sources/comparison.js +19 -0
- package/outputs/sources/comparison.js.map +1 -0
- package/outputs/sources/concatenateIterable.d.ts +28 -0
- package/outputs/sources/concatenateIterable.d.ts.map +1 -0
- package/outputs/sources/concatenateIterable.js +74 -0
- package/outputs/sources/concatenateIterable.js.map +1 -0
- package/outputs/sources/concatenateIterator.d.ts +30 -0
- package/outputs/sources/concatenateIterator.d.ts.map +1 -0
- package/outputs/sources/concatenateIterator.js +104 -0
- package/outputs/sources/concatenateIterator.js.map +1 -0
- package/outputs/sources/condition.d.ts +248 -0
- package/outputs/sources/condition.d.ts.map +1 -0
- package/outputs/sources/condition.js +166 -0
- package/outputs/sources/condition.js.map +1 -0
- package/outputs/sources/currentProcess.d.ts +31 -0
- package/outputs/sources/currentProcess.d.ts.map +1 -0
- package/outputs/sources/currentProcess.js +106 -0
- package/outputs/sources/currentProcess.js.map +1 -0
- package/outputs/sources/dateTime.d.ts +44 -0
- package/outputs/sources/dateTime.d.ts.map +1 -0
- package/outputs/sources/dateTime.js +76 -0
- package/outputs/sources/dateTime.js.map +1 -0
- package/outputs/sources/depthFirstSearch.d.ts +9 -0
- package/outputs/sources/depthFirstSearch.d.ts.map +1 -0
- package/outputs/sources/depthFirstSearch.js +148 -0
- package/outputs/sources/depthFirstSearch.js.map +1 -0
- package/outputs/sources/disposable.d.ts +25 -0
- package/outputs/sources/disposable.d.ts.map +1 -0
- package/outputs/sources/disposable.js +16 -0
- package/outputs/sources/disposable.js.map +1 -0
- package/outputs/sources/emptyError.d.ts +7 -0
- package/outputs/sources/emptyError.d.ts.map +1 -0
- package/outputs/sources/emptyError.js +9 -0
- package/outputs/sources/emptyError.js.map +1 -0
- package/outputs/sources/english.d.ts +4 -0
- package/outputs/sources/english.d.ts.map +1 -0
- package/outputs/sources/english.js +33 -0
- package/outputs/sources/english.js.map +1 -0
- package/outputs/sources/equalFunctions.d.ts +18 -0
- package/outputs/sources/equalFunctions.d.ts.map +1 -0
- package/outputs/sources/equalFunctions.js +88 -0
- package/outputs/sources/equalFunctions.js.map +1 -0
- package/outputs/sources/fetchHttpClient.d.ts +16 -0
- package/outputs/sources/fetchHttpClient.d.ts.map +1 -0
- package/outputs/sources/fetchHttpClient.js +86 -0
- package/outputs/sources/fetchHttpClient.js.map +1 -0
- package/outputs/sources/fetchHttpResponse.d.ts +19 -0
- package/outputs/sources/fetchHttpResponse.d.ts.map +1 -0
- package/outputs/sources/fetchHttpResponse.js +72 -0
- package/outputs/sources/fetchHttpResponse.js.map +1 -0
- package/outputs/sources/flatMapIterable.d.ts +29 -0
- package/outputs/sources/flatMapIterable.d.ts.map +1 -0
- package/outputs/sources/flatMapIterable.js +61 -0
- package/outputs/sources/flatMapIterable.js.map +1 -0
- package/outputs/sources/flatMapIterator.d.ts +33 -0
- package/outputs/sources/flatMapIterator.d.ts.map +1 -0
- package/outputs/sources/flatMapIterator.js +95 -0
- package/outputs/sources/flatMapIterator.js.map +1 -0
- package/outputs/sources/generator.d.ts +55 -0
- package/outputs/sources/generator.d.ts.map +1 -0
- package/outputs/sources/generator.js +139 -0
- package/outputs/sources/generator.js.map +1 -0
- package/outputs/sources/httpClient.d.ts +21 -0
- package/outputs/sources/httpClient.d.ts.map +1 -0
- package/outputs/sources/httpClient.js +22 -0
- package/outputs/sources/httpClient.js.map +1 -0
- package/outputs/sources/httpHeader.d.ts +10 -0
- package/outputs/sources/httpHeader.d.ts.map +1 -0
- package/outputs/sources/httpHeader.js +25 -0
- package/outputs/sources/httpHeader.js.map +1 -0
- package/outputs/sources/httpHeaders.d.ts +68 -0
- package/outputs/sources/httpHeaders.d.ts.map +1 -0
- package/outputs/sources/httpHeaders.js +122 -0
- package/outputs/sources/httpHeaders.js.map +1 -0
- package/outputs/sources/httpIncomingRequest.d.ts +40 -0
- package/outputs/sources/httpIncomingRequest.d.ts.map +1 -0
- package/outputs/sources/httpIncomingRequest.js +6 -0
- package/outputs/sources/httpIncomingRequest.js.map +1 -0
- package/outputs/sources/httpIncomingResponse.d.ts +28 -0
- package/outputs/sources/httpIncomingResponse.d.ts.map +1 -0
- package/outputs/sources/httpIncomingResponse.js +6 -0
- package/outputs/sources/httpIncomingResponse.js.map +1 -0
- package/outputs/sources/httpMethod.d.ts +62 -0
- package/outputs/sources/httpMethod.d.ts.map +1 -0
- package/outputs/sources/httpMethod.js +136 -0
- package/outputs/sources/httpMethod.js.map +1 -0
- package/outputs/sources/httpOutgoingRequest.d.ts +50 -0
- package/outputs/sources/httpOutgoingRequest.d.ts.map +1 -0
- package/outputs/sources/httpOutgoingRequest.js +84 -0
- package/outputs/sources/httpOutgoingRequest.js.map +1 -0
- package/outputs/sources/httpOutgoingResponse.d.ts +46 -0
- package/outputs/sources/httpOutgoingResponse.d.ts.map +1 -0
- package/outputs/sources/httpOutgoingResponse.js +6 -0
- package/outputs/sources/httpOutgoingResponse.js.map +1 -0
- package/outputs/sources/httpServer.d.ts +29 -0
- package/outputs/sources/httpServer.d.ts.map +1 -0
- package/outputs/sources/httpServer.js +3 -0
- package/outputs/sources/httpServer.js.map +1 -0
- package/outputs/sources/inMemoryCharacterWriteStream.d.ts +15 -0
- package/outputs/sources/inMemoryCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/inMemoryCharacterWriteStream.js +52 -0
- package/outputs/sources/inMemoryCharacterWriteStream.js.map +1 -0
- package/outputs/sources/index.d.ts +111 -0
- package/outputs/sources/index.d.ts.map +1 -0
- package/outputs/sources/index.js +111 -0
- package/outputs/sources/index.js.map +1 -0
- package/outputs/sources/iterable.d.ts +132 -0
- package/outputs/sources/iterable.d.ts.map +1 -0
- package/outputs/sources/iterable.js +251 -0
- package/outputs/sources/iterable.js.map +1 -0
- package/outputs/sources/iterator.d.ts +163 -0
- package/outputs/sources/iterator.d.ts.map +1 -0
- package/outputs/sources/iterator.js +332 -0
- package/outputs/sources/iterator.js.map +1 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts +13 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.js +34 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascript.d.ts +51 -0
- package/outputs/sources/javascript.d.ts.map +1 -0
- package/outputs/sources/javascript.js +8 -0
- package/outputs/sources/javascript.js.map +1 -0
- package/outputs/sources/javascriptArrayList.d.ts +39 -0
- package/outputs/sources/javascriptArrayList.d.ts.map +1 -0
- package/outputs/sources/javascriptArrayList.js +104 -0
- package/outputs/sources/javascriptArrayList.js.map +1 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts +29 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js +77 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts +31 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.js +83 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascriptMapMap.d.ts +37 -0
- package/outputs/sources/javascriptMapMap.d.ts.map +1 -0
- package/outputs/sources/javascriptMapMap.js +88 -0
- package/outputs/sources/javascriptMapMap.js.map +1 -0
- package/outputs/sources/javascriptSetSet.d.ts +33 -0
- package/outputs/sources/javascriptSetSet.d.ts.map +1 -0
- package/outputs/sources/javascriptSetSet.js +84 -0
- package/outputs/sources/javascriptSetSet.js.map +1 -0
- package/outputs/sources/list.d.ts +106 -0
- package/outputs/sources/list.d.ts.map +1 -0
- package/outputs/sources/list.js +211 -0
- package/outputs/sources/list.js.map +1 -0
- package/outputs/sources/listQueue.d.ts +16 -0
- package/outputs/sources/listQueue.d.ts.map +1 -0
- package/outputs/sources/listQueue.js +39 -0
- package/outputs/sources/listQueue.js.map +1 -0
- package/outputs/sources/listStack.d.ts +17 -0
- package/outputs/sources/listStack.d.ts.map +1 -0
- package/outputs/sources/listStack.js +42 -0
- package/outputs/sources/listStack.js.map +1 -0
- package/outputs/sources/luxonDateTime.d.ts +26 -0
- package/outputs/sources/luxonDateTime.d.ts.map +1 -0
- package/outputs/sources/luxonDateTime.js +70 -0
- package/outputs/sources/luxonDateTime.js.map +1 -0
- package/outputs/sources/map.d.ts +105 -0
- package/outputs/sources/map.d.ts.map +1 -0
- package/outputs/sources/map.js +185 -0
- package/outputs/sources/map.js.map +1 -0
- package/outputs/sources/mapAsyncIterator.d.ts +34 -0
- package/outputs/sources/mapAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/mapAsyncIterator.js +91 -0
- package/outputs/sources/mapAsyncIterator.js.map +1 -0
- package/outputs/sources/mapIterable.d.ts +31 -0
- package/outputs/sources/mapIterable.d.ts.map +1 -0
- package/outputs/sources/mapIterable.js +64 -0
- package/outputs/sources/mapIterable.js.map +1 -0
- package/outputs/sources/mapIterator.d.ts +35 -0
- package/outputs/sources/mapIterator.d.ts.map +1 -0
- package/outputs/sources/mapIterator.js +93 -0
- package/outputs/sources/mapIterator.js.map +1 -0
- package/outputs/sources/mutableCondition.d.ts +99 -0
- package/outputs/sources/mutableCondition.d.ts.map +1 -0
- package/outputs/sources/mutableCondition.js +334 -0
- package/outputs/sources/mutableCondition.js.map +1 -0
- package/outputs/sources/mutableHttpHeaders.d.ts +44 -0
- package/outputs/sources/mutableHttpHeaders.d.ts.map +1 -0
- package/outputs/sources/mutableHttpHeaders.js +125 -0
- package/outputs/sources/mutableHttpHeaders.js.map +1 -0
- package/outputs/sources/mutableMap.d.ts +125 -0
- package/outputs/sources/mutableMap.d.ts.map +1 -0
- package/outputs/sources/mutableMap.js +179 -0
- package/outputs/sources/mutableMap.js.map +1 -0
- package/outputs/sources/network.d.ts +16 -0
- package/outputs/sources/network.d.ts.map +1 -0
- package/outputs/sources/network.js +6 -0
- package/outputs/sources/network.js.map +1 -0
- package/outputs/sources/node.d.ts +11 -0
- package/outputs/sources/node.d.ts.map +1 -0
- package/outputs/sources/node.js +24 -0
- package/outputs/sources/node.js.map +1 -0
- package/outputs/sources/nodeJSCharacterWriteStream.d.ts +9 -0
- package/outputs/sources/nodeJSCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/nodeJSCharacterWriteStream.js +28 -0
- package/outputs/sources/nodeJSCharacterWriteStream.js.map +1 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.d.ts +21 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.d.ts.map +1 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.js +88 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.js.map +1 -0
- package/outputs/sources/nodeJSHttpServer.d.ts +21 -0
- package/outputs/sources/nodeJSHttpServer.d.ts.map +1 -0
- package/outputs/sources/nodeJSHttpServer.js +83 -0
- package/outputs/sources/nodeJSHttpServer.js.map +1 -0
- package/outputs/sources/notFoundError.d.ts +7 -0
- package/outputs/sources/notFoundError.d.ts.map +1 -0
- package/outputs/sources/notFoundError.js +10 -0
- package/outputs/sources/notFoundError.js.map +1 -0
- package/outputs/sources/postCondition.d.ts +186 -0
- package/outputs/sources/postCondition.d.ts.map +1 -0
- package/outputs/sources/postCondition.js +224 -0
- package/outputs/sources/postCondition.js.map +1 -0
- package/outputs/sources/postConditionError.d.ts +7 -0
- package/outputs/sources/postConditionError.d.ts.map +1 -0
- package/outputs/sources/postConditionError.js +10 -0
- package/outputs/sources/postConditionError.js.map +1 -0
- package/outputs/sources/preCondition.d.ts +186 -0
- package/outputs/sources/preCondition.d.ts.map +1 -0
- package/outputs/sources/preCondition.js +224 -0
- package/outputs/sources/preCondition.js.map +1 -0
- package/outputs/sources/preConditionError.d.ts +7 -0
- package/outputs/sources/preConditionError.d.ts.map +1 -0
- package/outputs/sources/preConditionError.js +10 -0
- package/outputs/sources/preConditionError.js.map +1 -0
- package/outputs/sources/promiseAsyncResult.d.ts +22 -0
- package/outputs/sources/promiseAsyncResult.d.ts.map +1 -0
- package/outputs/sources/promiseAsyncResult.js +131 -0
- package/outputs/sources/promiseAsyncResult.js.map +1 -0
- package/outputs/sources/property.d.ts +15 -0
- package/outputs/sources/property.d.ts.map +1 -0
- package/outputs/sources/property.js +44 -0
- package/outputs/sources/property.js.map +1 -0
- package/outputs/sources/queue.d.ts +39 -0
- package/outputs/sources/queue.d.ts.map +1 -0
- package/outputs/sources/queue.js +14 -0
- package/outputs/sources/queue.js.map +1 -0
- package/outputs/sources/realNetwork.d.ts +10 -0
- package/outputs/sources/realNetwork.d.ts.map +1 -0
- package/outputs/sources/realNetwork.js +18 -0
- package/outputs/sources/realNetwork.js.map +1 -0
- package/outputs/sources/recreationDotGovClient.d.ts +79 -0
- package/outputs/sources/recreationDotGovClient.d.ts.map +1 -0
- package/outputs/sources/recreationDotGovClient.js +130 -0
- package/outputs/sources/recreationDotGovClient.js.map +1 -0
- package/outputs/sources/searchControl.d.ts +36 -0
- package/outputs/sources/searchControl.d.ts.map +1 -0
- package/outputs/sources/searchControl.js +6 -0
- package/outputs/sources/searchControl.js.map +1 -0
- package/outputs/sources/set.d.ts +62 -0
- package/outputs/sources/set.d.ts.map +1 -0
- package/outputs/sources/set.js +145 -0
- package/outputs/sources/set.js.map +1 -0
- package/outputs/sources/skipAsyncIterator.d.ts +34 -0
- package/outputs/sources/skipAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/skipAsyncIterator.js +94 -0
- package/outputs/sources/skipAsyncIterator.js.map +1 -0
- package/outputs/sources/skipIterator.d.ts +36 -0
- package/outputs/sources/skipIterator.d.ts.map +1 -0
- package/outputs/sources/skipIterator.js +100 -0
- package/outputs/sources/skipIterator.js.map +1 -0
- package/outputs/sources/stack.d.ts +43 -0
- package/outputs/sources/stack.d.ts.map +1 -0
- package/outputs/sources/stack.js +14 -0
- package/outputs/sources/stack.js.map +1 -0
- package/outputs/sources/stringComparer.d.ts +12 -0
- package/outputs/sources/stringComparer.d.ts.map +1 -0
- package/outputs/sources/stringComparer.js +24 -0
- package/outputs/sources/stringComparer.js.map +1 -0
- package/outputs/sources/stringIterator.d.ts +36 -0
- package/outputs/sources/stringIterator.d.ts.map +1 -0
- package/outputs/sources/stringIterator.js +94 -0
- package/outputs/sources/stringIterator.js.map +1 -0
- package/outputs/sources/strings.d.ts +78 -0
- package/outputs/sources/strings.d.ts.map +1 -0
- package/outputs/sources/strings.js +218 -0
- package/outputs/sources/strings.js.map +1 -0
- package/outputs/sources/syncResult.d.ts +32 -0
- package/outputs/sources/syncResult.d.ts.map +1 -0
- package/outputs/sources/syncResult.js +200 -0
- package/outputs/sources/syncResult.js.map +1 -0
- package/outputs/sources/takeAsyncIterator.d.ts +34 -0
- package/outputs/sources/takeAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/takeAsyncIterator.js +92 -0
- package/outputs/sources/takeAsyncIterator.js.map +1 -0
- package/outputs/sources/takeIterator.d.ts +36 -0
- package/outputs/sources/takeIterator.d.ts.map +1 -0
- package/outputs/sources/takeIterator.js +98 -0
- package/outputs/sources/takeIterator.js.map +1 -0
- package/outputs/sources/toStringFunctions.d.ts +21 -0
- package/outputs/sources/toStringFunctions.d.ts.map +1 -0
- package/outputs/sources/toStringFunctions.js +130 -0
- package/outputs/sources/toStringFunctions.js.map +1 -0
- package/outputs/sources/types.d.ts +194 -0
- package/outputs/sources/types.d.ts.map +1 -0
- package/outputs/sources/types.js +277 -0
- package/outputs/sources/types.js.map +1 -0
- package/outputs/sources/whereAsyncIterator.d.ts +33 -0
- package/outputs/sources/whereAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/whereAsyncIterator.js +91 -0
- package/outputs/sources/whereAsyncIterator.js.map +1 -0
- package/outputs/sources/whereIterable.d.ts +32 -0
- package/outputs/sources/whereIterable.d.ts.map +1 -0
- package/outputs/sources/whereIterable.js +65 -0
- package/outputs/sources/whereIterable.js.map +1 -0
- package/outputs/sources/whereIterator.d.ts +35 -0
- package/outputs/sources/whereIterator.d.ts.map +1 -0
- package/outputs/sources/whereIterator.js +102 -0
- package/outputs/sources/whereIterator.js.map +1 -0
- package/outputs/sources/wonderlandTrailClient.d.ts +202 -0
- package/outputs/sources/wonderlandTrailClient.d.ts.map +1 -0
- package/outputs/sources/wonderlandTrailClient.js +1094 -0
- package/outputs/sources/wonderlandTrailClient.js.map +1 -0
- package/outputs/tests/AssertTestCreator.d.ts +11 -0
- package/outputs/tests/AssertTestCreator.d.ts.map +1 -0
- package/outputs/tests/AssertTestCreator.js +15 -0
- package/outputs/tests/AssertTestCreator.js.map +1 -0
- package/outputs/tests/BasicTestError.d.ts +14 -0
- package/outputs/tests/BasicTestError.d.ts.map +1 -0
- package/outputs/tests/BasicTestError.js +94 -0
- package/outputs/tests/BasicTestError.js.map +1 -0
- package/outputs/tests/BasicTestErrorCreator.d.ts +11 -0
- package/outputs/tests/BasicTestErrorCreator.d.ts.map +1 -0
- package/outputs/tests/BasicTestErrorCreator.js +15 -0
- package/outputs/tests/BasicTestErrorCreator.js.map +1 -0
- package/outputs/tests/BasicTestErrorTests.d.ts +3 -0
- package/outputs/tests/BasicTestErrorTests.d.ts.map +1 -0
- package/outputs/tests/BasicTestErrorTests.js +236 -0
- package/outputs/tests/BasicTestErrorTests.js.map +1 -0
- package/outputs/tests/CharacterTableTests.d.ts +3 -0
- package/outputs/tests/CharacterTableTests.d.ts.map +1 -0
- package/outputs/tests/CharacterTableTests.js +24 -0
- package/outputs/tests/CharacterTableTests.js.map +1 -0
- package/outputs/tests/ClockTests.d.ts +5 -0
- package/outputs/tests/ClockTests.d.ts.map +1 -0
- package/outputs/tests/ClockTests.js +23 -0
- package/outputs/tests/ClockTests.js.map +1 -0
- package/outputs/tests/CommandLineParametersTests.d.ts +3 -0
- package/outputs/tests/CommandLineParametersTests.d.ts.map +1 -0
- package/outputs/tests/CommandLineParametersTests.js +58 -0
- package/outputs/tests/CommandLineParametersTests.js.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUI.d.ts +49 -0
- package/outputs/tests/ConsoleTestRunnerUI.d.ts.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUI.js +213 -0
- package/outputs/tests/ConsoleTestRunnerUI.js.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUITests.d.ts +5 -0
- package/outputs/tests/ConsoleTestRunnerUITests.d.ts.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUITests.js +26 -0
- package/outputs/tests/ConsoleTestRunnerUITests.js.map +1 -0
- package/outputs/tests/FakeClock.d.ts +16 -0
- package/outputs/tests/FakeClock.d.ts.map +1 -0
- package/outputs/tests/FakeClock.js +27 -0
- package/outputs/tests/FakeClock.js.map +1 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts +3 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.js +269 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.js.map +1 -0
- package/outputs/tests/IndexableTests.d.ts +5 -0
- package/outputs/tests/IndexableTests.d.ts.map +1 -0
- package/outputs/tests/IndexableTests.js +46 -0
- package/outputs/tests/IndexableTests.js.map +1 -0
- package/outputs/tests/MutableIndexableTests.d.ts +5 -0
- package/outputs/tests/MutableIndexableTests.d.ts.map +1 -0
- package/outputs/tests/MutableIndexableTests.js +33 -0
- package/outputs/tests/MutableIndexableTests.js.map +1 -0
- package/outputs/tests/TestCreator.d.ts +15 -0
- package/outputs/tests/TestCreator.d.ts.map +1 -0
- package/outputs/tests/TestCreator.js +13 -0
- package/outputs/tests/TestCreator.js.map +1 -0
- package/outputs/tests/TestError.d.ts +31 -0
- package/outputs/tests/TestError.d.ts.map +1 -0
- package/outputs/tests/TestError.js +5 -0
- package/outputs/tests/TestError.js.map +1 -0
- package/outputs/tests/TestErrorCreator.d.ts +6 -0
- package/outputs/tests/TestErrorCreator.d.ts.map +1 -0
- package/outputs/tests/TestErrorCreator.js +7 -0
- package/outputs/tests/TestErrorCreator.js.map +1 -0
- package/outputs/tests/TokenizerTests.d.ts +3 -0
- package/outputs/tests/TokenizerTests.d.ts.map +1 -0
- package/outputs/tests/TokenizerTests.js +100 -0
- package/outputs/tests/TokenizerTests.js.map +1 -0
- package/outputs/tests/assertTest.d.ts +32 -0
- package/outputs/tests/assertTest.d.ts.map +1 -0
- package/outputs/tests/assertTest.js +75 -0
- package/outputs/tests/assertTest.js.map +1 -0
- package/outputs/tests/assertTestTests.d.ts +3 -0
- package/outputs/tests/assertTestTests.d.ts.map +1 -0
- package/outputs/tests/assertTestTests.js +49 -0
- package/outputs/tests/assertTestTests.js.map +1 -0
- package/outputs/tests/basicTestSkip.d.ts +20 -0
- package/outputs/tests/basicTestSkip.d.ts.map +1 -0
- package/outputs/tests/basicTestSkip.js +36 -0
- package/outputs/tests/basicTestSkip.js.map +1 -0
- package/outputs/tests/byteListStreamTests.d.ts +3 -0
- package/outputs/tests/byteListStreamTests.d.ts.map +1 -0
- package/outputs/tests/byteListStreamTests.js +247 -0
- package/outputs/tests/byteListStreamTests.js.map +1 -0
- package/outputs/tests/byteListTests.d.ts +3 -0
- package/outputs/tests/byteListTests.d.ts.map +1 -0
- package/outputs/tests/byteListTests.js +5 -0
- package/outputs/tests/byteListTests.js.map +1 -0
- package/outputs/tests/bytesTests.d.ts +3 -0
- package/outputs/tests/bytesTests.d.ts.map +1 -0
- package/outputs/tests/bytesTests.js +30 -0
- package/outputs/tests/bytesTests.js.map +1 -0
- package/outputs/tests/characterListStreamTests.d.ts +3 -0
- package/outputs/tests/characterListStreamTests.d.ts.map +1 -0
- package/outputs/tests/characterListStreamTests.js +247 -0
- package/outputs/tests/characterListStreamTests.js.map +1 -0
- package/outputs/tests/characterListTests.d.ts +3 -0
- package/outputs/tests/characterListTests.d.ts.map +1 -0
- package/outputs/tests/characterListTests.js +159 -0
- package/outputs/tests/characterListTests.js.map +1 -0
- package/outputs/tests/characterWriteStreamTests.d.ts +4 -0
- package/outputs/tests/characterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/characterWriteStreamTests.js +7 -0
- package/outputs/tests/characterWriteStreamTests.js.map +1 -0
- package/outputs/tests/comparerTests.d.ts +3 -0
- package/outputs/tests/comparerTests.d.ts.map +1 -0
- package/outputs/tests/comparerTests.js +67 -0
- package/outputs/tests/comparerTests.js.map +1 -0
- package/outputs/tests/conditionTests.d.ts +3 -0
- package/outputs/tests/conditionTests.d.ts.map +1 -0
- package/outputs/tests/conditionTests.js +602 -0
- package/outputs/tests/conditionTests.js.map +1 -0
- package/outputs/tests/consoleTestRunner.d.ts +95 -0
- package/outputs/tests/consoleTestRunner.d.ts.map +1 -0
- package/outputs/tests/consoleTestRunner.js +351 -0
- package/outputs/tests/consoleTestRunner.js.map +1 -0
- package/outputs/tests/consoleTestRunnerTests.d.ts +3 -0
- package/outputs/tests/consoleTestRunnerTests.d.ts.map +1 -0
- package/outputs/tests/consoleTestRunnerTests.js +537 -0
- package/outputs/tests/consoleTestRunnerTests.js.map +1 -0
- package/outputs/tests/dateTimeTests.d.ts +3 -0
- package/outputs/tests/dateTimeTests.d.ts.map +1 -0
- package/outputs/tests/dateTimeTests.js +24 -0
- package/outputs/tests/dateTimeTests.js.map +1 -0
- package/outputs/tests/depthFirstSearchTests.d.ts +3 -0
- package/outputs/tests/depthFirstSearchTests.d.ts.map +1 -0
- package/outputs/tests/depthFirstSearchTests.js +61 -0
- package/outputs/tests/depthFirstSearchTests.js.map +1 -0
- package/outputs/tests/disposableTests.d.ts +3 -0
- package/outputs/tests/disposableTests.d.ts.map +1 -0
- package/outputs/tests/disposableTests.js +81 -0
- package/outputs/tests/disposableTests.js.map +1 -0
- package/outputs/tests/englishTests.d.ts +3 -0
- package/outputs/tests/englishTests.d.ts.map +1 -0
- package/outputs/tests/englishTests.js +68 -0
- package/outputs/tests/englishTests.js.map +1 -0
- package/outputs/tests/equalFunctionsTests.d.ts +3 -0
- package/outputs/tests/equalFunctionsTests.d.ts.map +1 -0
- package/outputs/tests/equalFunctionsTests.js +187 -0
- package/outputs/tests/equalFunctionsTests.js.map +1 -0
- package/outputs/tests/failedTest.d.ts +11 -0
- package/outputs/tests/failedTest.d.ts.map +1 -0
- package/outputs/tests/failedTest.js +21 -0
- package/outputs/tests/failedTest.js.map +1 -0
- package/outputs/tests/fetchHttpClientTests.d.ts +3 -0
- package/outputs/tests/fetchHttpClientTests.d.ts.map +1 -0
- package/outputs/tests/fetchHttpClientTests.js +21 -0
- package/outputs/tests/fetchHttpClientTests.js.map +1 -0
- package/outputs/tests/generatorTests.d.ts +3 -0
- package/outputs/tests/generatorTests.d.ts.map +1 -0
- package/outputs/tests/generatorTests.js +55 -0
- package/outputs/tests/generatorTests.js.map +1 -0
- package/outputs/tests/httpClientTests.d.ts +3 -0
- package/outputs/tests/httpClientTests.d.ts.map +1 -0
- package/outputs/tests/httpClientTests.js +12 -0
- package/outputs/tests/httpClientTests.js.map +1 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts +3 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.js +84 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.js.map +1 -0
- package/outputs/tests/index.d.ts +12 -0
- package/outputs/tests/index.d.ts.map +1 -0
- package/outputs/tests/index.js +12 -0
- package/outputs/tests/index.js.map +1 -0
- package/outputs/tests/iterableTests.d.ts +5 -0
- package/outputs/tests/iterableTests.d.ts.map +1 -0
- package/outputs/tests/iterableTests.js +155 -0
- package/outputs/tests/iterableTests.js.map +1 -0
- package/outputs/tests/iteratorTests.d.ts +5 -0
- package/outputs/tests/iteratorTests.d.ts.map +1 -0
- package/outputs/tests/iteratorTests.js +728 -0
- package/outputs/tests/iteratorTests.js.map +1 -0
- package/outputs/tests/javascriptMapMapTests.d.ts +3 -0
- package/outputs/tests/javascriptMapMapTests.d.ts.map +1 -0
- package/outputs/tests/javascriptMapMapTests.js +14 -0
- package/outputs/tests/javascriptMapMapTests.js.map +1 -0
- package/outputs/tests/listTests.d.ts +3 -0
- package/outputs/tests/listTests.d.ts.map +1 -0
- package/outputs/tests/listTests.js +202 -0
- package/outputs/tests/listTests.js.map +1 -0
- package/outputs/tests/mapIteratorTests.d.ts +3 -0
- package/outputs/tests/mapIteratorTests.d.ts.map +1 -0
- package/outputs/tests/mapIteratorTests.js +27 -0
- package/outputs/tests/mapIteratorTests.js.map +1 -0
- package/outputs/tests/mapTests.d.ts +5 -0
- package/outputs/tests/mapTests.d.ts.map +1 -0
- package/outputs/tests/mapTests.js +64 -0
- package/outputs/tests/mapTests.js.map +1 -0
- package/outputs/tests/mutableConditionTests.d.ts +3 -0
- package/outputs/tests/mutableConditionTests.d.ts.map +1 -0
- package/outputs/tests/mutableConditionTests.js +174 -0
- package/outputs/tests/mutableConditionTests.js.map +1 -0
- package/outputs/tests/mutableMapTests.d.ts +5 -0
- package/outputs/tests/mutableMapTests.d.ts.map +1 -0
- package/outputs/tests/mutableMapTests.js +102 -0
- package/outputs/tests/mutableMapTests.js.map +1 -0
- package/outputs/tests/nodeJSHttpServerTests.d.ts +3 -0
- package/outputs/tests/nodeJSHttpServerTests.d.ts.map +1 -0
- package/outputs/tests/nodeJSHttpServerTests.js +50 -0
- package/outputs/tests/nodeJSHttpServerTests.js.map +1 -0
- package/outputs/tests/notFoundErrorTests.d.ts +3 -0
- package/outputs/tests/notFoundErrorTests.d.ts.map +1 -0
- package/outputs/tests/notFoundErrorTests.js +17 -0
- package/outputs/tests/notFoundErrorTests.js.map +1 -0
- package/outputs/tests/postConditionErrorTests.d.ts +3 -0
- package/outputs/tests/postConditionErrorTests.d.ts.map +1 -0
- package/outputs/tests/postConditionErrorTests.js +17 -0
- package/outputs/tests/postConditionErrorTests.js.map +1 -0
- package/outputs/tests/preConditionErrorTests.d.ts +3 -0
- package/outputs/tests/preConditionErrorTests.d.ts.map +1 -0
- package/outputs/tests/preConditionErrorTests.js +17 -0
- package/outputs/tests/preConditionErrorTests.js.map +1 -0
- package/outputs/tests/promiseAsyncResultTests.d.ts +3 -0
- package/outputs/tests/promiseAsyncResultTests.d.ts.map +1 -0
- package/outputs/tests/promiseAsyncResultTests.js +487 -0
- package/outputs/tests/promiseAsyncResultTests.js.map +1 -0
- package/outputs/tests/propertyTests.d.ts +3 -0
- package/outputs/tests/propertyTests.d.ts.map +1 -0
- package/outputs/tests/propertyTests.js +41 -0
- package/outputs/tests/propertyTests.js.map +1 -0
- package/outputs/tests/queueTests.d.ts +3 -0
- package/outputs/tests/queueTests.d.ts.map +1 -0
- package/outputs/tests/queueTests.js +20 -0
- package/outputs/tests/queueTests.js.map +1 -0
- package/outputs/tests/recreationDotGovClientTests.d.ts +3 -0
- package/outputs/tests/recreationDotGovClientTests.d.ts.map +1 -0
- package/outputs/tests/recreationDotGovClientTests.js +111 -0
- package/outputs/tests/recreationDotGovClientTests.js.map +1 -0
- package/outputs/tests/setTests.d.ts +3 -0
- package/outputs/tests/setTests.d.ts.map +1 -0
- package/outputs/tests/setTests.js +92 -0
- package/outputs/tests/setTests.js.map +1 -0
- package/outputs/tests/skippedTest.d.ts +11 -0
- package/outputs/tests/skippedTest.d.ts.map +1 -0
- package/outputs/tests/skippedTest.js +21 -0
- package/outputs/tests/skippedTest.js.map +1 -0
- package/outputs/tests/stackTests.d.ts +3 -0
- package/outputs/tests/stackTests.d.ts.map +1 -0
- package/outputs/tests/stackTests.js +45 -0
- package/outputs/tests/stackTests.js.map +1 -0
- package/outputs/tests/stringComparerTests.d.ts +3 -0
- package/outputs/tests/stringComparerTests.d.ts.map +1 -0
- package/outputs/tests/stringComparerTests.js +47 -0
- package/outputs/tests/stringComparerTests.js.map +1 -0
- package/outputs/tests/stringIteratorTests.d.ts +3 -0
- package/outputs/tests/stringIteratorTests.d.ts.map +1 -0
- package/outputs/tests/stringIteratorTests.js +81 -0
- package/outputs/tests/stringIteratorTests.js.map +1 -0
- package/outputs/tests/stringsTests.d.ts +3 -0
- package/outputs/tests/stringsTests.d.ts.map +1 -0
- package/outputs/tests/stringsTests.js +384 -0
- package/outputs/tests/stringsTests.js.map +1 -0
- package/outputs/tests/syncResultTests.d.ts +3 -0
- package/outputs/tests/syncResultTests.d.ts.map +1 -0
- package/outputs/tests/syncResultTests.js +900 -0
- package/outputs/tests/syncResultTests.js.map +1 -0
- package/outputs/tests/test.d.ts +144 -0
- package/outputs/tests/test.d.ts.map +1 -0
- package/outputs/tests/test.js +145 -0
- package/outputs/tests/test.js.map +1 -0
- package/outputs/tests/testAction.d.ts +22 -0
- package/outputs/tests/testAction.d.ts.map +1 -0
- package/outputs/tests/testAction.js +56 -0
- package/outputs/tests/testAction.js.map +1 -0
- package/outputs/tests/testActionTests.d.ts +3 -0
- package/outputs/tests/testActionTests.d.ts.map +1 -0
- package/outputs/tests/testActionTests.js +56 -0
- package/outputs/tests/testActionTests.js.map +1 -0
- package/outputs/tests/testFailureTests.d.ts +3 -0
- package/outputs/tests/testFailureTests.d.ts.map +1 -0
- package/outputs/tests/testFailureTests.js +7 -0
- package/outputs/tests/testFailureTests.js.map +1 -0
- package/outputs/tests/testRunner.d.ts +107 -0
- package/outputs/tests/testRunner.d.ts.map +1 -0
- package/outputs/tests/testRunner.js +63 -0
- package/outputs/tests/testRunner.js.map +1 -0
- package/outputs/tests/testRunnerTests.d.ts +4 -0
- package/outputs/tests/testRunnerTests.d.ts.map +1 -0
- package/outputs/tests/testRunnerTests.js +258 -0
- package/outputs/tests/testRunnerTests.js.map +1 -0
- package/outputs/tests/testSkip.d.ts +24 -0
- package/outputs/tests/testSkip.d.ts.map +1 -0
- package/outputs/tests/testSkip.js +19 -0
- package/outputs/tests/testSkip.js.map +1 -0
- package/outputs/tests/tests.d.ts +2 -0
- package/outputs/tests/tests.d.ts.map +1 -0
- package/outputs/tests/tests.js +115 -0
- package/outputs/tests/tests.js.map +1 -0
- package/outputs/tests/toStringFunctionsTests.d.ts +3 -0
- package/outputs/tests/toStringFunctionsTests.d.ts.map +1 -0
- package/outputs/tests/toStringFunctionsTests.js +43 -0
- package/outputs/tests/toStringFunctionsTests.js.map +1 -0
- package/outputs/tests/typesTests.d.ts +3 -0
- package/outputs/tests/typesTests.d.ts.map +1 -0
- package/outputs/tests/typesTests.js +194 -0
- package/outputs/tests/typesTests.js.map +1 -0
- package/outputs/tests/whereIteratorTests.d.ts +3 -0
- package/outputs/tests/whereIteratorTests.d.ts.map +1 -0
- package/outputs/tests/whereIteratorTests.js +30 -0
- package/outputs/tests/whereIteratorTests.js.map +1 -0
- package/outputs/tests/wonderlandTrailClientTests.d.ts +3 -0
- package/outputs/tests/wonderlandTrailClientTests.d.ts.map +1 -0
- package/outputs/tests/wonderlandTrailClientTests.js +272 -0
- package/outputs/tests/wonderlandTrailClientTests.js.map +1 -0
- package/package.json +48 -48
- package/outputs/characterWriteStream-DGlmRcFl.d.cts +0 -854
- package/outputs/characterWriteStream-DGlmRcFl.d.ts +0 -854
- package/outputs/chunk-P4KLLRFY.js +0 -1199
- package/outputs/chunk-P4KLLRFY.js.map +0 -1
- package/outputs/chunk-TUBXFCG4.js +0 -9593
- package/outputs/chunk-TUBXFCG4.js.map +0 -1
- package/outputs/sourceIndex.cjs +0 -9793
- package/outputs/sourceIndex.cjs.map +0 -1
- package/outputs/sourceIndex.d.cts +0 -3533
- package/outputs/sourceIndex.d.ts +0 -3533
- package/outputs/sourceIndex.js +0 -349
- package/outputs/sourceIndex.js.map +0 -1
- package/outputs/testIndex.cjs +0 -7049
- package/outputs/testIndex.cjs.map +0 -1
- package/outputs/testIndex.d.cts +0 -544
- package/outputs/testIndex.d.ts +0 -544
- package/outputs/testIndex.js +0 -55
- package/outputs/testIndex.js.map +0 -1
- package/outputs/tests.cjs +0 -19376
- package/outputs/tests.cjs.map +0 -1
- package/outputs/tests.d.cts +0 -3
- package/outputs/tests.d.ts +0 -3
- package/outputs/tests.js +0 -10018
- package/outputs/tests.js.map +0 -1
|
@@ -0,0 +1,728 @@
|
|
|
1
|
+
import { EmptyError } from "../sources/emptyError.js";
|
|
2
|
+
import { Iterator } from "../sources/iterator.js";
|
|
3
|
+
import { NotFoundError } from "../sources/notFoundError.js";
|
|
4
|
+
import { PreConditionError } from "../sources/preConditionError.js";
|
|
5
|
+
export function test(runner) {
|
|
6
|
+
runner.testFile("iterator.ts", () => {
|
|
7
|
+
runner.testType("Iterator<T>", () => {
|
|
8
|
+
runner.testFunction("create(T[])", () => {
|
|
9
|
+
function createErrorTest(values, expected) {
|
|
10
|
+
runner.test(`with ${runner.toString(values)}`, (test) => {
|
|
11
|
+
test.assertThrows(() => Iterator.create(values), expected);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
createErrorTest(undefined, new PreConditionError("Expression: values", "Expected: not undefined and not null", "Actual: undefined"));
|
|
15
|
+
createErrorTest(null, new PreConditionError("Expression: values", "Expected: not undefined and not null", "Actual: null"));
|
|
16
|
+
function createTest(values) {
|
|
17
|
+
runner.test(`with ${runner.toString(values)}`, (test) => {
|
|
18
|
+
const iterator = Iterator.create(values);
|
|
19
|
+
test.assertEqual(iterator.toArray().await(), values);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
createTest([]);
|
|
23
|
+
createTest([1, 2, 3]);
|
|
24
|
+
createTest([false, true]);
|
|
25
|
+
});
|
|
26
|
+
runner.testFunction("next()", () => {
|
|
27
|
+
runner.testGroup("not empty", () => {
|
|
28
|
+
runner.test("not started", (test) => {
|
|
29
|
+
const values = [1, 2, 3];
|
|
30
|
+
const iterator = Iterator.create(values);
|
|
31
|
+
test.assertFalse(iterator.hasStarted());
|
|
32
|
+
test.assertFalse(iterator.hasCurrent());
|
|
33
|
+
for (const value of values) {
|
|
34
|
+
test.assertTrue(iterator.next().await());
|
|
35
|
+
test.assertTrue(iterator.hasCurrent());
|
|
36
|
+
test.assertTrue(iterator.hasStarted());
|
|
37
|
+
test.assertEqual(value, iterator.getCurrent());
|
|
38
|
+
}
|
|
39
|
+
for (let i = 0; i < 2; i++) {
|
|
40
|
+
test.assertFalse(iterator.next().await());
|
|
41
|
+
test.assertFalse(iterator.hasCurrent());
|
|
42
|
+
test.assertTrue(iterator.hasStarted());
|
|
43
|
+
test.assertThrows(() => iterator.getCurrent(), new PreConditionError("Expression: this.hasCurrent()", "Expected: true", "Actual: false"));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
runner.test("started", (test) => {
|
|
47
|
+
const values = [1, 2, 3];
|
|
48
|
+
const iterator = Iterator.create(values).start().await();
|
|
49
|
+
test.assertTrue(iterator.hasStarted());
|
|
50
|
+
test.assertTrue(iterator.hasCurrent());
|
|
51
|
+
test.assertEqual(1, iterator.getCurrent());
|
|
52
|
+
for (const value of values.slice(1)) {
|
|
53
|
+
test.assertTrue(iterator.next().await());
|
|
54
|
+
test.assertTrue(iterator.hasCurrent());
|
|
55
|
+
test.assertTrue(iterator.hasStarted());
|
|
56
|
+
test.assertEqual(value, iterator.getCurrent());
|
|
57
|
+
}
|
|
58
|
+
for (let i = 0; i < 2; i++) {
|
|
59
|
+
test.assertFalse(iterator.next().await());
|
|
60
|
+
test.assertFalse(iterator.hasCurrent());
|
|
61
|
+
test.assertTrue(iterator.hasStarted());
|
|
62
|
+
test.assertThrows(() => iterator.getCurrent(), new PreConditionError("Expression: this.hasCurrent()", "Expected: true", "Actual: false"));
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
runner.testFunction("start()", (test) => {
|
|
68
|
+
const iterator = Iterator.create([1, 2, 3]);
|
|
69
|
+
for (let i = 0; i < 2; i++) {
|
|
70
|
+
const startResult = iterator.start().await();
|
|
71
|
+
test.assertSame(startResult, iterator);
|
|
72
|
+
test.assertTrue(iterator.hasStarted());
|
|
73
|
+
test.assertTrue(iterator.hasCurrent());
|
|
74
|
+
test.assertEqual(1, iterator.getCurrent());
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
runner.testFunction("takeCurrent()", () => {
|
|
78
|
+
runner.testGroup("with non-empty", () => {
|
|
79
|
+
runner.test("not started", (test) => {
|
|
80
|
+
const iterator = Iterator.create([1, 2, 3]);
|
|
81
|
+
test.assertFalse(iterator.hasStarted());
|
|
82
|
+
test.assertFalse(iterator.hasCurrent());
|
|
83
|
+
for (let i = 0; i < 2; i++) {
|
|
84
|
+
test.assertThrows(() => iterator.takeCurrent(), new PreConditionError("Expression: iterator.hasCurrent()", "Expected: true", "Actual: false"));
|
|
85
|
+
test.assertFalse(iterator.hasStarted());
|
|
86
|
+
test.assertFalse(iterator.hasCurrent());
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
runner.test("started", (test) => {
|
|
90
|
+
const values = [1, 2, 3];
|
|
91
|
+
const iterator = Iterator.create(values).start().await();
|
|
92
|
+
test.assertTrue(iterator.hasStarted());
|
|
93
|
+
test.assertTrue(iterator.hasCurrent());
|
|
94
|
+
test.assertEqual(1, iterator.getCurrent());
|
|
95
|
+
for (let i = 0; i < values.length - 1; i++) {
|
|
96
|
+
test.assertEqual(values[i], iterator.takeCurrent().await());
|
|
97
|
+
test.assertTrue(iterator.hasStarted());
|
|
98
|
+
test.assertTrue(iterator.hasCurrent());
|
|
99
|
+
test.assertEqual(values[i + 1], iterator.getCurrent());
|
|
100
|
+
}
|
|
101
|
+
test.assertEqual(values[values.length - 1], iterator.takeCurrent().await());
|
|
102
|
+
test.assertTrue(iterator.hasStarted());
|
|
103
|
+
test.assertFalse(iterator.hasCurrent());
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
runner.testFunction("any()", () => {
|
|
108
|
+
runner.testGroup("with non-empty", () => {
|
|
109
|
+
runner.test("not started", (test) => {
|
|
110
|
+
const values = [1, 2, 3];
|
|
111
|
+
const iterator = Iterator.create(values);
|
|
112
|
+
test.assertFalse(iterator.hasStarted());
|
|
113
|
+
test.assertFalse(iterator.hasCurrent());
|
|
114
|
+
for (let i = 0; i < 2; i++) {
|
|
115
|
+
test.assertTrue(iterator.any().await());
|
|
116
|
+
test.assertTrue(iterator.hasStarted());
|
|
117
|
+
test.assertTrue(iterator.hasCurrent());
|
|
118
|
+
test.assertEqual(values[0], iterator.getCurrent());
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
runner.test("started", (test) => {
|
|
122
|
+
const values = [1, 2, 3];
|
|
123
|
+
const iterator = Iterator.create(values).start().await();
|
|
124
|
+
test.assertTrue(iterator.hasStarted());
|
|
125
|
+
test.assertTrue(iterator.hasCurrent());
|
|
126
|
+
test.assertEqual(values[0], iterator.getCurrent());
|
|
127
|
+
for (let i = 0; i < 2; i++) {
|
|
128
|
+
test.assertTrue(iterator.any().await());
|
|
129
|
+
test.assertTrue(iterator.hasStarted());
|
|
130
|
+
test.assertTrue(iterator.hasCurrent());
|
|
131
|
+
test.assertEqual(values[0], iterator.getCurrent());
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
runner.testFunction("getCount()", () => {
|
|
137
|
+
runner.testGroup("with non-empty", () => {
|
|
138
|
+
runner.test("not started", (test) => {
|
|
139
|
+
const values = [1, 2, 3];
|
|
140
|
+
const iterator = Iterator.create(values);
|
|
141
|
+
test.assertFalse(iterator.hasStarted());
|
|
142
|
+
test.assertFalse(iterator.hasCurrent());
|
|
143
|
+
test.assertEqual(values.length, iterator.getCount().await());
|
|
144
|
+
test.assertTrue(iterator.hasStarted());
|
|
145
|
+
test.assertFalse(iterator.hasCurrent());
|
|
146
|
+
for (let i = 0; i < 2; i++) {
|
|
147
|
+
test.assertEqual(iterator.getCount().await(), 0);
|
|
148
|
+
test.assertTrue(iterator.hasStarted());
|
|
149
|
+
test.assertFalse(iterator.hasCurrent());
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
runner.test("started", (test) => {
|
|
153
|
+
const values = [1, 2, 3];
|
|
154
|
+
const iterator = Iterator.create(values).start().await();
|
|
155
|
+
test.assertTrue(iterator.hasStarted());
|
|
156
|
+
test.assertTrue(iterator.hasCurrent());
|
|
157
|
+
test.assertEqual(values[0], iterator.getCurrent());
|
|
158
|
+
test.assertEqual(values.length, iterator.getCount().await());
|
|
159
|
+
test.assertTrue(iterator.hasStarted());
|
|
160
|
+
test.assertFalse(iterator.hasCurrent());
|
|
161
|
+
for (let i = 0; i < 2; i++) {
|
|
162
|
+
test.assertEqual(iterator.getCount().await(), 0);
|
|
163
|
+
test.assertTrue(iterator.hasStarted());
|
|
164
|
+
test.assertFalse(iterator.hasCurrent());
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
runner.testFunction("toArray()", () => {
|
|
170
|
+
runner.testGroup("not empty", () => {
|
|
171
|
+
runner.test("not started", (test) => {
|
|
172
|
+
const values = [1, 2, 3];
|
|
173
|
+
const iterator = Iterator.create(values);
|
|
174
|
+
test.assertEqual(values, iterator.toArray().await());
|
|
175
|
+
test.assertTrue(iterator.hasStarted());
|
|
176
|
+
test.assertFalse(iterator.hasCurrent());
|
|
177
|
+
test.assertEqual([], iterator.toArray().await());
|
|
178
|
+
test.assertTrue(iterator.hasStarted());
|
|
179
|
+
test.assertFalse(iterator.hasCurrent());
|
|
180
|
+
});
|
|
181
|
+
runner.test("started", (test) => {
|
|
182
|
+
const values = [1, 2, 3];
|
|
183
|
+
const iterator = Iterator.create(values).start().await();
|
|
184
|
+
test.assertEqual(values, iterator.toArray().await());
|
|
185
|
+
test.assertTrue(iterator.hasStarted());
|
|
186
|
+
test.assertFalse(iterator.hasCurrent());
|
|
187
|
+
test.assertEqual([], iterator.toArray().await());
|
|
188
|
+
test.assertTrue(iterator.hasStarted());
|
|
189
|
+
test.assertFalse(iterator.hasCurrent());
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
runner.testGroup("concatenate()", () => {
|
|
194
|
+
runner.testGroup("with non-started", () => {
|
|
195
|
+
runner.testGroup("empty and", () => {
|
|
196
|
+
runner.test("empty", (test) => {
|
|
197
|
+
const iterator = Iterator.create([]);
|
|
198
|
+
const concatenateIterator = iterator.concatenate([]);
|
|
199
|
+
test.assertEqual(concatenateIterator.toArray().await(), []);
|
|
200
|
+
});
|
|
201
|
+
runner.test("non-empty", (test) => {
|
|
202
|
+
const iterator = Iterator.create([]);
|
|
203
|
+
const concatenateIterator = iterator.concatenate([5]);
|
|
204
|
+
test.assertEqual(concatenateIterator.toArray().await(), [5]);
|
|
205
|
+
});
|
|
206
|
+
runner.test("two non-emptys", (test) => {
|
|
207
|
+
const iterator = Iterator.create([]);
|
|
208
|
+
const concatenateIterator = iterator.concatenate([5], [6, 7]);
|
|
209
|
+
test.assertEqual(concatenateIterator.toArray().await(), [5, 6, 7]);
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
runner.testGroup("non-empty and", () => {
|
|
213
|
+
runner.test("empty", (test) => {
|
|
214
|
+
const iterator = Iterator.create([1, 2]);
|
|
215
|
+
const concatenateIterator = iterator.concatenate([]);
|
|
216
|
+
test.assertEqual(concatenateIterator.toArray().await(), [1, 2]);
|
|
217
|
+
});
|
|
218
|
+
runner.test("non-empty", (test) => {
|
|
219
|
+
const iterator = Iterator.create([3]);
|
|
220
|
+
const concatenateIterator = iterator.concatenate([4, 5, 6]);
|
|
221
|
+
test.assertEqual(concatenateIterator.toArray().await(), [3, 4, 5, 6]);
|
|
222
|
+
});
|
|
223
|
+
runner.test("two non-emptys", (test) => {
|
|
224
|
+
const iterator = Iterator.create([7, 8, 9]);
|
|
225
|
+
const concatenateIterator = iterator.concatenate([10, 11, 12], [13]);
|
|
226
|
+
test.assertEqual(concatenateIterator.toArray().await(), [7, 8, 9, 10, 11, 12, 13]);
|
|
227
|
+
});
|
|
228
|
+
});
|
|
229
|
+
});
|
|
230
|
+
runner.testGroup("with started", () => {
|
|
231
|
+
runner.testGroup("empty and", () => {
|
|
232
|
+
runner.test("empty", (test) => {
|
|
233
|
+
const iterator = Iterator.create([]).start().await();
|
|
234
|
+
const concatenateIterator = iterator.concatenate([]);
|
|
235
|
+
test.assertEqual(concatenateIterator.toArray().await(), []);
|
|
236
|
+
});
|
|
237
|
+
runner.test("non-empty", (test) => {
|
|
238
|
+
const iterator = Iterator.create([]).start().await();
|
|
239
|
+
const concatenateIterator = iterator.concatenate([5]);
|
|
240
|
+
test.assertEqual(concatenateIterator.toArray().await(), [5]);
|
|
241
|
+
});
|
|
242
|
+
runner.test("two non-emptys", (test) => {
|
|
243
|
+
const iterator = Iterator.create([]).start().await();
|
|
244
|
+
const concatenateIterator = iterator.concatenate([5], [6, 7]);
|
|
245
|
+
test.assertEqual(concatenateIterator.toArray().await(), [5, 6, 7]);
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
runner.testGroup("non-empty and", () => {
|
|
249
|
+
runner.test("empty", (test) => {
|
|
250
|
+
const iterator = Iterator.create([1, 2]).start().await();
|
|
251
|
+
const concatenateIterator = iterator.concatenate([]);
|
|
252
|
+
test.assertEqual(concatenateIterator.toArray().await(), [1, 2]);
|
|
253
|
+
});
|
|
254
|
+
runner.test("non-empty", (test) => {
|
|
255
|
+
const iterator = Iterator.create([3]).start().await();
|
|
256
|
+
const concatenateIterator = iterator.concatenate([4, 5, 6]);
|
|
257
|
+
test.assertEqual(concatenateIterator.toArray().await(), [3, 4, 5, 6]);
|
|
258
|
+
});
|
|
259
|
+
runner.test("two non-emptys", (test) => {
|
|
260
|
+
const iterator = Iterator.create([7, 8, 9]).start().await();
|
|
261
|
+
const concatenateIterator = iterator.concatenate([10, 11, 12], [13]);
|
|
262
|
+
test.assertEqual(concatenateIterator.toArray().await(), [7, 8, 9, 10, 11, 12, 13]);
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
runner.testFunction("where()", () => {
|
|
268
|
+
runner.testGroup("with non-empty", () => {
|
|
269
|
+
runner.test("not started", (test) => {
|
|
270
|
+
const values = [1, 2, 3, 4, 5];
|
|
271
|
+
const iterator = Iterator.create(values);
|
|
272
|
+
const result = iterator.where(x => x % 2 === 1);
|
|
273
|
+
test.assertNotUndefinedAndNotNull(result);
|
|
274
|
+
test.assertNotSame(result, iterator);
|
|
275
|
+
test.assertFalse(iterator.hasStarted());
|
|
276
|
+
test.assertFalse(iterator.hasCurrent());
|
|
277
|
+
test.assertFalse(result.hasStarted());
|
|
278
|
+
test.assertFalse(result.hasCurrent());
|
|
279
|
+
for (const expectedValue of [1, 3, 5]) {
|
|
280
|
+
test.assertTrue(result.next().await());
|
|
281
|
+
test.assertTrue(result.hasStarted());
|
|
282
|
+
test.assertTrue(result.hasCurrent());
|
|
283
|
+
test.assertEqual(expectedValue, result.getCurrent());
|
|
284
|
+
test.assertTrue(iterator.hasStarted());
|
|
285
|
+
test.assertTrue(iterator.hasCurrent());
|
|
286
|
+
test.assertEqual(expectedValue, iterator.getCurrent());
|
|
287
|
+
}
|
|
288
|
+
for (let i = 0; i < 2; i++) {
|
|
289
|
+
test.assertFalse(result.next().await());
|
|
290
|
+
test.assertTrue(result.hasStarted());
|
|
291
|
+
test.assertFalse(result.hasCurrent());
|
|
292
|
+
test.assertTrue(iterator.hasStarted());
|
|
293
|
+
test.assertFalse(iterator.hasCurrent());
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
runner.test("started", (test) => {
|
|
297
|
+
const values = [1, 2, 3, 4, 5];
|
|
298
|
+
const iterator = Iterator.create(values).start().await();
|
|
299
|
+
const result = iterator.where(x => x % 2 === 1);
|
|
300
|
+
test.assertNotUndefinedAndNotNull(result);
|
|
301
|
+
test.assertNotSame(result, iterator);
|
|
302
|
+
test.assertTrue(iterator.hasStarted());
|
|
303
|
+
test.assertTrue(iterator.hasCurrent());
|
|
304
|
+
test.assertEqual(values[0], iterator.getCurrent());
|
|
305
|
+
test.assertFalse(result.hasStarted());
|
|
306
|
+
test.assertFalse(result.hasCurrent());
|
|
307
|
+
for (const expectedValue of [1, 3, 5]) {
|
|
308
|
+
test.assertTrue(result.next().await());
|
|
309
|
+
test.assertTrue(result.hasStarted());
|
|
310
|
+
test.assertTrue(result.hasCurrent());
|
|
311
|
+
test.assertEqual(expectedValue, result.getCurrent());
|
|
312
|
+
test.assertTrue(iterator.hasStarted());
|
|
313
|
+
test.assertTrue(iterator.hasCurrent());
|
|
314
|
+
test.assertEqual(expectedValue, iterator.getCurrent());
|
|
315
|
+
}
|
|
316
|
+
for (let i = 0; i < 2; i++) {
|
|
317
|
+
test.assertFalse(result.next().await());
|
|
318
|
+
test.assertTrue(result.hasStarted());
|
|
319
|
+
test.assertFalse(result.hasCurrent());
|
|
320
|
+
test.assertTrue(iterator.hasStarted());
|
|
321
|
+
test.assertFalse(iterator.hasCurrent());
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
});
|
|
325
|
+
});
|
|
326
|
+
runner.testFunction("map()", () => {
|
|
327
|
+
runner.testGroup("with non-empty", () => {
|
|
328
|
+
runner.test("not started", (test) => {
|
|
329
|
+
const values = [1, 2, 3];
|
|
330
|
+
const iterator = Iterator.create(values);
|
|
331
|
+
const result = iterator.map(x => x + 10);
|
|
332
|
+
test.assertFalse(iterator.hasStarted());
|
|
333
|
+
test.assertFalse(iterator.hasCurrent());
|
|
334
|
+
test.assertFalse(result.hasStarted());
|
|
335
|
+
test.assertFalse(result.hasCurrent());
|
|
336
|
+
for (const value of values) {
|
|
337
|
+
test.assertTrue(result.next().await());
|
|
338
|
+
test.assertTrue(result.hasStarted());
|
|
339
|
+
test.assertTrue(result.hasCurrent());
|
|
340
|
+
test.assertEqual(value + 10, result.getCurrent());
|
|
341
|
+
test.assertTrue(iterator.hasStarted());
|
|
342
|
+
test.assertTrue(iterator.hasCurrent());
|
|
343
|
+
test.assertEqual(value, iterator.getCurrent());
|
|
344
|
+
}
|
|
345
|
+
for (let i = 0; i < 2; i++) {
|
|
346
|
+
test.assertFalse(result.next().await());
|
|
347
|
+
test.assertTrue(result.hasStarted());
|
|
348
|
+
test.assertFalse(result.hasCurrent());
|
|
349
|
+
test.assertTrue(iterator.hasStarted());
|
|
350
|
+
test.assertFalse(iterator.hasCurrent());
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
runner.test("started", (test) => {
|
|
354
|
+
const values = [1, 2, 3];
|
|
355
|
+
const iterator = Iterator.create(values).start().await();
|
|
356
|
+
const result = iterator.map(x => x + 10);
|
|
357
|
+
test.assertTrue(iterator.hasStarted());
|
|
358
|
+
test.assertTrue(iterator.hasCurrent());
|
|
359
|
+
test.assertEqual(values[0], iterator.getCurrent());
|
|
360
|
+
test.assertFalse(result.hasStarted());
|
|
361
|
+
test.assertFalse(result.hasCurrent());
|
|
362
|
+
for (const value of values) {
|
|
363
|
+
test.assertTrue(result.next().await());
|
|
364
|
+
test.assertTrue(result.hasStarted());
|
|
365
|
+
test.assertTrue(result.hasCurrent());
|
|
366
|
+
test.assertEqual(value + 10, result.getCurrent());
|
|
367
|
+
test.assertTrue(iterator.hasStarted());
|
|
368
|
+
test.assertTrue(iterator.hasCurrent());
|
|
369
|
+
test.assertEqual(value, iterator.getCurrent());
|
|
370
|
+
}
|
|
371
|
+
for (let i = 0; i < 2; i++) {
|
|
372
|
+
test.assertFalse(result.next().await());
|
|
373
|
+
test.assertTrue(result.hasStarted());
|
|
374
|
+
test.assertFalse(result.hasCurrent());
|
|
375
|
+
test.assertTrue(iterator.hasStarted());
|
|
376
|
+
test.assertFalse(iterator.hasCurrent());
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
});
|
|
381
|
+
runner.testFunction("flatMap()", () => {
|
|
382
|
+
runner.test("with empty non-started iterator", (test) => {
|
|
383
|
+
const iterator = Iterator.create([]);
|
|
384
|
+
const flatMapIterator = iterator.flatMap((value) => {
|
|
385
|
+
const result = [];
|
|
386
|
+
for (let i = 0; i < value; i++) {
|
|
387
|
+
result.push(value.toString());
|
|
388
|
+
}
|
|
389
|
+
return result;
|
|
390
|
+
});
|
|
391
|
+
test.assertEqual(flatMapIterator.toArray().await(), []);
|
|
392
|
+
});
|
|
393
|
+
runner.test("with empty started iterator", (test) => {
|
|
394
|
+
const iterator = Iterator.create([]).start().await();
|
|
395
|
+
const flatMapIterator = iterator.flatMap((value) => {
|
|
396
|
+
const result = [];
|
|
397
|
+
for (let i = 0; i < value; i++) {
|
|
398
|
+
result.push(value.toString());
|
|
399
|
+
}
|
|
400
|
+
return result;
|
|
401
|
+
});
|
|
402
|
+
test.assertEqual(flatMapIterator.toArray().await(), []);
|
|
403
|
+
});
|
|
404
|
+
runner.test("with non-empty non-started iterator", (test) => {
|
|
405
|
+
const iterator = Iterator.create([1, 2, 3]);
|
|
406
|
+
const flatMapIterator = iterator.flatMap((value) => {
|
|
407
|
+
const result = [];
|
|
408
|
+
for (let i = 0; i < value; i++) {
|
|
409
|
+
result.push(value.toString());
|
|
410
|
+
}
|
|
411
|
+
return result;
|
|
412
|
+
});
|
|
413
|
+
test.assertEqual(flatMapIterator.toArray().await(), ["1", "2", "2", "3", "3", "3"]);
|
|
414
|
+
});
|
|
415
|
+
runner.test("with non-empty started iterator", (test) => {
|
|
416
|
+
const iterator = Iterator.create([1, 2, 3]).start().await();
|
|
417
|
+
const flatMapIterator = iterator.flatMap((value) => {
|
|
418
|
+
const result = [];
|
|
419
|
+
for (let i = 0; i < value; i++) {
|
|
420
|
+
result.push(value.toString());
|
|
421
|
+
}
|
|
422
|
+
return result;
|
|
423
|
+
});
|
|
424
|
+
test.assertEqual(flatMapIterator.toArray().await(), ["1", "2", "2", "3", "3", "3"]);
|
|
425
|
+
});
|
|
426
|
+
runner.test("with mapping that sometimes returns an empty iterable", (test) => {
|
|
427
|
+
const iterator = Iterator.create([1, 2, 3, 4]).start().await();
|
|
428
|
+
const flatMapIterator = iterator.flatMap((value) => {
|
|
429
|
+
const result = [];
|
|
430
|
+
if (value % 2 === 1) {
|
|
431
|
+
for (let i = 0; i < value; i++) {
|
|
432
|
+
result.push(value.toString());
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
return result;
|
|
436
|
+
});
|
|
437
|
+
test.assertEqual(flatMapIterator.toArray().await(), ["1", "3", "3", "3"]);
|
|
438
|
+
});
|
|
439
|
+
});
|
|
440
|
+
runner.testFunction("first()", () => {
|
|
441
|
+
runner.testGroup("with no condition", () => {
|
|
442
|
+
function firstErrorTest(iterable, expected) {
|
|
443
|
+
runner.test(`with ${runner.toString(iterable)}`, (test) => {
|
|
444
|
+
const iterator = Iterator.create(iterable);
|
|
445
|
+
for (let i = 0; i < 3; i++) {
|
|
446
|
+
test.assertThrows(() => { iterator.first().await(); }, expected);
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
firstErrorTest([], new EmptyError());
|
|
451
|
+
function firstTest(iterable, expected) {
|
|
452
|
+
runner.test(`with ${runner.toString(iterable)}`, (test) => {
|
|
453
|
+
const iterator = Iterator.create(iterable);
|
|
454
|
+
for (let i = 0; i < 3; i++) {
|
|
455
|
+
test.assertEqual(iterator.first().await(), expected);
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
firstTest([1], 1);
|
|
460
|
+
firstTest([2, 3], 2);
|
|
461
|
+
firstTest([4, 5, 6, 7, 8], 4);
|
|
462
|
+
});
|
|
463
|
+
runner.testGroup("with condition argument", () => {
|
|
464
|
+
function firstErrorTest(iterable, condition, expected) {
|
|
465
|
+
runner.test(`with ${runner.toString(iterable)} and ${condition?.name} condition`, (test) => {
|
|
466
|
+
const iterator = Iterator.create(iterable);
|
|
467
|
+
for (let i = 0; i < 3; i++) {
|
|
468
|
+
test.assertThrows(() => {
|
|
469
|
+
iterator.first(condition).await();
|
|
470
|
+
}, expected);
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
function isOdd(value) {
|
|
475
|
+
return value % 2 === 1;
|
|
476
|
+
}
|
|
477
|
+
function isEven(value) {
|
|
478
|
+
return value % 2 === 0;
|
|
479
|
+
}
|
|
480
|
+
firstErrorTest([], undefined, new EmptyError());
|
|
481
|
+
firstErrorTest([], null, new EmptyError());
|
|
482
|
+
firstErrorTest([1], isEven, new NotFoundError("No value was found in the Iterator that matched the provided condition."));
|
|
483
|
+
firstErrorTest([2, 4], isOdd, new NotFoundError("No value was found in the Iterator that matched the provided condition."));
|
|
484
|
+
function firstTest(iterable, condition, expected) {
|
|
485
|
+
runner.test(`with ${runner.toString(iterable)} and ${condition?.name} condition`, (test) => {
|
|
486
|
+
const iterator = Iterator.create(iterable);
|
|
487
|
+
for (let i = 0; i < 3; i++) {
|
|
488
|
+
test.assertEqual(iterator.first(condition).await(), expected);
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
firstTest([1], isOdd, 1);
|
|
493
|
+
firstTest([2, 3], isEven, 2);
|
|
494
|
+
firstTest([2, 3], isOdd, 3);
|
|
495
|
+
firstTest([4, 6, 7, 8], isEven, 4);
|
|
496
|
+
firstTest([4, 6, 7, 8], isOdd, 7);
|
|
497
|
+
});
|
|
498
|
+
});
|
|
499
|
+
runner.testFunction("skip(number)", () => {
|
|
500
|
+
function skipErrorTest(iterable, maximumToSkip, expected) {
|
|
501
|
+
runner.test(`with ${runner.andList([iterable, maximumToSkip])}`, (test) => {
|
|
502
|
+
const iterator = Iterator.create(iterable);
|
|
503
|
+
test.assertThrows(() => iterator.skip(maximumToSkip), expected);
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
skipErrorTest([], undefined, new PreConditionError("Expression: maximumToSkip", "Expected: not undefined and not null", "Actual: undefined"));
|
|
507
|
+
skipErrorTest([], null, new PreConditionError("Expression: maximumToSkip", "Expected: not undefined and not null", "Actual: null"));
|
|
508
|
+
skipErrorTest([], 0.5, new PreConditionError("Expression: maximumToSkip", "Expected: integer", "Actual: 0.5"));
|
|
509
|
+
skipErrorTest([], -1, new PreConditionError("Expression: maximumToSkip", "Expected: greater than or equal to 0", "Actual: -1"));
|
|
510
|
+
function skipTest(iterable, maximumToSkip, expected) {
|
|
511
|
+
runner.test(`with ${runner.andList([iterable, maximumToSkip])}`, (test) => {
|
|
512
|
+
const iterator = Iterator.create(iterable);
|
|
513
|
+
const skipIterator = iterator.skip(maximumToSkip);
|
|
514
|
+
test.assertEqual(expected, skipIterator.toArray().await());
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
skipTest([], 0, []);
|
|
518
|
+
skipTest([], 1, []);
|
|
519
|
+
skipTest([], 2, []);
|
|
520
|
+
skipTest(["a", "b", "c"], 0, ["a", "b", "c"]);
|
|
521
|
+
skipTest(["a", "b", "c"], 1, ["b", "c"]);
|
|
522
|
+
skipTest(["a", "b", "c"], 2, ["c"]);
|
|
523
|
+
skipTest(["a", "b", "c"], 3, []);
|
|
524
|
+
skipTest(["a", "b", "c"], 4, []);
|
|
525
|
+
});
|
|
526
|
+
});
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
export function iteratorTests(runner, creator) {
|
|
530
|
+
runner.testType("Iterator<T>", () => {
|
|
531
|
+
runner.testFunction("creator()", (test) => {
|
|
532
|
+
const iterator = creator();
|
|
533
|
+
test.assertNotUndefinedAndNotNull(iterator);
|
|
534
|
+
test.assertFalse(iterator.hasStarted());
|
|
535
|
+
test.assertFalse(iterator.hasCurrent());
|
|
536
|
+
test.assertThrows(() => iterator.getCurrent(), new PreConditionError("Expression: this.hasCurrent()", "Expected: true", "Actual: false"));
|
|
537
|
+
});
|
|
538
|
+
runner.testFunction("start()", (test) => {
|
|
539
|
+
const iterator = creator();
|
|
540
|
+
for (let i = 0; i < 2; i++) {
|
|
541
|
+
const startResult = iterator.start().await();
|
|
542
|
+
test.assertSame(startResult, iterator);
|
|
543
|
+
test.assertTrue(iterator.hasStarted());
|
|
544
|
+
test.assertFalse(iterator.hasCurrent());
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
runner.testFunction("takeCurrent()", () => {
|
|
548
|
+
runner.testGroup("with empty", () => {
|
|
549
|
+
runner.test("not started", (test) => {
|
|
550
|
+
const iterator = creator();
|
|
551
|
+
for (let i = 0; i < 2; i++) {
|
|
552
|
+
test.assertThrows(() => iterator.takeCurrent(), new PreConditionError("Expression: iterator.hasCurrent()", "Expected: true", "Actual: false"));
|
|
553
|
+
test.assertFalse(iterator.hasStarted());
|
|
554
|
+
test.assertFalse(iterator.hasCurrent());
|
|
555
|
+
}
|
|
556
|
+
});
|
|
557
|
+
runner.test("started", (test) => {
|
|
558
|
+
const iterator = creator().start().await();
|
|
559
|
+
test.assertTrue(iterator.hasStarted());
|
|
560
|
+
test.assertFalse(iterator.hasCurrent());
|
|
561
|
+
for (let i = 0; i < 2; i++) {
|
|
562
|
+
test.assertThrows(() => iterator.takeCurrent(), new PreConditionError("Expression: iterator.hasCurrent()", "Expected: true", "Actual: false"));
|
|
563
|
+
test.assertTrue(iterator.hasStarted());
|
|
564
|
+
test.assertFalse(iterator.hasCurrent());
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
});
|
|
568
|
+
});
|
|
569
|
+
runner.testFunction("next()", () => {
|
|
570
|
+
runner.testGroup("with empty", () => {
|
|
571
|
+
runner.test("not started", (test) => {
|
|
572
|
+
const iterator = creator();
|
|
573
|
+
test.assertFalse(iterator.hasStarted());
|
|
574
|
+
test.assertFalse(iterator.hasCurrent());
|
|
575
|
+
for (let i = 0; i < 2; i++) {
|
|
576
|
+
test.assertFalse(iterator.next().await());
|
|
577
|
+
test.assertTrue(iterator.hasStarted());
|
|
578
|
+
test.assertFalse(iterator.hasCurrent());
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
runner.test("started", (test) => {
|
|
582
|
+
const iterator = creator().start().await();
|
|
583
|
+
test.assertTrue(iterator.hasStarted());
|
|
584
|
+
test.assertFalse(iterator.hasCurrent());
|
|
585
|
+
for (let i = 0; i < 2; i++) {
|
|
586
|
+
test.assertFalse(iterator.next().await());
|
|
587
|
+
test.assertTrue(iterator.hasStarted());
|
|
588
|
+
test.assertFalse(iterator.hasCurrent());
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
});
|
|
593
|
+
runner.testFunction("[Symbol.iterator]()", (test) => {
|
|
594
|
+
const iterator = creator();
|
|
595
|
+
test.assertFalse(iterator.hasStarted());
|
|
596
|
+
test.assertFalse(iterator.hasCurrent());
|
|
597
|
+
const jsIterator = iterator[Symbol.iterator]();
|
|
598
|
+
test.assertFalse(iterator.hasStarted());
|
|
599
|
+
test.assertFalse(iterator.hasCurrent());
|
|
600
|
+
for (let i = 0; i < 2; i++) {
|
|
601
|
+
const result = jsIterator.next();
|
|
602
|
+
test.assertEqual(result.done, true);
|
|
603
|
+
test.assertUndefined(result.value);
|
|
604
|
+
test.assertTrue(iterator.hasStarted());
|
|
605
|
+
test.assertFalse(iterator.hasCurrent());
|
|
606
|
+
}
|
|
607
|
+
});
|
|
608
|
+
runner.testFunction("any()", (test) => {
|
|
609
|
+
const iterator = creator();
|
|
610
|
+
test.assertFalse(iterator.hasStarted());
|
|
611
|
+
test.assertFalse(iterator.hasCurrent());
|
|
612
|
+
test.assertFalse(iterator.any().await());
|
|
613
|
+
test.assertTrue(iterator.hasStarted());
|
|
614
|
+
test.assertFalse(iterator.hasCurrent());
|
|
615
|
+
});
|
|
616
|
+
runner.testFunction("getCount()", (test) => {
|
|
617
|
+
const iterator = creator();
|
|
618
|
+
test.assertFalse(iterator.hasStarted());
|
|
619
|
+
test.assertFalse(iterator.hasCurrent());
|
|
620
|
+
for (let i = 0; i < 2; i++) {
|
|
621
|
+
test.assertEqual(iterator.getCount().await(), 0);
|
|
622
|
+
test.assertTrue(iterator.hasStarted());
|
|
623
|
+
test.assertFalse(iterator.hasCurrent());
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
runner.testFunction("toArray()", (test) => {
|
|
627
|
+
const iterator = creator();
|
|
628
|
+
test.assertFalse(iterator.hasStarted());
|
|
629
|
+
test.assertFalse(iterator.hasCurrent());
|
|
630
|
+
for (let i = 0; i < 2; i++) {
|
|
631
|
+
const array = iterator.toArray().await();
|
|
632
|
+
test.assertEqual(array, []);
|
|
633
|
+
test.assertTrue(iterator.hasStarted());
|
|
634
|
+
test.assertFalse(iterator.hasCurrent());
|
|
635
|
+
}
|
|
636
|
+
});
|
|
637
|
+
runner.testFunction("where()", () => {
|
|
638
|
+
runner.test("with undefined condition", (test) => {
|
|
639
|
+
const iterator = creator();
|
|
640
|
+
test.assertThrows(() => iterator.where(undefined), new PreConditionError("Expression: condition", "Expected: not undefined and not null", "Actual: undefined"));
|
|
641
|
+
test.assertFalse(iterator.hasStarted());
|
|
642
|
+
test.assertFalse(iterator.hasCurrent());
|
|
643
|
+
});
|
|
644
|
+
runner.test("with null condition", (test) => {
|
|
645
|
+
const iterator = creator();
|
|
646
|
+
test.assertThrows(() => iterator.where(null), new PreConditionError("Expression: condition", "Expected: not undefined and not null", "Actual: null"));
|
|
647
|
+
test.assertFalse(iterator.hasStarted());
|
|
648
|
+
test.assertFalse(iterator.hasCurrent());
|
|
649
|
+
});
|
|
650
|
+
runner.testGroup("with empty", () => {
|
|
651
|
+
runner.test("not started", (test) => {
|
|
652
|
+
const iterator = creator();
|
|
653
|
+
const result = iterator.where((value) => value !== undefined);
|
|
654
|
+
test.assertNotUndefinedAndNotNull(result);
|
|
655
|
+
test.assertNotSame(result, iterator);
|
|
656
|
+
test.assertFalse(result.hasStarted());
|
|
657
|
+
test.assertFalse(result.hasCurrent());
|
|
658
|
+
test.assertFalse(iterator.hasStarted());
|
|
659
|
+
test.assertFalse(iterator.hasCurrent());
|
|
660
|
+
test.assertFalse(result.next().await());
|
|
661
|
+
test.assertTrue(result.hasStarted());
|
|
662
|
+
test.assertFalse(result.hasCurrent());
|
|
663
|
+
test.assertTrue(iterator.hasStarted());
|
|
664
|
+
test.assertFalse(iterator.hasCurrent());
|
|
665
|
+
});
|
|
666
|
+
runner.test("started", (test) => {
|
|
667
|
+
const iterator = creator().start().await();
|
|
668
|
+
test.assertTrue(iterator.hasStarted());
|
|
669
|
+
test.assertFalse(iterator.hasCurrent());
|
|
670
|
+
const result = iterator.where((value) => value !== undefined);
|
|
671
|
+
test.assertNotUndefinedAndNotNull(result);
|
|
672
|
+
test.assertNotSame(result, iterator);
|
|
673
|
+
test.assertFalse(result.hasStarted());
|
|
674
|
+
test.assertFalse(result.hasCurrent());
|
|
675
|
+
test.assertTrue(iterator.hasStarted());
|
|
676
|
+
test.assertFalse(iterator.hasCurrent());
|
|
677
|
+
test.assertFalse(result.next().await());
|
|
678
|
+
test.assertTrue(result.hasStarted());
|
|
679
|
+
test.assertFalse(result.hasCurrent());
|
|
680
|
+
test.assertTrue(iterator.hasStarted());
|
|
681
|
+
test.assertFalse(iterator.hasCurrent());
|
|
682
|
+
});
|
|
683
|
+
});
|
|
684
|
+
});
|
|
685
|
+
runner.testFunction("map()", () => {
|
|
686
|
+
runner.test("with undefined", (test) => {
|
|
687
|
+
const iterator = creator();
|
|
688
|
+
test.assertThrows(() => iterator.map(undefined), new PreConditionError("Expression: mapping", "Expected: not undefined and not null", "Actual: undefined"));
|
|
689
|
+
test.assertFalse(iterator.hasStarted());
|
|
690
|
+
test.assertFalse(iterator.hasCurrent());
|
|
691
|
+
});
|
|
692
|
+
runner.test("with null", (test) => {
|
|
693
|
+
const iterator = creator();
|
|
694
|
+
test.assertThrows(() => iterator.map(null), new PreConditionError("Expression: mapping", "Expected: not undefined and not null", "Actual: null"));
|
|
695
|
+
test.assertFalse(iterator.hasStarted());
|
|
696
|
+
test.assertFalse(iterator.hasCurrent());
|
|
697
|
+
});
|
|
698
|
+
runner.testGroup("with empty", () => {
|
|
699
|
+
runner.test("not started", (test) => {
|
|
700
|
+
const iterator = creator();
|
|
701
|
+
test.assertFalse(iterator.hasStarted());
|
|
702
|
+
test.assertFalse(iterator.hasCurrent());
|
|
703
|
+
const mapIterator = iterator.map(_ => 5);
|
|
704
|
+
test.assertFalse(mapIterator.hasStarted());
|
|
705
|
+
test.assertFalse(mapIterator.hasCurrent());
|
|
706
|
+
test.assertFalse(iterator.hasStarted());
|
|
707
|
+
test.assertFalse(iterator.hasCurrent());
|
|
708
|
+
});
|
|
709
|
+
runner.test("started", (test) => {
|
|
710
|
+
const iterator = creator().start().await();
|
|
711
|
+
test.assertTrue(iterator.hasStarted());
|
|
712
|
+
test.assertFalse(iterator.hasCurrent());
|
|
713
|
+
const mapIterator = iterator.map(_ => 5);
|
|
714
|
+
test.assertFalse(mapIterator.hasStarted());
|
|
715
|
+
test.assertFalse(mapIterator.hasCurrent());
|
|
716
|
+
test.assertTrue(iterator.hasStarted());
|
|
717
|
+
test.assertFalse(iterator.hasCurrent());
|
|
718
|
+
test.assertFalse(mapIterator.next().await());
|
|
719
|
+
test.assertTrue(mapIterator.hasStarted());
|
|
720
|
+
test.assertFalse(mapIterator.hasCurrent());
|
|
721
|
+
test.assertTrue(iterator.hasStarted());
|
|
722
|
+
test.assertFalse(iterator.hasCurrent());
|
|
723
|
+
});
|
|
724
|
+
});
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
//# sourceMappingURL=iteratorTests.js.map
|