@everyonesoftware/common 12.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-CzPcNOCD.d.cts +0 -845
- package/outputs/characterWriteStream-CzPcNOCD.d.ts +0 -845
- package/outputs/chunk-FZ3WRQ7B.js +0 -1199
- package/outputs/chunk-FZ3WRQ7B.js.map +0 -1
- package/outputs/chunk-MHMLVX2O.js +0 -9590
- package/outputs/chunk-MHMLVX2O.js.map +0 -1
- package/outputs/sourceIndex.cjs +0 -9790
- package/outputs/sourceIndex.cjs.map +0 -1
- package/outputs/sourceIndex.d.cts +0 -3532
- package/outputs/sourceIndex.d.ts +0 -3532
- package/outputs/sourceIndex.js +0 -349
- package/outputs/sourceIndex.js.map +0 -1
- package/outputs/testIndex.cjs +0 -7046
- 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 -19372
- 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 -10017
- package/outputs/tests.js.map +0 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Iterator, PreConditionError, Tokenizer } from "../sources/index.js";
|
|
2
|
+
import { Token } from "../sources/Token.js";
|
|
3
|
+
export function test(runner) {
|
|
4
|
+
runner.testFile("Tokenizer.ts", () => {
|
|
5
|
+
runner.testType("Tokenizer", () => {
|
|
6
|
+
runner.testFunction("create()", () => {
|
|
7
|
+
function createErrorTest(characters, expected) {
|
|
8
|
+
runner.test(`with ${runner.toString(characters)}`, (test) => {
|
|
9
|
+
test.assertThrows(() => Tokenizer.create(characters), expected);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
createErrorTest(undefined, new PreConditionError("Expression: characters", "Expected: not undefined and not null", "Actual: undefined"));
|
|
13
|
+
createErrorTest(null, new PreConditionError("Expression: characters", "Expected: not undefined and not null", "Actual: null"));
|
|
14
|
+
function createTest(characters) {
|
|
15
|
+
runner.test(`with ${runner.toString(characters)}`, (test) => {
|
|
16
|
+
const tokenizer = Tokenizer.create(Iterator.create(characters));
|
|
17
|
+
test.assertNotUndefinedAndNotNull(tokenizer);
|
|
18
|
+
test.assertFalse(tokenizer.hasStarted());
|
|
19
|
+
test.assertFalse(tokenizer.hasCurrent());
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
createTest("");
|
|
23
|
+
createTest("abc");
|
|
24
|
+
});
|
|
25
|
+
runner.testFunction("next()", () => {
|
|
26
|
+
function nextTest(text, expected) {
|
|
27
|
+
runner.test(`with ${runner.toString(text)}`, (test) => {
|
|
28
|
+
if (expected instanceof Token) {
|
|
29
|
+
expected = [expected];
|
|
30
|
+
}
|
|
31
|
+
const tokenizer = Tokenizer.create(text);
|
|
32
|
+
const tokens = tokenizer.toArray().await();
|
|
33
|
+
test.assertEqual(expected, tokens);
|
|
34
|
+
test.assertTrue(tokenizer.hasStarted());
|
|
35
|
+
test.assertFalse(tokenizer.hasCurrent());
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
nextTest("", []);
|
|
39
|
+
nextTest(" ", Token.whitespace(" "));
|
|
40
|
+
nextTest("\t", Token.whitespace("\t"));
|
|
41
|
+
nextTest("\n", Token.newLine());
|
|
42
|
+
nextTest("\r\n", Token.newLine("\r\n"));
|
|
43
|
+
nextTest("\r", Token.whitespace("\r"));
|
|
44
|
+
nextTest("(", Token.leftParenthesis());
|
|
45
|
+
nextTest(")", Token.rightParenthesis());
|
|
46
|
+
nextTest(".", Token.period());
|
|
47
|
+
nextTest("_", Token.underscore());
|
|
48
|
+
nextTest("a", Token.letters("a"));
|
|
49
|
+
nextTest("abcdef", Token.letters("abcdef"));
|
|
50
|
+
nextTest("1", Token.digits("1"));
|
|
51
|
+
nextTest("1234", Token.digits("1234"));
|
|
52
|
+
nextTest("/", Token.forwardSlash());
|
|
53
|
+
nextTest("\\", Token.backslash());
|
|
54
|
+
nextTest(":", Token.colon());
|
|
55
|
+
nextTest("*", Token.unknown("*"));
|
|
56
|
+
nextTest(" at ", [
|
|
57
|
+
Token.whitespace(" "),
|
|
58
|
+
Token.letters("at"),
|
|
59
|
+
Token.whitespace(" "),
|
|
60
|
+
]);
|
|
61
|
+
nextTest(" at _AssertTest.assertEqual (tests/assertTest.ts:76:16)", [
|
|
62
|
+
Token.whitespace(" "),
|
|
63
|
+
Token.letters("at"),
|
|
64
|
+
Token.whitespace(" "),
|
|
65
|
+
Token.underscore(),
|
|
66
|
+
Token.letters("AssertTest"),
|
|
67
|
+
Token.period(),
|
|
68
|
+
Token.letters("assertEqual"),
|
|
69
|
+
Token.whitespace(" "),
|
|
70
|
+
Token.leftParenthesis(),
|
|
71
|
+
Token.letters("tests"),
|
|
72
|
+
Token.forwardSlash(),
|
|
73
|
+
Token.letters("assertTest"),
|
|
74
|
+
Token.period(),
|
|
75
|
+
Token.letters("ts"),
|
|
76
|
+
Token.colon(),
|
|
77
|
+
Token.digits("76"),
|
|
78
|
+
Token.colon(),
|
|
79
|
+
Token.digits("16"),
|
|
80
|
+
Token.rightParenthesis(),
|
|
81
|
+
]);
|
|
82
|
+
nextTest(" at tests/TokenizerTests.ts:61:30", [
|
|
83
|
+
Token.whitespace(" "),
|
|
84
|
+
Token.letters("at"),
|
|
85
|
+
Token.whitespace(" "),
|
|
86
|
+
Token.letters("tests"),
|
|
87
|
+
Token.forwardSlash(),
|
|
88
|
+
Token.letters("TokenizerTests"),
|
|
89
|
+
Token.period(),
|
|
90
|
+
Token.letters("ts"),
|
|
91
|
+
Token.colon(),
|
|
92
|
+
Token.digits("61"),
|
|
93
|
+
Token.colon(),
|
|
94
|
+
Token.digits("30"),
|
|
95
|
+
]);
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=TokenizerTests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenizerTests.js","sourceRoot":"","sources":["../../tests/TokenizerTests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAsB,iBAAiB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACjG,OAAO,EAAE,KAAK,EAA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 +1,32 @@
|
|
|
1
|
+
import { Type } from "../sources/types.js";
|
|
2
|
+
import { Test } from "./test.js";
|
|
3
|
+
import { SyncResult } from "../sources/syncResult.js";
|
|
4
|
+
import { PromiseAsyncResult } from "../sources/promiseAsyncResult.js";
|
|
5
|
+
import { JavascriptIterable } from "../sources/index.js";
|
|
6
|
+
/**
|
|
7
|
+
* A {@link Test} type that uses the standard "assert" module to make assertions.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AssertTest implements Test {
|
|
10
|
+
private constructor();
|
|
11
|
+
/**
|
|
12
|
+
* Create a new {@link AssertTest} object.
|
|
13
|
+
*/
|
|
14
|
+
static create(): AssertTest;
|
|
15
|
+
fail(message: string): never;
|
|
16
|
+
assertUndefined(value: unknown): asserts value is undefined;
|
|
17
|
+
assertNotUndefined<T>(value: T): asserts value is NonNullable<T>;
|
|
18
|
+
assertNull(value: unknown): asserts value is null;
|
|
19
|
+
assertNotNull<T>(value: T): asserts value is NonNullable<T>;
|
|
20
|
+
assertNotUndefinedAndNotNull<T>(value: T): asserts value is NonNullable<T>;
|
|
21
|
+
assertNotEmpty(value: JavascriptIterable<unknown>): void;
|
|
22
|
+
assertSame<T>(left: T, right: T): void;
|
|
23
|
+
assertNotSame<T>(left: T, right: T): void;
|
|
24
|
+
assertEqual<T>(left: T, right: T, message?: string): void;
|
|
25
|
+
assertNotEqual<T>(left: T, right: T): void;
|
|
26
|
+
assertFalse(value: boolean): void;
|
|
27
|
+
assertTrue(value: boolean): void;
|
|
28
|
+
assertThrows(action: SyncResult<unknown> | (() => void), expectedError?: Error): void;
|
|
29
|
+
assertThrowsAsync(action: Promise<unknown> | (() => Promise<unknown>), expectedError: Error): PromiseAsyncResult<void>;
|
|
30
|
+
assertInstanceOf<T>(value: unknown, type: Type<T>, typeCheck?: (value: unknown) => value is T): asserts value is T;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=assertTest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3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G/C;IAEM,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAG/D;IAEM,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAGhD;IAEM,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAGvC;IAEM,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAGtC;IAEM,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE,aAAa,CAAC,EAAE,KAAK,GAAG,IAAI,CAQ3F;IAEM,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,aAAa,EAAE,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAM5H;IAEM,gBAAgB,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,GAAG,OAAO,CAAC,KAAK,IAAI,CAAC,CAGxH;CACJ"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as assert from "assert";
|
|
2
|
+
import { PreCondition } from "../sources/preCondition.js";
|
|
3
|
+
import { isFunction } from "../sources/types.js";
|
|
4
|
+
import { Test } from "./test.js";
|
|
5
|
+
import { PromiseAsyncResult } from "../sources/promiseAsyncResult.js";
|
|
6
|
+
/**
|
|
7
|
+
* A {@link Test} type that uses the standard "assert" module to make assertions.
|
|
8
|
+
*/
|
|
9
|
+
export class AssertTest {
|
|
10
|
+
constructor() {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create a new {@link AssertTest} object.
|
|
14
|
+
*/
|
|
15
|
+
static create() {
|
|
16
|
+
return new AssertTest();
|
|
17
|
+
}
|
|
18
|
+
fail(message) {
|
|
19
|
+
PreCondition.assertNotEmpty(message, "message");
|
|
20
|
+
assert.fail(message);
|
|
21
|
+
}
|
|
22
|
+
assertUndefined(value) {
|
|
23
|
+
Test.assertUndefined(this, value);
|
|
24
|
+
}
|
|
25
|
+
assertNotUndefined(value) {
|
|
26
|
+
Test.assertNotUndefined(this, value);
|
|
27
|
+
}
|
|
28
|
+
assertNull(value) {
|
|
29
|
+
Test.assertNull(this, value);
|
|
30
|
+
}
|
|
31
|
+
assertNotNull(value) {
|
|
32
|
+
Test.assertNotNull(this, value);
|
|
33
|
+
}
|
|
34
|
+
assertNotUndefinedAndNotNull(value) {
|
|
35
|
+
Test.assertNotUndefinedAndNotNull(this, value);
|
|
36
|
+
}
|
|
37
|
+
assertNotEmpty(value) {
|
|
38
|
+
Test.assertNotEmpty(this, value);
|
|
39
|
+
}
|
|
40
|
+
assertSame(left, right) {
|
|
41
|
+
assert.strictEqual(left, right);
|
|
42
|
+
}
|
|
43
|
+
assertNotSame(left, right) {
|
|
44
|
+
assert.notStrictEqual(left, right);
|
|
45
|
+
}
|
|
46
|
+
assertEqual(left, right, message) {
|
|
47
|
+
assert.deepStrictEqual(left, right, message);
|
|
48
|
+
}
|
|
49
|
+
assertNotEqual(left, right) {
|
|
50
|
+
assert.notDeepStrictEqual(left, right);
|
|
51
|
+
}
|
|
52
|
+
assertFalse(value) {
|
|
53
|
+
Test.assertFalse(this, value);
|
|
54
|
+
}
|
|
55
|
+
assertTrue(value) {
|
|
56
|
+
Test.assertTrue(this, value);
|
|
57
|
+
}
|
|
58
|
+
assertThrows(action, expectedError) {
|
|
59
|
+
if (!isFunction(action)) {
|
|
60
|
+
const syncResult = action;
|
|
61
|
+
action = () => { syncResult.await(); };
|
|
62
|
+
}
|
|
63
|
+
assert.throws(action, expectedError);
|
|
64
|
+
}
|
|
65
|
+
assertThrowsAsync(action, expectedError) {
|
|
66
|
+
const promiseOrAsyncAction = isFunction(action)
|
|
67
|
+
? async () => await action()
|
|
68
|
+
: action;
|
|
69
|
+
return PromiseAsyncResult.create(assert.rejects(promiseOrAsyncAction, expectedError));
|
|
70
|
+
}
|
|
71
|
+
assertInstanceOf(value, type, typeCheck) {
|
|
72
|
+
Test.assertInstanceOf(this, value, type, typeCheck);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=assertTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertTest.js","sourceRoot":"","sources":["../../tests/assertTest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAQ,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAGtE;;GAEG;AACH,MAAM,OAAO,UAAU;IAEnB;IAEA,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,MAAM;QAEhB,OAAO,IAAI,UAAU,EAAE,CAAC;IAC5B,CAAC;IAEM,IAAI,CAAC,OAAe;QAEvB,YAAY,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAEhD,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IAEM,eAAe,CAAC,KAAc;QAEjC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;IAEM,kBAAkB,CAAI,KAAQ;QAEjC,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;IAEM,UAAU,CAAC,KAAc;QAE5B,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CA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AAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACzC,CAAC;IAEM,iBAAiB,CAAC,MAAmD,EAAE,aAAoB;QAE9F,MAAM,oBAAoB,GAAG,UAAU,CAAC,MAAM,CAAC;YAC3C,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,MAAM,MAAM,EAAE;YAC5B,CAAC,CAAC,MAAM,CAAC;QACb,OAAO,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,oBAAoB,EAAE,aAAa,CAAC,CAAC,CAAC;IAC1F,CAAC;IAEM,gBAAgB,CAAI,KAAc,EAAE,IAAa,EAAE,SAA0C;QAEhG,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;IACxD,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertTestTests.d.ts","sourceRoot":"","sources":["../../tests/assertTestTests.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAqE7C"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AssertionError } from "assert";
|
|
2
|
+
import { AssertTest } from "./assertTest.js";
|
|
3
|
+
export function test(runner) {
|
|
4
|
+
runner.testFile("assertTest.ts", () => {
|
|
5
|
+
runner.testType("AssertTest", () => {
|
|
6
|
+
runner.testFunction("assertThrows()", () => {
|
|
7
|
+
runner.test("with throwing action", (test) => {
|
|
8
|
+
const at = AssertTest.create();
|
|
9
|
+
at.assertThrows(() => { throw new Error("abc"); }, new Error("abc"));
|
|
10
|
+
});
|
|
11
|
+
runner.test("with non-throwing action", (test) => {
|
|
12
|
+
const at = AssertTest.create();
|
|
13
|
+
test.assertThrows(() => at.assertThrows(() => { }, new Error("oops")), new AssertionError({
|
|
14
|
+
message: "Missing expected exception (Error).",
|
|
15
|
+
operator: "throws",
|
|
16
|
+
expected: new Error("oops"),
|
|
17
|
+
}));
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
runner.testFunction("assertThrowsAsync()", () => {
|
|
21
|
+
runner.test("with throwing sync action", async (test) => {
|
|
22
|
+
const at = AssertTest.create();
|
|
23
|
+
await at.assertThrowsAsync(() => { throw new Error("abc"); }, new Error("abc"));
|
|
24
|
+
});
|
|
25
|
+
runner.test("with throwing async action", async (test) => {
|
|
26
|
+
const at = AssertTest.create();
|
|
27
|
+
await at.assertThrowsAsync(async () => { throw new Error("abc"); }, new Error("abc"));
|
|
28
|
+
});
|
|
29
|
+
runner.test("with rejected Promise", async (test) => {
|
|
30
|
+
const at = AssertTest.create();
|
|
31
|
+
await at.assertThrowsAsync(Promise.reject(new Error("abc")), new Error("abc"));
|
|
32
|
+
});
|
|
33
|
+
runner.test("with throwing action that returns a rejected Promise", async (test) => {
|
|
34
|
+
const at = AssertTest.create();
|
|
35
|
+
await at.assertThrowsAsync(() => Promise.reject(new Error("abc")), new Error("abc"));
|
|
36
|
+
});
|
|
37
|
+
runner.test("with non-throwing async action", async (test) => {
|
|
38
|
+
const at = AssertTest.create();
|
|
39
|
+
await test.assertThrowsAsync(async () => await at.assertThrowsAsync(async () => { }, new Error("oops")), new AssertionError({
|
|
40
|
+
message: "Missing expected rejection (Error).",
|
|
41
|
+
operator: "rejects",
|
|
42
|
+
expected: new Error("oops"),
|
|
43
|
+
}));
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=assertTestTests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertTestTests.js","sourceRoot":"","sources":["../../tests/assertTestTests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAI7C,M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,iBAAiB,CACxB,KAAK,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC,iBAAiB,CAAC,KAAK,IAAI,EAAE,GAAE,CAAC,EAAE,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,EACzE,IAAI,cAAc,CAAC;wBACf,OAAO,EAAE,qCAAqC;wBAC9C,QAAQ,EAAE,SAAS;wBACnB,QAAQ,EAAE,IAAI,KAAK,CAAC,MAAM,CAAC;qBAC9B,CAAC,CACL,CAAC;gBACN,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TestSkip } from "./testSkip.js";
|
|
2
|
+
/**
|
|
3
|
+
* A type that is used to mark that a test group or a test should be skipped.
|
|
4
|
+
*/
|
|
5
|
+
export declare class BasicTestSkip implements TestSkip {
|
|
6
|
+
private readonly shouldSkip;
|
|
7
|
+
private readonly message;
|
|
8
|
+
private constructor();
|
|
9
|
+
/**
|
|
10
|
+
* Create a new {@link TestSkip} with the provided properties.
|
|
11
|
+
* @param shouldSkip Whether the tests associated with the new {@link TestSkip}
|
|
12
|
+
* should be skipped.
|
|
13
|
+
* @param message The message that explains why the tests associated with this {@link TestSkip}
|
|
14
|
+
* should be skipped.
|
|
15
|
+
*/
|
|
16
|
+
static create(shouldSkip?: boolean, message?: string): BasicTestSkip;
|
|
17
|
+
getShouldSkip(): boolean;
|
|
18
|
+
getMessage(): string;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=basicTestSkip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basicTestSkip.d.ts","sourceRoot":"","sources":["../../tests/basicTestSkip.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;GAEG;AACH,qBAAa,aAAc,YAAW,QAAQ;IAE1C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAU;IACrC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IAEjC,OAAO,eAMN;IAED;;;;;;OAMG;IACH,OAAc,MAAM,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,CAa1E;IAEM,aAAa,IAAI,OAAO,CAG9B;IAEM,UAAU,IAAI,MAAM,CAG1B;CACJ"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PreCondition } from "../sources/preCondition.js";
|
|
2
|
+
/**
|
|
3
|
+
* A type that is used to mark that a test group or a test should be skipped.
|
|
4
|
+
*/
|
|
5
|
+
export class BasicTestSkip {
|
|
6
|
+
shouldSkip;
|
|
7
|
+
message;
|
|
8
|
+
constructor(shouldSkip, message) {
|
|
9
|
+
PreCondition.assertNotUndefinedAndNotNull(message, "message");
|
|
10
|
+
this.shouldSkip = shouldSkip;
|
|
11
|
+
this.message = message;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Create a new {@link TestSkip} with the provided properties.
|
|
15
|
+
* @param shouldSkip Whether the tests associated with the new {@link TestSkip}
|
|
16
|
+
* should be skipped.
|
|
17
|
+
* @param message The message that explains why the tests associated with this {@link TestSkip}
|
|
18
|
+
* should be skipped.
|
|
19
|
+
*/
|
|
20
|
+
static create(shouldSkip, message) {
|
|
21
|
+
if (shouldSkip === undefined || shouldSkip === null) {
|
|
22
|
+
shouldSkip = true;
|
|
23
|
+
}
|
|
24
|
+
if (message === undefined || message === null) {
|
|
25
|
+
message = "";
|
|
26
|
+
}
|
|
27
|
+
return new BasicTestSkip(shouldSkip, message);
|
|
28
|
+
}
|
|
29
|
+
getShouldSkip() {
|
|
30
|
+
return this.shouldSkip;
|
|
31
|
+
}
|
|
32
|
+
getMessage() {
|
|
33
|
+
return this.message;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=basicTestSkip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basicTestSkip.js","sourceRoot":"","sources":["../../tests/basicTestSkip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D;;GAEG;AACH,MAAM,OAAO,aAAa;IAEL,UAAU,CAAU;IACpB,OAAO,CAAS;IAEjC,YAAoB,UAAmB,EAAE,OAAe;QAEpD,YAAY,CAAC,4BAA4B,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAE9D,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAM,CAAC,UAAoB,EAAE,OAAgB;QAEvD,IAAI,UAAU,KAAK,SAAS,IAAI,UAAU,KAAK,IAAI,EACnD,CAAC;YACG,UAAU,GAAG,IAAI,CAAC;QACtB,CAAC;QAED,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,IAAI,EAC7C,CAAC;YACG,OAAO,GAAG,EAAE,CAAC;QACjB,CAAC;QAED,OAAO,IAAI,aAAa,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAEM,aAAa;QAEhB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAEM,UAAU;QAEb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byteListStreamTests.d.ts","sourceRoot":"","sources":["../../tests/byteListStreamTests.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CA+X7C"}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { ByteListStream } from "../sources/byteListStream.js";
|
|
2
|
+
import { EmptyError } from "../sources/emptyError.js";
|
|
3
|
+
import { PreConditionError } from "../sources/preConditionError.js";
|
|
4
|
+
export function test(runner) {
|
|
5
|
+
runner.testFile("byteListStream.ts", () => {
|
|
6
|
+
runner.testType("ByteListStream", () => {
|
|
7
|
+
runner.testFunction("create()", () => {
|
|
8
|
+
runner.test("with no arguments", (test) => {
|
|
9
|
+
const stream = ByteListStream.create();
|
|
10
|
+
test.assertNotUndefinedAndNotNull(stream);
|
|
11
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
12
|
+
});
|
|
13
|
+
runner.test("with empty array", (test) => {
|
|
14
|
+
const stream = ByteListStream.create([]);
|
|
15
|
+
test.assertNotUndefinedAndNotNull(stream);
|
|
16
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
17
|
+
});
|
|
18
|
+
runner.test("with non-empty array", (test) => {
|
|
19
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
20
|
+
test.assertNotUndefinedAndNotNull(stream);
|
|
21
|
+
test.assertEqual(3, stream.getAvailableByteCount());
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
runner.testFunction("writeBytes()", () => {
|
|
25
|
+
runner.test("with undefined bytes", (test) => {
|
|
26
|
+
const stream = ByteListStream.create();
|
|
27
|
+
test.assertThrows(() => stream.writeBytes(undefined), new PreConditionError("Expression: bytes", "Expected: not undefined and not null", "Actual: undefined"));
|
|
28
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
29
|
+
});
|
|
30
|
+
runner.test("with null bytes", (test) => {
|
|
31
|
+
const stream = ByteListStream.create();
|
|
32
|
+
test.assertThrows(() => stream.writeBytes(null), new PreConditionError("Expression: bytes", "Expected: not undefined and not null", "Actual: null"));
|
|
33
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
34
|
+
});
|
|
35
|
+
runner.test("with empty bytes", (test) => {
|
|
36
|
+
const stream = ByteListStream.create();
|
|
37
|
+
test.assertEqual(0, stream.writeBytes([]).await());
|
|
38
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
39
|
+
});
|
|
40
|
+
runner.test("with non-empty bytes", (test) => {
|
|
41
|
+
const stream = ByteListStream.create();
|
|
42
|
+
test.assertEqual(4, stream.writeBytes([1, 2, 3, 4]).await());
|
|
43
|
+
test.assertEqual(4, stream.getAvailableByteCount());
|
|
44
|
+
const bytes = stream.readBytes(10).await();
|
|
45
|
+
test.assertNotUndefinedAndNotNull(bytes);
|
|
46
|
+
test.assertEqual(4, bytes.length);
|
|
47
|
+
test.assertEqual(new Uint8Array([1, 2, 3, 4]), bytes);
|
|
48
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
49
|
+
});
|
|
50
|
+
runner.test("with negative startIndex", (test) => {
|
|
51
|
+
const stream = ByteListStream.create();
|
|
52
|
+
test.assertThrows(() => stream.writeBytes([1, 2], -1), new PreConditionError("Expression: startIndex", "Expected: between 0 and 2", "Actual: -1"));
|
|
53
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
54
|
+
});
|
|
55
|
+
runner.test("with too large startIndex", (test) => {
|
|
56
|
+
const stream = ByteListStream.create();
|
|
57
|
+
test.assertThrows(() => stream.writeBytes([1, 2], 3), new PreConditionError("Expression: startIndex", "Expected: between 0 and 2", "Actual: 3"));
|
|
58
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
59
|
+
});
|
|
60
|
+
runner.test("with valid non-zero startIndex", (test) => {
|
|
61
|
+
const stream = ByteListStream.create();
|
|
62
|
+
const writeBytesResult = stream.writeBytes([1, 2], 1).await();
|
|
63
|
+
test.assertEqual(1, writeBytesResult);
|
|
64
|
+
test.assertEqual(1, stream.getAvailableByteCount());
|
|
65
|
+
test.assertEqual(new Uint8Array([2]), stream.readBytes(5).await());
|
|
66
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
67
|
+
});
|
|
68
|
+
runner.test("with startIndex equal to bytes length", (test) => {
|
|
69
|
+
const stream = ByteListStream.create();
|
|
70
|
+
const writeBytesResult = stream.writeBytes([1, 2], 2).await();
|
|
71
|
+
test.assertEqual(0, writeBytesResult);
|
|
72
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
73
|
+
});
|
|
74
|
+
runner.test("with negative length", (test) => {
|
|
75
|
+
const stream = ByteListStream.create();
|
|
76
|
+
test.assertThrows(() => stream.writeBytes([1, 2], 0, -1), new PreConditionError("Expression: length", "Expected: between 0 and 2", "Actual: -1"));
|
|
77
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
78
|
+
});
|
|
79
|
+
runner.test("with too large length", (test) => {
|
|
80
|
+
const stream = ByteListStream.create();
|
|
81
|
+
test.assertThrows(() => stream.writeBytes([1, 2], 0, 3), new PreConditionError("Expression: length", "Expected: between 0 and 2", "Actual: 3"));
|
|
82
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
83
|
+
});
|
|
84
|
+
runner.test("with valid startIndex and length values", (test) => {
|
|
85
|
+
const stream = ByteListStream.create();
|
|
86
|
+
const writeBytesResult = stream.writeBytes([1, 2, 3, 4, 5], 2, 2).await();
|
|
87
|
+
test.assertEqual(2, writeBytesResult);
|
|
88
|
+
test.assertEqual(2, stream.getAvailableByteCount());
|
|
89
|
+
test.assertEqual(new Uint8Array([3, 4]), stream.readBytes(50).await());
|
|
90
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
runner.testFunction("readBytes()", () => {
|
|
94
|
+
runner.testGroup("with empty stream", () => {
|
|
95
|
+
runner.test("with negative count", (test) => {
|
|
96
|
+
const stream = ByteListStream.create();
|
|
97
|
+
test.assertThrows(() => stream.readBytes(-1).await(), new PreConditionError("Expression: count", "Expected: greater than or equal to 0", "Actual: -1"));
|
|
98
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
99
|
+
});
|
|
100
|
+
runner.test("with zero count", (test) => {
|
|
101
|
+
const stream = ByteListStream.create();
|
|
102
|
+
test.assertThrows(() => stream.readBytes(0).await(), new EmptyError());
|
|
103
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
104
|
+
});
|
|
105
|
+
runner.test("with positive count", (test) => {
|
|
106
|
+
const stream = ByteListStream.create();
|
|
107
|
+
test.assertThrows(() => stream.readBytes(1).await(), new EmptyError());
|
|
108
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
runner.testGroup("with non-empty stream", () => {
|
|
112
|
+
runner.test("with negative count", (test) => {
|
|
113
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
114
|
+
test.assertThrows(() => stream.readBytes(-1).await(), new PreConditionError("Expression: count", "Expected: greater than or equal to 0", "Actual: -1"));
|
|
115
|
+
test.assertEqual(3, stream.getAvailableByteCount());
|
|
116
|
+
});
|
|
117
|
+
runner.test("with zero count", (test) => {
|
|
118
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
119
|
+
const readBytesResult = stream.readBytes(0).await();
|
|
120
|
+
test.assertEqual(new Uint8Array(), readBytesResult);
|
|
121
|
+
test.assertEqual(3, stream.getAvailableByteCount());
|
|
122
|
+
});
|
|
123
|
+
runner.test("with positive count less than bytes available", (test) => {
|
|
124
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
125
|
+
const readBytesResult = stream.readBytes(2).await();
|
|
126
|
+
test.assertEqual(new Uint8Array([1, 2]), readBytesResult);
|
|
127
|
+
test.assertEqual(1, stream.getAvailableByteCount());
|
|
128
|
+
});
|
|
129
|
+
runner.test("with positive count equal to bytes available", (test) => {
|
|
130
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
131
|
+
const readBytesResult = stream.readBytes(3).await();
|
|
132
|
+
test.assertEqual(new Uint8Array([1, 2, 3]), readBytesResult);
|
|
133
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
134
|
+
});
|
|
135
|
+
runner.test("with positive count greater than bytes available", (test) => {
|
|
136
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
137
|
+
const readBytesResult = stream.readBytes(4).await();
|
|
138
|
+
test.assertEqual(new Uint8Array([1, 2, 3]), readBytesResult);
|
|
139
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
140
|
+
});
|
|
141
|
+
runner.test("with undefined output", (test) => {
|
|
142
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
143
|
+
test.assertThrows(() => stream.readBytes(undefined), new PreConditionError("Expression: output", "Expected: not undefined and not null", "Actual: undefined"));
|
|
144
|
+
test.assertEqual(3, stream.getAvailableByteCount());
|
|
145
|
+
});
|
|
146
|
+
runner.test("with null output", (test) => {
|
|
147
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
148
|
+
test.assertThrows(() => stream.readBytes(null), new PreConditionError("Expression: output", "Expected: not undefined and not null", "Actual: null"));
|
|
149
|
+
test.assertEqual(3, stream.getAvailableByteCount());
|
|
150
|
+
});
|
|
151
|
+
runner.test("with empty output", (test) => {
|
|
152
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
153
|
+
const output = new Uint8Array();
|
|
154
|
+
const readBytesResult = stream.readBytes(output).await();
|
|
155
|
+
test.assertEqual(0, readBytesResult);
|
|
156
|
+
test.assertEqual(output, new Uint8Array());
|
|
157
|
+
test.assertEqual(3, stream.getAvailableByteCount());
|
|
158
|
+
});
|
|
159
|
+
runner.test("with output smaller than the available bytes", (test) => {
|
|
160
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
161
|
+
const output = new Uint8Array(1);
|
|
162
|
+
const readBytesResult = stream.readBytes(output).await();
|
|
163
|
+
test.assertEqual(1, readBytesResult);
|
|
164
|
+
test.assertEqual(output, new Uint8Array([1]));
|
|
165
|
+
test.assertEqual(2, stream.getAvailableByteCount());
|
|
166
|
+
});
|
|
167
|
+
runner.test("with output equal to the available bytes", (test) => {
|
|
168
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
169
|
+
const output = new Uint8Array(3);
|
|
170
|
+
const readBytesResult = stream.readBytes(output).await();
|
|
171
|
+
test.assertEqual(3, readBytesResult);
|
|
172
|
+
test.assertEqual(output, new Uint8Array([1, 2, 3]));
|
|
173
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
174
|
+
});
|
|
175
|
+
runner.test("with output larger than available bytes", (test) => {
|
|
176
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
177
|
+
const output = new Uint8Array(5);
|
|
178
|
+
const readBytesResult = stream.readBytes(output).await();
|
|
179
|
+
test.assertEqual(3, readBytesResult);
|
|
180
|
+
test.assertEqual(output, new Uint8Array([1, 2, 3, 0, 0]));
|
|
181
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
182
|
+
});
|
|
183
|
+
runner.test("with negative startIndex", (test) => {
|
|
184
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
185
|
+
const output = new Uint8Array(5);
|
|
186
|
+
test.assertThrows(() => stream.readBytes(output, -1), new PreConditionError("Expression: startIndex", "Expected: between 0 and 5", "Actual: -1"));
|
|
187
|
+
test.assertEqual(3, stream.getAvailableByteCount());
|
|
188
|
+
});
|
|
189
|
+
runner.test("with too large startIndex", (test) => {
|
|
190
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
191
|
+
const output = new Uint8Array(5);
|
|
192
|
+
test.assertThrows(() => stream.readBytes(output, 6), new PreConditionError("Expression: startIndex", "Expected: between 0 and 5", "Actual: 6"));
|
|
193
|
+
test.assertEqual(3, stream.getAvailableByteCount());
|
|
194
|
+
});
|
|
195
|
+
runner.test("with startIndex with enough space to read the entire stream", (test) => {
|
|
196
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
197
|
+
const output = new Uint8Array(5);
|
|
198
|
+
test.assertEqual(3, stream.readBytes(output, 2).await());
|
|
199
|
+
test.assertEqual(new Uint8Array([0, 0, 1, 2, 3]), output);
|
|
200
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
201
|
+
});
|
|
202
|
+
runner.test("with startIndex with not enough space to read the entire stream", (test) => {
|
|
203
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
204
|
+
const output = new Uint8Array(5);
|
|
205
|
+
test.assertEqual(2, stream.readBytes(output, 3).await());
|
|
206
|
+
test.assertEqual(new Uint8Array([0, 0, 0, 1, 2]), output);
|
|
207
|
+
test.assertEqual(1, stream.getAvailableByteCount());
|
|
208
|
+
});
|
|
209
|
+
runner.test("with startIndex equal to output length", (test) => {
|
|
210
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
211
|
+
const output = new Uint8Array(5);
|
|
212
|
+
test.assertEqual(0, stream.readBytes(output, 5).await());
|
|
213
|
+
test.assertEqual(new Uint8Array(5), output);
|
|
214
|
+
test.assertEqual(3, stream.getAvailableByteCount());
|
|
215
|
+
});
|
|
216
|
+
runner.test("with negative count", (test) => {
|
|
217
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
218
|
+
const output = new Uint8Array(5);
|
|
219
|
+
test.assertThrows(() => stream.readBytes(output, 1, -1), new PreConditionError("Expression: count", "Expected: between 0 and 4", "Actual: -1"));
|
|
220
|
+
test.assertEqual(3, stream.getAvailableByteCount());
|
|
221
|
+
});
|
|
222
|
+
runner.test("with count larger than output.length - startIndex", (test) => {
|
|
223
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
224
|
+
const output = new Uint8Array(5);
|
|
225
|
+
test.assertThrows(() => stream.readBytes(output, 1, 5), new PreConditionError("Expression: count", "Expected: between 0 and 4", "Actual: 5"));
|
|
226
|
+
test.assertEqual(3, stream.getAvailableByteCount());
|
|
227
|
+
});
|
|
228
|
+
runner.test("with startIndex with enough space to read the entire stream", (test) => {
|
|
229
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
230
|
+
const output = new Uint8Array(5);
|
|
231
|
+
test.assertEqual(3, stream.readBytes(output, 2, 3).await());
|
|
232
|
+
test.assertEqual(new Uint8Array([0, 0, 1, 2, 3]), output);
|
|
233
|
+
test.assertEqual(0, stream.getAvailableByteCount());
|
|
234
|
+
});
|
|
235
|
+
runner.test("with startIndex with not enough space to read the entire stream", (test) => {
|
|
236
|
+
const stream = ByteListStream.create([1, 2, 3]);
|
|
237
|
+
const output = new Uint8Array(5);
|
|
238
|
+
test.assertEqual(1, stream.readBytes(output, 3, 1).await());
|
|
239
|
+
test.assertEqual(new Uint8Array([0, 0, 0, 1, 0]), output);
|
|
240
|
+
test.assertEqual(2, stream.getAvailableByteCount());
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
//# sourceMappingURL=byteListStreamTests.js.map
|