@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 @@
|
|
|
1
|
+
{"version":3,"file":"recreationDotGovClientTests.d.ts","sourceRoot":"","sources":["../../tests/recreationDotGovClientTests.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAsL7C"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { HttpClient } from "../sources/httpClient.js";
|
|
2
|
+
import { PreConditionError } from "../sources/preConditionError.js";
|
|
3
|
+
import { RecreationDotGovClient, RecreationDotGovError } from "../sources/recreationDotGovClient.js";
|
|
4
|
+
import { WonderlandTrailClient, WonderlandTrailLocations } from "../sources/wonderlandTrailClient.js";
|
|
5
|
+
import { hasNetworkAccess } from "./tests.js";
|
|
6
|
+
export function test(runner) {
|
|
7
|
+
runner.testFile("recreationDotGovClient.ts", () => {
|
|
8
|
+
runner.testType("RecreationDotGovClient", () => {
|
|
9
|
+
runner.testFunction("create()", () => {
|
|
10
|
+
function createErrorTest(httpClient, expected) {
|
|
11
|
+
runner.test(`with ${runner.toString(httpClient)}`, (test) => {
|
|
12
|
+
test.assertThrows(() => RecreationDotGovClient.create(httpClient), expected);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
createErrorTest(undefined, new PreConditionError("Expression: httpClient", "Expected: not undefined and not null", "Actual: undefined"));
|
|
16
|
+
createErrorTest(null, new PreConditionError("Expression: httpClient", "Expected: not undefined and not null", "Actual: null"));
|
|
17
|
+
runner.test("with default HttpClient", (test) => {
|
|
18
|
+
const httpClient = HttpClient.create();
|
|
19
|
+
const recreationDotGovClient = RecreationDotGovClient.create(httpClient);
|
|
20
|
+
test.assertNotUndefinedAndNotNull(recreationDotGovClient);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
runner.testFunction("getPermitItinerary()", () => {
|
|
24
|
+
function getPermitItineraryErrorTest(itineraryId, expected) {
|
|
25
|
+
runner.test(`with ${runner.toString(itineraryId)}`, async (test) => {
|
|
26
|
+
const client = RecreationDotGovClient.create(HttpClient.create());
|
|
27
|
+
await test.assertThrowsAsync(async () => await client.getPermitItinerary(itineraryId), expected);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
getPermitItineraryErrorTest(undefined, new PreConditionError("Expression: permitItineraryId", "Expected: not undefined and not null", "Actual: undefined"));
|
|
31
|
+
getPermitItineraryErrorTest(null, new PreConditionError("Expression: permitItineraryId", "Expected: not undefined and not null", "Actual: null"));
|
|
32
|
+
getPermitItineraryErrorTest("", new PreConditionError("Expression: permitItineraryId", "Expected: not empty", "Actual: \"\""));
|
|
33
|
+
runner.test("with invalid permit itinerary id", runner.skip(!hasNetworkAccess), async (test) => {
|
|
34
|
+
const client = RecreationDotGovClient.create(HttpClient.create());
|
|
35
|
+
await test.assertThrowsAsync(async () => await client.getPermitItinerary("oopsie!"), new RecreationDotGovError(`No permit itinerary found for id: "oopsie!"`));
|
|
36
|
+
});
|
|
37
|
+
runner.test("with valid permit itinerary id", runner.skip(!hasNetworkAccess), async (test) => {
|
|
38
|
+
const client = RecreationDotGovClient.create(HttpClient.create());
|
|
39
|
+
const result = await client.getPermitItinerary(WonderlandTrailClient.permitItineraryId);
|
|
40
|
+
test.assertNotUndefinedAndNotNull(result);
|
|
41
|
+
test.assertEqual(result.id, WonderlandTrailClient.permitItineraryId);
|
|
42
|
+
test.assertEqual(result.name, "Mount Rainier National Park Wilderness and Climbing Permits");
|
|
43
|
+
test.assertNotUndefinedAndNotNull(result.divisions);
|
|
44
|
+
test.assertTrue(Object.keys(result.divisions).length > 0);
|
|
45
|
+
for (const division of Object.values(result.divisions)) {
|
|
46
|
+
test.assertNotUndefinedAndNotNull(division.id);
|
|
47
|
+
test.assertNotUndefinedAndNotNull(division.district);
|
|
48
|
+
test.assertNotUndefinedAndNotNull(division.name);
|
|
49
|
+
test.assertNotUndefinedAndNotNull(division.type);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
runner.testFunction("getDivisionAvailability()", () => {
|
|
54
|
+
function getDivisionAvailabilityErrorTest(itineraryId, divisionId, month, year, expected) {
|
|
55
|
+
runner.test(`with ${runner.andList([itineraryId, divisionId, month, year])}`, async (test) => {
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
getDivisionAvailabilityErrorTest(undefined, "fake-division-id", 5, 2026, new PreConditionError("Expression: permitItineraryId", "Expected: not undefined and not null", "Actual: undefined"));
|
|
59
|
+
getDivisionAvailabilityErrorTest(null, "fake-division-id", 5, 2026, new PreConditionError("Expression: permitItineraryId", "Expected: not undefined and not null", "Actual: null"));
|
|
60
|
+
getDivisionAvailabilityErrorTest("", "fake-division-id", 5, 2026, new PreConditionError("Expression: permitItineraryId", "Expected: not empty", "Actual: \"\""));
|
|
61
|
+
getDivisionAvailabilityErrorTest("oopsie!", "fake-division-id", 5, 2026, new RecreationDotGovError(`No permit itinerary found for id: "oopsie!"`));
|
|
62
|
+
runner.test("with invalid division id", runner.skip(!hasNetworkAccess), async (test) => {
|
|
63
|
+
const client = RecreationDotGovClient.create(HttpClient.create());
|
|
64
|
+
const itineraryId = WonderlandTrailClient.permitItineraryId;
|
|
65
|
+
const divisionId = "fake-division-id";
|
|
66
|
+
const month = 5;
|
|
67
|
+
const year = 2026;
|
|
68
|
+
const earlyAccessPermitLotteryId = "";
|
|
69
|
+
const response = await client.getDivisionAvailability(itineraryId, divisionId, month, year, earlyAccessPermitLotteryId);
|
|
70
|
+
test.assertNotUndefinedAndNotNull(response);
|
|
71
|
+
test.assertNotUndefinedAndNotNull(response.json);
|
|
72
|
+
test.assertNotUndefinedAndNotNull(response.dayAvailabilities);
|
|
73
|
+
test.assertEqual(0, response.dayAvailabilities.getCount().await());
|
|
74
|
+
test.assertUndefined(response.maximumGroupSize);
|
|
75
|
+
test.assertUndefined(response.minimumGroupSize);
|
|
76
|
+
});
|
|
77
|
+
runner.test("with Sunrise Camp division id", runner.skip(!hasNetworkAccess), async (test) => {
|
|
78
|
+
const client = RecreationDotGovClient.create(HttpClient.create());
|
|
79
|
+
const itineraryId = WonderlandTrailClient.permitItineraryId;
|
|
80
|
+
const divisionId = WonderlandTrailLocations.sunriseCamp.divisionId;
|
|
81
|
+
const month = 8;
|
|
82
|
+
const year = 2026;
|
|
83
|
+
const earlyAccessPermitLotteryId = "";
|
|
84
|
+
const response = await client.getDivisionAvailability(itineraryId, divisionId, month, year, earlyAccessPermitLotteryId);
|
|
85
|
+
test.assertNotUndefinedAndNotNull(response);
|
|
86
|
+
test.assertNotUndefinedAndNotNull(response.json);
|
|
87
|
+
test.assertNotUndefinedAndNotNull(response.dayAvailabilities);
|
|
88
|
+
test.assertEqual(31, response.dayAvailabilities.getCount().await());
|
|
89
|
+
test.assertNotUndefinedAndNotNull(response.maximumGroupSize);
|
|
90
|
+
test.assertNotUndefinedAndNotNull(response.minimumGroupSize);
|
|
91
|
+
});
|
|
92
|
+
runner.test("with Indian Bar division id", runner.skip(), async (test) => {
|
|
93
|
+
const client = RecreationDotGovClient.create(HttpClient.create());
|
|
94
|
+
const itineraryId = WonderlandTrailClient.permitItineraryId;
|
|
95
|
+
const divisionId = WonderlandTrailLocations.indianBar.divisionId;
|
|
96
|
+
const month = 7;
|
|
97
|
+
const year = 2026;
|
|
98
|
+
const earlyAccessPermitLotteryId = "";
|
|
99
|
+
const response = await client.getDivisionAvailability(itineraryId, divisionId, month, year, earlyAccessPermitLotteryId);
|
|
100
|
+
test.assertNotUndefinedAndNotNull(response);
|
|
101
|
+
test.assertNotUndefinedAndNotNull(response.json);
|
|
102
|
+
test.assertNotUndefinedAndNotNull(response.dayAvailabilities);
|
|
103
|
+
test.assertEqual(28, response.dayAvailabilities.getCount().await());
|
|
104
|
+
test.assertNotUndefinedAndNotNull(response.maximumGroupSize);
|
|
105
|
+
test.assertNotUndefinedAndNotNull(response.minimumGroupSize);
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=recreationDotGovClientTests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recreationDotGovClientTests.js","sourceRoot":"","sources":["../../tests/recreationDotGovClientTests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAkF,qBAAqB,EAAuC,MAAM,sCAAsC,CAAC;AAC1N,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAGtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,UAAU,IAAI,CAAC,MAAkB;IAEnC,MAAM,CAAC,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;QAE9C,MAAM,CAAC,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;YAE3C,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,GAAG,EAAE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AU7C,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAiI7C"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Set } from "../sources/set.js";
|
|
2
|
+
import { NotFoundError } from "../sources/notFoundError.js";
|
|
3
|
+
import { PreConditionError } from "../sources/preConditionError.js";
|
|
4
|
+
export function test(runner) {
|
|
5
|
+
runner.testFile("set.ts", () => {
|
|
6
|
+
runner.testType("Set<T>", () => {
|
|
7
|
+
runner.testFunction("create()", (test) => {
|
|
8
|
+
const set = Set.create();
|
|
9
|
+
test.assertNotUndefinedAndNotNull(set);
|
|
10
|
+
test.assertEqual(0, set.getCount().await());
|
|
11
|
+
test.assertEqual([], set.toArray().await());
|
|
12
|
+
});
|
|
13
|
+
runner.testFunction("add()", (test) => {
|
|
14
|
+
const set = Set.create();
|
|
15
|
+
for (let i = 0; i < 3; i++) {
|
|
16
|
+
const addResult = set.add(20);
|
|
17
|
+
test.assertSame(set, addResult);
|
|
18
|
+
test.assertTrue(set.contains(20).await());
|
|
19
|
+
test.assertEqual(set.getCount().await(), 1);
|
|
20
|
+
test.assertEqual([20], set.toArray().await());
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
runner.testFunction("addAll()", (test) => {
|
|
24
|
+
const set = Set.create();
|
|
25
|
+
for (let i = 0; i < 3; i++) {
|
|
26
|
+
const addResult = set.addAll([20, 20, 25, 26]);
|
|
27
|
+
test.assertSame(set, addResult);
|
|
28
|
+
test.assertTrue(set.contains(20).await());
|
|
29
|
+
test.assertTrue(set.contains(25).await());
|
|
30
|
+
test.assertTrue(set.contains(26).await());
|
|
31
|
+
test.assertEqual(set.getCount().await(), 3);
|
|
32
|
+
test.assertEqual([20, 25, 26], set.toArray().await());
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
runner.testFunction("remove()", (test) => {
|
|
36
|
+
const set = Set.create();
|
|
37
|
+
test.assertThrows(set.remove(15), new NotFoundError("Could not find 15."));
|
|
38
|
+
set.add(16);
|
|
39
|
+
const removeResult = set.remove(16);
|
|
40
|
+
test.assertNotUndefinedAndNotNull(removeResult);
|
|
41
|
+
test.assertFalse(set.contains(16).await());
|
|
42
|
+
test.assertUndefined(removeResult.await());
|
|
43
|
+
test.assertThrows(set.remove(16), new NotFoundError("Could not find 16."));
|
|
44
|
+
});
|
|
45
|
+
runner.testFunction("toString()", () => {
|
|
46
|
+
function toStringTest(set, expected) {
|
|
47
|
+
runner.test(`with ${runner.toString(set)}`, (test) => {
|
|
48
|
+
test.assertEqual(set.toString(), expected);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
toStringTest(Set.create(), "{}");
|
|
52
|
+
toStringTest(Set.create().addAll([1]), "{1}");
|
|
53
|
+
toStringTest(Set.create().addAll([1, 2]), "{1,2}");
|
|
54
|
+
toStringTest(Set.create().addAll([3, 1, 2]), "{3,1,2}");
|
|
55
|
+
});
|
|
56
|
+
runner.testFunction("equals()", () => {
|
|
57
|
+
function equalsTest(set, right, expected) {
|
|
58
|
+
runner.test(`with ${runner.andList([set, right])}`, (test) => {
|
|
59
|
+
test.assertEqual(set.equals(right).await(), expected);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
equalsTest(Set.create(), [], true);
|
|
63
|
+
equalsTest(Set.create(), [1], false);
|
|
64
|
+
equalsTest(Set.create().addAll([1]), [], false);
|
|
65
|
+
equalsTest(Set.create().addAll([1]), [1], true);
|
|
66
|
+
equalsTest(Set.create().addAll([1]), [1, 1], false);
|
|
67
|
+
equalsTest(Set.create().addAll([1, 2]), [1, 2], true);
|
|
68
|
+
equalsTest(Set.create().addAll([1, 2]), [2, 1], false);
|
|
69
|
+
equalsTest(Set.create().addAll([1, 2]), Set.create().addAll([2, 1]), true);
|
|
70
|
+
});
|
|
71
|
+
runner.testFunction("union()", () => {
|
|
72
|
+
function unionErrorTest(set, values, expected) {
|
|
73
|
+
runner.test(`with ${runner.andList([set, values])}`, (test) => {
|
|
74
|
+
test.assertThrows(() => set.union(values), expected);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
unionErrorTest(Set.create(), undefined, new PreConditionError("Expression: values", "Expected: not undefined and not null", "Actual: undefined"));
|
|
78
|
+
unionErrorTest(Set.create(), null, new PreConditionError("Expression: values", "Expected: not undefined and not null", "Actual: null"));
|
|
79
|
+
function unionTest(set, values, expected) {
|
|
80
|
+
runner.test(`with ${runner.andList([set, values])}`, (test) => {
|
|
81
|
+
test.assertEqual(set.union(values).toArray().await(), expected);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
unionTest(Set.create(), [], []);
|
|
85
|
+
unionTest(Set.create(), [1, 2], [1, 2]);
|
|
86
|
+
unionTest(Set.create([1]), [2], [1, 2]);
|
|
87
|
+
unionTest(Set.create([1, 2]), [1], [1, 2]);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=setTests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setTests.js","sourceRoot":"","sources":["../../tests/setTests.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAI5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,MAAM,UAAU,IAAI,CAAC,MAAkB;IAEnC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;QAE3B,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;YAE3B,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC,IAAU,EAAE,EAAE;gBAE3C,MAAM,GAAG,GAA6B,GAAG,CAAC,MAAM,EAAE,CAAC;gBACnD,IAAI,CAAC,4BAA4B,CAAC,GAAG,CAAC,CAAC;gBACvC,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,GAA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CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;gBACxC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC/C,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TestAction } from "./testAction.js";
|
|
2
|
+
import { TestSkip } from "./testSkip.js";
|
|
3
|
+
export declare class SkippedTest {
|
|
4
|
+
private readonly skip;
|
|
5
|
+
private readonly testAction;
|
|
6
|
+
private constructor();
|
|
7
|
+
static create(skip: TestSkip, testAction: TestAction): SkippedTest;
|
|
8
|
+
getSkipMessage(): string;
|
|
9
|
+
getTestAction(): TestAction;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=skippedTest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skippedTest.d.ts","sourceRoot":"","sources":["../../tests/skippedTest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,qBAAa,WAAW;IAEpB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAW;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IAExC,OAAO,eAON;IAED,OAAc,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,GAAG,WAAW,CAGxE;IAEM,cAAc,IAAI,MAAM,CAG9B;IAEM,aAAa,IAAI,UAAU,CAGjC;CACJ"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PreCondition } from "../sources/preCondition.js";
|
|
2
|
+
export class SkippedTest {
|
|
3
|
+
skip;
|
|
4
|
+
testAction;
|
|
5
|
+
constructor(skip, testAction) {
|
|
6
|
+
PreCondition.assertNotUndefinedAndNotNull(skip, "skip");
|
|
7
|
+
PreCondition.assertNotUndefinedAndNotNull(testAction, "testAction");
|
|
8
|
+
this.skip = skip;
|
|
9
|
+
this.testAction = testAction;
|
|
10
|
+
}
|
|
11
|
+
static create(skip, testAction) {
|
|
12
|
+
return new SkippedTest(skip, testAction);
|
|
13
|
+
}
|
|
14
|
+
getSkipMessage() {
|
|
15
|
+
return this.skip.getMessage();
|
|
16
|
+
}
|
|
17
|
+
getTestAction() {
|
|
18
|
+
return this.testAction;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=skippedTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skippedTest.js","sourceRoot":"","sources":["../../tests/skippedTest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI1D,MAAM,OAAO,WAAW;IAEH,IAAI,CAAW;IACf,UAAU,CAAa;IAExC,YAAoB,IAAc,EAAE,UAAsB;QAEtD,YAAY,CAAC,4BAA4B,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACxD,YAAY,CAAC,4BAA4B,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAEpE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,IAAc,EAAE,UAAsB;QAEvD,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC7C,CAAC;IAEM,cAAc;QAEjB,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;IAClC,CAAC;IAEM,aAAa;QAEhB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stackTests.d.ts","sourceRoot":"","sources":["../../tests/stackTests.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CA2D7C"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { EmptyError } from "../sources/emptyError.js";
|
|
2
|
+
import { Stack } from "../sources/stack.js";
|
|
3
|
+
export function test(runner) {
|
|
4
|
+
runner.testFile("stack.ts", () => {
|
|
5
|
+
runner.testType("Stack<T>", () => {
|
|
6
|
+
runner.testFunction("create()", (test) => {
|
|
7
|
+
const stack = Stack.create();
|
|
8
|
+
test.assertNotUndefinedAndNotNull(stack);
|
|
9
|
+
test.assertFalse(stack.any().await());
|
|
10
|
+
});
|
|
11
|
+
runner.testFunction("add()", (test) => {
|
|
12
|
+
const stack = Stack.create();
|
|
13
|
+
stack.add(10).await();
|
|
14
|
+
test.assertTrue(stack.any().await());
|
|
15
|
+
stack.add(20).await();
|
|
16
|
+
test.assertTrue(stack.any().await());
|
|
17
|
+
test.assertEqual(20, stack.remove().await());
|
|
18
|
+
test.assertEqual(10, stack.remove().await());
|
|
19
|
+
test.assertFalse(stack.any().await());
|
|
20
|
+
});
|
|
21
|
+
runner.testFunction("addAll()", () => {
|
|
22
|
+
function addAllTest(values) {
|
|
23
|
+
runner.test(`with ${runner.toString(values)}`, (test) => {
|
|
24
|
+
const stack = Stack.create();
|
|
25
|
+
stack.addAll(values).await();
|
|
26
|
+
for (const value of values.reverse()) {
|
|
27
|
+
test.assertTrue(stack.any().await());
|
|
28
|
+
test.assertEqual(value, stack.remove().await());
|
|
29
|
+
}
|
|
30
|
+
test.assertFalse(stack.any().await());
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
addAllTest([]);
|
|
34
|
+
addAllTest([1]);
|
|
35
|
+
addAllTest([1, 2]);
|
|
36
|
+
addAllTest([1, 2, 3]);
|
|
37
|
+
});
|
|
38
|
+
runner.testFunction("remove()", (test) => {
|
|
39
|
+
const stack = Stack.create();
|
|
40
|
+
test.assertThrows(() => stack.remove().await(), new EmptyError());
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=stackTests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stackTests.js","sourceRoot":"","sources":["../../tests/stackTests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAI5C,MAAM,UAAU,IAAI,CAAC,MAAkB;IAEnC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;QAE7B,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;YAE7B,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC,IAAU,EAAE,EAAE;gBAE3C,MAAM,KAAK,GAAsB,KAAK,CAAC,MAAM,EAAE,CAAC;gBAChD,IAAI,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC;gBACzC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;YAC1C,CAAC,CAAC,CAAC;YAEH,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,IAAU,EAAE,EAAE;gBAExC,MAAM,KAAK,GAAsB,KAAK,CAAC,MAAM,EAAE,CAAC;gBAEhD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;gBACtB,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;gBAErC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;gBACtB,IAAI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,CAAC;gBACnB,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1B,CAAC,CAAC,CAAC;YAEH,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC,IAAU,EAAE,EAAE;gBAE3C,MAAM,KAAK,GAAsB,KAAK,CAAC,MAAM,EAAE,CAAC;gBAChD,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,IAAI,UAAU,EAAE,CAAC,CAAC;YACtE,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stringComparerTests.d.ts","sourceRoot":"","sources":["../../tests/stringComparerTests.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAsD7C"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Comparison } from "../sources/comparison.js";
|
|
2
|
+
import { StringComparer } from "../sources/stringComparer.js";
|
|
3
|
+
export function test(runner) {
|
|
4
|
+
runner.testFile("stringComparer.ts", () => {
|
|
5
|
+
runner.testType("StringComparer", () => {
|
|
6
|
+
runner.testFunction("compare(string, string)", () => {
|
|
7
|
+
function compareTest(left, right, expected) {
|
|
8
|
+
runner.test(`with ${runner.andList([left, right])}`, (test) => {
|
|
9
|
+
const comparer = StringComparer.create();
|
|
10
|
+
test.assertEqual(comparer.compare(left, right), expected);
|
|
11
|
+
test.assertEqual(comparer.lessThan(left, right), expected === Comparison.LessThan);
|
|
12
|
+
test.assertEqual(comparer.lessThanOrEqual(left, right), expected !== Comparison.GreaterThan);
|
|
13
|
+
test.assertEqual(comparer.equal(left, right), expected === Comparison.Equal);
|
|
14
|
+
test.assertEqual(comparer.greaterThanOrEqualTo(left, right), expected !== Comparison.LessThan);
|
|
15
|
+
test.assertEqual(comparer.greaterThan(left, right), expected === Comparison.GreaterThan);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
compareTest(undefined, undefined, Comparison.Equal);
|
|
19
|
+
compareTest(undefined, null, Comparison.LessThan);
|
|
20
|
+
compareTest(undefined, "", Comparison.LessThan);
|
|
21
|
+
compareTest(undefined, "a", Comparison.LessThan);
|
|
22
|
+
compareTest(undefined, "def", Comparison.LessThan);
|
|
23
|
+
compareTest(null, undefined, Comparison.GreaterThan);
|
|
24
|
+
compareTest(null, null, Comparison.Equal);
|
|
25
|
+
compareTest(null, "", Comparison.LessThan);
|
|
26
|
+
compareTest(null, "a", Comparison.LessThan);
|
|
27
|
+
compareTest(null, "def", Comparison.LessThan);
|
|
28
|
+
compareTest("", undefined, Comparison.GreaterThan);
|
|
29
|
+
compareTest("", null, Comparison.GreaterThan);
|
|
30
|
+
compareTest("", "", Comparison.Equal);
|
|
31
|
+
compareTest("", "a", Comparison.LessThan);
|
|
32
|
+
compareTest("", "def", Comparison.LessThan);
|
|
33
|
+
compareTest("a", undefined, Comparison.GreaterThan);
|
|
34
|
+
compareTest("a", null, Comparison.GreaterThan);
|
|
35
|
+
compareTest("a", "", Comparison.GreaterThan);
|
|
36
|
+
compareTest("a", "a", Comparison.Equal);
|
|
37
|
+
compareTest("a", "def", Comparison.LessThan);
|
|
38
|
+
compareTest("def", undefined, Comparison.GreaterThan);
|
|
39
|
+
compareTest("def", null, Comparison.GreaterThan);
|
|
40
|
+
compareTest("def", "", Comparison.GreaterThan);
|
|
41
|
+
compareTest("def", "a", Comparison.GreaterThan);
|
|
42
|
+
compareTest("def", "def", Comparison.Equal);
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=stringComparerTests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string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AC,CAAC;gBAC1C,WAAW,CAAC,EAAE,EAAE,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;gBAE5C,WAAW,CAAC,GAAG,EAAE,SAAU,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;gBACrD,WAAW,CAAC,GAAG,EAAE,IAAK,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;gBAChD,WAAW,CAAC,GAAG,EAAE,EAAE,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;gBAC7C,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;gBACxC,WAAW,CAAC,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;gBAE7C,WAAW,CAAC,KAAK,EAAE,SAAU,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;gBACvD,WAAW,CAAC,KAAK,EAAE,IAAK,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;gBAClD,WAAW,CAAC,KAAK,EAAE,EAAE,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;gBAC/C,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;gBAChD,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;YAChD,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stringIteratorTests.d.ts","sourceRoot":"","sources":["../../tests/stringIteratorTests.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAqJ7C"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { PreConditionError } from "../sources/preConditionError.js";
|
|
2
|
+
import { StringIterator } from "../sources/stringIterator.js";
|
|
3
|
+
import { iteratorTests } from "./iteratorTests.js";
|
|
4
|
+
export function test(runner) {
|
|
5
|
+
runner.testFile("stringIterator.ts", () => {
|
|
6
|
+
runner.testType("StringIterator", () => {
|
|
7
|
+
iteratorTests(runner, () => StringIterator.create(""));
|
|
8
|
+
runner.testFunction("create(string)", () => {
|
|
9
|
+
function createErrorTest(value, expectedError) {
|
|
10
|
+
runner.test(`with ${runner.toString(value)}`, (test) => {
|
|
11
|
+
test.assertThrows(() => StringIterator.create(value), expectedError);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
createErrorTest(undefined, new PreConditionError("Expression: value", "Expected: not undefined and not null", "Actual: undefined"));
|
|
15
|
+
createErrorTest(null, new PreConditionError("Expression: value", "Expected: not undefined and not null", "Actual: null"));
|
|
16
|
+
function createTest(value) {
|
|
17
|
+
runner.test(`with "${runner.toString(value)}"`, (test) => {
|
|
18
|
+
const iterator = StringIterator.create(value);
|
|
19
|
+
test.assertFalse(iterator.hasStarted());
|
|
20
|
+
test.assertFalse(iterator.hasCurrent());
|
|
21
|
+
test.assertThrows(() => iterator.getCurrentIndex(), new PreConditionError("Expression: this.hasCurrent()", "Expected: true", "Actual: false"));
|
|
22
|
+
test.assertThrows(() => iterator.getCurrent(), new PreConditionError("Expression: this.hasCurrent()", "Expected: true", "Actual: false"));
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
createTest("");
|
|
26
|
+
createTest("abc");
|
|
27
|
+
});
|
|
28
|
+
runner.testFunction("next()", () => {
|
|
29
|
+
function nextTest(value) {
|
|
30
|
+
runner.test(`with "${runner.toString(value)}"`, async (test) => {
|
|
31
|
+
const iterator = StringIterator.create(value);
|
|
32
|
+
for (let i = 0; i < value.length; i++) {
|
|
33
|
+
test.assertTrue(await iterator.next());
|
|
34
|
+
test.assertTrue(iterator.hasStarted());
|
|
35
|
+
test.assertTrue(iterator.hasCurrent());
|
|
36
|
+
test.assertSame(iterator.getCurrentIndex(), i);
|
|
37
|
+
test.assertSame(iterator.getCurrent(), value[i]);
|
|
38
|
+
}
|
|
39
|
+
for (let i = 0; i < 2; i++) {
|
|
40
|
+
test.assertFalse(await iterator.next());
|
|
41
|
+
test.assertTrue(iterator.hasStarted());
|
|
42
|
+
test.assertFalse(iterator.hasCurrent());
|
|
43
|
+
test.assertThrows(() => iterator.getCurrentIndex(), new PreConditionError("Expression: this.hasCurrent()", "Expected: true", "Actual: false"));
|
|
44
|
+
test.assertThrows(() => iterator.getCurrent(), new PreConditionError("Expression: this.hasCurrent()", "Expected: true", "Actual: false"));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
nextTest("");
|
|
49
|
+
nextTest("a");
|
|
50
|
+
nextTest("abc");
|
|
51
|
+
});
|
|
52
|
+
runner.testGroup("for...of", () => {
|
|
53
|
+
function forOfTest(value) {
|
|
54
|
+
runner.test(`with "${runner.toString(value)}"`, async (test) => {
|
|
55
|
+
const iterator = StringIterator.create(value);
|
|
56
|
+
let expectedIndex = 0;
|
|
57
|
+
for (const c of iterator) {
|
|
58
|
+
test.assertTrue(iterator.hasStarted());
|
|
59
|
+
test.assertTrue(iterator.hasCurrent());
|
|
60
|
+
test.assertSame(iterator.getCurrentIndex(), expectedIndex);
|
|
61
|
+
test.assertSame(iterator.getCurrent(), value[expectedIndex]);
|
|
62
|
+
test.assertSame(c, value[expectedIndex]);
|
|
63
|
+
expectedIndex++;
|
|
64
|
+
}
|
|
65
|
+
for (let i = 0; i < 2; i++) {
|
|
66
|
+
test.assertFalse(await iterator.next());
|
|
67
|
+
test.assertTrue(iterator.hasStarted());
|
|
68
|
+
test.assertFalse(iterator.hasCurrent());
|
|
69
|
+
test.assertThrows(() => iterator.getCurrentIndex(), new PreConditionError("Expression: this.hasCurrent()", "Expected: true", "Actual: false"));
|
|
70
|
+
test.assertThrows(() => iterator.getCurrent(), new PreConditionError("Expression: this.hasCurrent()", "Expected: true", "Actual: false"));
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
forOfTest("");
|
|
75
|
+
forOfTest("a");
|
|
76
|
+
forOfTest("abc");
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=stringIteratorTests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stringIteratorTests.js","sourceRoot":"","sources":["../../tests/stringIteratorTests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAInD,MAAM,UAAU,IAAI,CAAC,MAAkB;IAEnC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;QAEtC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;YAEnC,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;YAEvD,MAAM,CAAC,YAAY,CAAC,gBAAgB,EAAE,GAAG,EAAE;gBAEvC,SAAS,eAAe,CAAC,KAAgC,EAAE,aAAoB;oBAE3E,MAAM,CAAC,IAAI,CAAC,QAAQ,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,IAAU,EAAE,EAAE;wBAEzD,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,KAAM,CAAC,EACjD,aAAa,CAAC,CAAC;oBACvB,CAAC,CAAC,CAAC;gBACP,CAAC;gBAED,eAAe,CACX,SAAS,EACT,IAAI,iBAAiB,CACjB,mBAAmB,EACnB,sCAAsC,EACtC,mBAAmB,CACtB,CAAC,CAAC;gBACP,eAAe,CACX,IAAI,EACJ,IAAI,iBAAiB,CAC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