@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,602 @@
|
|
|
1
|
+
import { Condition } from "../sources/condition.js";
|
|
2
|
+
import { PreConditionError } from "../sources/preConditionError.js";
|
|
3
|
+
import { join } from "../sources/strings.js";
|
|
4
|
+
export function test(runner) {
|
|
5
|
+
runner.testFile("condition.ts", () => {
|
|
6
|
+
runner.testType("Condition", () => {
|
|
7
|
+
runner.testFunction("create()", (test) => {
|
|
8
|
+
const condition = Condition.create();
|
|
9
|
+
test.assertNotUndefinedAndNotNull(condition);
|
|
10
|
+
test.assertThrows(() => condition.assertFalse(true), new Error([
|
|
11
|
+
"Expected: false",
|
|
12
|
+
"Actual: true",
|
|
13
|
+
].join("\n")));
|
|
14
|
+
});
|
|
15
|
+
runner.testFunction("assertUndefined(unknown,string?,string?)", () => {
|
|
16
|
+
runner.test("with undefined", () => {
|
|
17
|
+
const condition = Condition.create();
|
|
18
|
+
condition.assertUndefined(undefined, "fake-expression", "fake-message");
|
|
19
|
+
});
|
|
20
|
+
function assertUndefinedErrorTest(value, expected) {
|
|
21
|
+
runner.test(`with ${runner.toString(value)}`, (test) => {
|
|
22
|
+
const condition = Condition.create();
|
|
23
|
+
test.assertThrows(() => condition.assertUndefined(value), expected);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
assertUndefinedErrorTest(null, new Error(join("\n", [
|
|
27
|
+
"Expected: undefined",
|
|
28
|
+
"Actual: null",
|
|
29
|
+
])));
|
|
30
|
+
assertUndefinedErrorTest("", new Error(join("\n", [
|
|
31
|
+
"Expected: undefined",
|
|
32
|
+
"Actual: \"\"",
|
|
33
|
+
])));
|
|
34
|
+
assertUndefinedErrorTest(50, new Error(join("\n", [
|
|
35
|
+
"Expected: undefined",
|
|
36
|
+
"Actual: 50",
|
|
37
|
+
])));
|
|
38
|
+
});
|
|
39
|
+
runner.testFunction("assertNotUndefinedAndNotNull<T>(undefined|null|T,string?,string?)", () => {
|
|
40
|
+
runner.test("with undefined", (test) => {
|
|
41
|
+
const condition = Condition.create();
|
|
42
|
+
test.assertThrows(() => condition.assertNotUndefinedAndNotNull(undefined), new Error([
|
|
43
|
+
"Expected: not undefined and not null",
|
|
44
|
+
"Actual: undefined",
|
|
45
|
+
].join("\n")));
|
|
46
|
+
});
|
|
47
|
+
runner.test("with null", (test) => {
|
|
48
|
+
const condition = Condition.create();
|
|
49
|
+
test.assertThrows(() => condition.assertNotUndefinedAndNotNull(null), new Error([
|
|
50
|
+
"Expected: not undefined and not null",
|
|
51
|
+
"Actual: null",
|
|
52
|
+
].join("\n")));
|
|
53
|
+
});
|
|
54
|
+
runner.test("with not undefined and not null", (test) => {
|
|
55
|
+
function valueCreator() {
|
|
56
|
+
return "hello";
|
|
57
|
+
}
|
|
58
|
+
const condition = Condition.create();
|
|
59
|
+
const value = valueCreator();
|
|
60
|
+
condition.assertNotUndefinedAndNotNull(value);
|
|
61
|
+
test.assertEqual(value.substring(1, 3), "el");
|
|
62
|
+
});
|
|
63
|
+
runner.test("with undefined and expression", (test) => {
|
|
64
|
+
const condition = Condition.create();
|
|
65
|
+
test.assertThrows(() => condition.assertNotUndefinedAndNotNull(undefined, "fake-expression"), new Error([
|
|
66
|
+
"Expression: fake-expression",
|
|
67
|
+
"Expected: not undefined and not null",
|
|
68
|
+
"Actual: undefined"
|
|
69
|
+
].join("\n")));
|
|
70
|
+
});
|
|
71
|
+
runner.test("with null, expression, and message", (test) => {
|
|
72
|
+
const condition = Condition.create();
|
|
73
|
+
test.assertThrows(() => condition.assertNotUndefinedAndNotNull(null, "fake-expression", "fake-message"), new Error([
|
|
74
|
+
"Message: fake-message",
|
|
75
|
+
"Expression: fake-expression",
|
|
76
|
+
"Expected: not undefined and not null",
|
|
77
|
+
"Actual: null"
|
|
78
|
+
].join("\n")));
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
runner.testFunction("assertTrue(boolean)", () => {
|
|
82
|
+
runner.test("with false", (test) => {
|
|
83
|
+
const condition = Condition.create();
|
|
84
|
+
test.assertThrows(() => condition.assertTrue(false), new Error([
|
|
85
|
+
"Expected: true",
|
|
86
|
+
"Actual: false",
|
|
87
|
+
].join("\n")));
|
|
88
|
+
});
|
|
89
|
+
runner.test("with true", (test) => {
|
|
90
|
+
function valueCreator() { return true; }
|
|
91
|
+
const condition = Condition.create();
|
|
92
|
+
const value = valueCreator();
|
|
93
|
+
condition.assertTrue(value);
|
|
94
|
+
test.assertTrue(value);
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
runner.testFunction("assertFalse(boolean)", () => {
|
|
98
|
+
runner.test("with true", (test) => {
|
|
99
|
+
const condition = Condition.create();
|
|
100
|
+
test.assertThrows(() => condition.assertFalse(true), new Error([
|
|
101
|
+
"Expected: false",
|
|
102
|
+
"Actual: true",
|
|
103
|
+
].join("\n")));
|
|
104
|
+
});
|
|
105
|
+
runner.test("with false", (test) => {
|
|
106
|
+
function valueCreator() { return false; }
|
|
107
|
+
const condition = Condition.create();
|
|
108
|
+
const value = valueCreator();
|
|
109
|
+
condition.assertFalse(value);
|
|
110
|
+
test.assertFalse(value);
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
runner.testFunction("assertSame<T>(T,T,string?,string?)", () => {
|
|
114
|
+
function assertSameErrorTest(expected, actual, expression, message, expectedError) {
|
|
115
|
+
runner.test(`with ${runner.andList([expected, actual, expression, message])}`, (test) => {
|
|
116
|
+
const condition = Condition.create();
|
|
117
|
+
test.assertThrows(() => condition.assertSame(expected, actual, expression, message), expectedError);
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
assertSameErrorTest(undefined, null, "fake-expression", "fake-message", new Error(join("\n", [
|
|
121
|
+
"Message: fake-message",
|
|
122
|
+
"Expression: fake-expression",
|
|
123
|
+
"Expected: undefined",
|
|
124
|
+
"Actual: null",
|
|
125
|
+
])));
|
|
126
|
+
assertSameErrorTest(3, 4, "fake-expression", "fake-message", new Error(join("\n", [
|
|
127
|
+
"Message: fake-message",
|
|
128
|
+
"Expression: fake-expression",
|
|
129
|
+
"Expected: 3",
|
|
130
|
+
"Actual: 4",
|
|
131
|
+
])));
|
|
132
|
+
assertSameErrorTest({}, {}, "fake-expression", "fake-message", new Error(join("\n", [
|
|
133
|
+
"Message: fake-message",
|
|
134
|
+
"Expression: fake-expression",
|
|
135
|
+
"Expected: {}",
|
|
136
|
+
"Actual: {}",
|
|
137
|
+
])));
|
|
138
|
+
assertSameErrorTest({ "a": "b" }, { "a": "b" }, "fake-expression", "fake-message", new Error(join("\n", [
|
|
139
|
+
"Message: fake-message",
|
|
140
|
+
"Expression: fake-expression",
|
|
141
|
+
"Expected: {\"a\":\"b\"}",
|
|
142
|
+
"Actual: {\"a\":\"b\"}",
|
|
143
|
+
])));
|
|
144
|
+
assertSameErrorTest([], [], "fake-expression", "fake-message", new Error(join("\n", [
|
|
145
|
+
"Message: fake-message",
|
|
146
|
+
"Expression: fake-expression",
|
|
147
|
+
"Expected: []",
|
|
148
|
+
"Actual: []",
|
|
149
|
+
])));
|
|
150
|
+
function assertSameTest(expected, actual, expression, message) {
|
|
151
|
+
runner.test(`with ${runner.andList([expected, actual, expression, message])}`, (_test) => {
|
|
152
|
+
const condition = Condition.create();
|
|
153
|
+
condition.assertSame(expected, actual, expression, message);
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
assertSameTest(undefined, undefined, "fake-expression", "fake-message");
|
|
157
|
+
assertSameTest(null, null, "fake-expression", "fake-message");
|
|
158
|
+
assertSameTest(0, 0, "fake-expression", "fake-message");
|
|
159
|
+
assertSameTest(10, 10, "fake-expression", "fake-message");
|
|
160
|
+
assertSameTest(true, true, "fake-expression", "fake-message");
|
|
161
|
+
assertSameTest("abc", "abc", "fake-expression", "fake-message");
|
|
162
|
+
const o = {};
|
|
163
|
+
assertSameTest(o, o, "fake-expression", "fake-message");
|
|
164
|
+
});
|
|
165
|
+
runner.testFunction("assertNotSame<T>(T,T,string?,string?)", () => {
|
|
166
|
+
function assertNotSameErrorTest(expected, actual, expression, message, expectedError) {
|
|
167
|
+
runner.test(`with ${runner.andList([expected, actual, expression, message])}`, (test) => {
|
|
168
|
+
const condition = Condition.create();
|
|
169
|
+
test.assertThrows(() => condition.assertNotSame(expected, actual, expression, message), expectedError);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
assertNotSameErrorTest(undefined, undefined, "fake-expression", "fake-message", new Error(join("\n", [
|
|
173
|
+
"Message: fake-message",
|
|
174
|
+
"Expression: fake-expression",
|
|
175
|
+
"Expected: not undefined",
|
|
176
|
+
"Actual: undefined",
|
|
177
|
+
])));
|
|
178
|
+
assertNotSameErrorTest(null, null, "fake-expression", "fake-message", new Error(join("\n", [
|
|
179
|
+
"Message: fake-message",
|
|
180
|
+
"Expression: fake-expression",
|
|
181
|
+
"Expected: not null",
|
|
182
|
+
"Actual: null",
|
|
183
|
+
])));
|
|
184
|
+
assertNotSameErrorTest(0, 0, "fake-expression", "fake-message", new Error(join("\n", [
|
|
185
|
+
"Message: fake-message",
|
|
186
|
+
"Expression: fake-expression",
|
|
187
|
+
"Expected: not 0",
|
|
188
|
+
"Actual: 0",
|
|
189
|
+
])));
|
|
190
|
+
assertNotSameErrorTest(10, 10, "fake-expression", "fake-message", new Error(join("\n", [
|
|
191
|
+
"Message: fake-message",
|
|
192
|
+
"Expression: fake-expression",
|
|
193
|
+
"Expected: not 10",
|
|
194
|
+
"Actual: 10",
|
|
195
|
+
])));
|
|
196
|
+
assertNotSameErrorTest(true, true, "fake-expression", "fake-message", new Error(join("\n", [
|
|
197
|
+
"Message: fake-message",
|
|
198
|
+
"Expression: fake-expression",
|
|
199
|
+
"Expected: not true",
|
|
200
|
+
"Actual: true",
|
|
201
|
+
])));
|
|
202
|
+
assertNotSameErrorTest("abc", "abc", "fake-expression", "fake-message", new Error(join("\n", [
|
|
203
|
+
"Message: fake-message",
|
|
204
|
+
"Expression: fake-expression",
|
|
205
|
+
"Expected: not \"abc\"",
|
|
206
|
+
"Actual: \"abc\"",
|
|
207
|
+
])));
|
|
208
|
+
const o = {};
|
|
209
|
+
assertNotSameErrorTest(o, o, "fake-expression", "fake-message", new Error(join("\n", [
|
|
210
|
+
"Message: fake-message",
|
|
211
|
+
"Expression: fake-expression",
|
|
212
|
+
"Expected: not {}",
|
|
213
|
+
"Actual: {}",
|
|
214
|
+
])));
|
|
215
|
+
function assertNotSameTest(expected, actual, expression, message) {
|
|
216
|
+
runner.test(`with ${runner.andList([expected, actual, expression, message])}`, (_test) => {
|
|
217
|
+
const condition = Condition.create();
|
|
218
|
+
condition.assertNotSame(expected, actual, expression, message);
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
assertNotSameTest(undefined, null, "fake-expression", "fake-message");
|
|
222
|
+
assertNotSameTest(false, true, "fake-expression", "fake-message");
|
|
223
|
+
assertNotSameTest(1, 2, "fake-expression", "fake-message");
|
|
224
|
+
assertNotSameTest({}, {}, "fake-expression", "fake-message");
|
|
225
|
+
assertNotSameTest({ "a": "b" }, { "a": "b" }, "fake-expression", "fake-message");
|
|
226
|
+
assertNotSameTest([], [], "fake-expression", "fake-message");
|
|
227
|
+
});
|
|
228
|
+
runner.testFunction("assertNotEmpty(string,string?,string?)", () => {
|
|
229
|
+
function assertNotEmptyErrorTest(value, expression, message, expectedError) {
|
|
230
|
+
runner.test(`with ${runner.andList([value, expression, message])}`, (test) => {
|
|
231
|
+
const condition = Condition.create();
|
|
232
|
+
test.assertThrows(() => condition.assertNotEmpty(value, expression, message), expectedError);
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
assertNotEmptyErrorTest(undefined, "fake-expression", "fake-message", new Error(join("\n", [
|
|
236
|
+
"Message: fake-message",
|
|
237
|
+
"Expression: fake-expression",
|
|
238
|
+
"Expected: not undefined and not null",
|
|
239
|
+
"Actual: undefined",
|
|
240
|
+
])));
|
|
241
|
+
assertNotEmptyErrorTest(null, "fake-expression", "fake-message", new Error(join("\n", [
|
|
242
|
+
"Message: fake-message",
|
|
243
|
+
"Expression: fake-expression",
|
|
244
|
+
"Expected: not undefined and not null",
|
|
245
|
+
"Actual: null",
|
|
246
|
+
])));
|
|
247
|
+
assertNotEmptyErrorTest("", "fake-expression", "fake-message", new Error(join("\n", [
|
|
248
|
+
"Message: fake-message",
|
|
249
|
+
"Expression: fake-expression",
|
|
250
|
+
"Expected: not empty",
|
|
251
|
+
"Actual: \"\"",
|
|
252
|
+
])));
|
|
253
|
+
function assertNotEmptyTest(value, expression, message) {
|
|
254
|
+
runner.test(`with ${runner.andList([value, expression, message])}`, (_test) => {
|
|
255
|
+
const condition = Condition.create();
|
|
256
|
+
condition.assertNotEmpty(value, expression, message);
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
assertNotEmptyTest(" ", "fake-expression", "fake-message");
|
|
260
|
+
assertNotEmptyTest("a", "fake-expression", "fake-message");
|
|
261
|
+
});
|
|
262
|
+
runner.testFunction("assertLessThan(number,number,string?,string?)", () => {
|
|
263
|
+
function assertLessThanErrorTest(value, upperBound, expression, message, expectedError) {
|
|
264
|
+
runner.test(`with ${runner.andList([value, upperBound])}`, (test) => {
|
|
265
|
+
const condition = Condition.create();
|
|
266
|
+
test.assertThrows(() => condition.assertLessThan(value, upperBound, expression, message), expectedError);
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
assertLessThanErrorTest(-1, -1, undefined, undefined, new Error(join("\n", [
|
|
270
|
+
"Expected: less than -1",
|
|
271
|
+
"Actual: -1",
|
|
272
|
+
])));
|
|
273
|
+
assertLessThanErrorTest(0, 0, undefined, undefined, new Error(join("\n", [
|
|
274
|
+
"Expected: less than 0",
|
|
275
|
+
"Actual: 0",
|
|
276
|
+
])));
|
|
277
|
+
assertLessThanErrorTest(2, 1, undefined, undefined, new Error(join("\n", [
|
|
278
|
+
"Expected: less than 1",
|
|
279
|
+
"Actual: 2",
|
|
280
|
+
])));
|
|
281
|
+
assertLessThanErrorTest(2, 1, "fake-expression", "fake-message", new Error(join("\n", [
|
|
282
|
+
"Message: fake-message",
|
|
283
|
+
"Expression: fake-expression",
|
|
284
|
+
"Expected: less than 1",
|
|
285
|
+
"Actual: 2",
|
|
286
|
+
])));
|
|
287
|
+
function assertLessThanTest(value, upperBound, expression, message) {
|
|
288
|
+
runner.test(`with ${runner.andList([value, upperBound])}`, () => {
|
|
289
|
+
const condition = Condition.create();
|
|
290
|
+
condition.assertLessThan(value, upperBound, expression, message);
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
assertLessThanTest(-10, -9);
|
|
294
|
+
assertLessThanTest(-1, 0);
|
|
295
|
+
assertLessThanTest(0, 1);
|
|
296
|
+
assertLessThanTest(4, 5);
|
|
297
|
+
});
|
|
298
|
+
runner.testFunction("assertLessThanOrEqualTo(number,number,string?,string?)", () => {
|
|
299
|
+
function assertLessThanOrEqualToErrorTest(value, upperBound, expression, message, expectedError) {
|
|
300
|
+
runner.test(`with ${runner.andList([value, upperBound])}`, (test) => {
|
|
301
|
+
const condition = Condition.create();
|
|
302
|
+
test.assertThrows(() => condition.assertLessThanOrEqualTo(value, upperBound, expression, message), expectedError);
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
assertLessThanOrEqualToErrorTest(2, 1, undefined, undefined, new Error(join("\n", [
|
|
306
|
+
"Expected: less than or equal to 1",
|
|
307
|
+
"Actual: 2",
|
|
308
|
+
])));
|
|
309
|
+
assertLessThanOrEqualToErrorTest(2, 1, "fake-expression", "fake-message", new Error(join("\n", [
|
|
310
|
+
"Message: fake-message",
|
|
311
|
+
"Expression: fake-expression",
|
|
312
|
+
"Expected: less than or equal to 1",
|
|
313
|
+
"Actual: 2",
|
|
314
|
+
])));
|
|
315
|
+
function assertLessThanOrEqualToTest(value, upperBound, expression, message) {
|
|
316
|
+
runner.test(`with ${runner.andList([value, upperBound])}`, () => {
|
|
317
|
+
const condition = Condition.create();
|
|
318
|
+
condition.assertLessThanOrEqualTo(value, upperBound, expression, message);
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
assertLessThanOrEqualToTest(-10, -9, undefined, undefined);
|
|
322
|
+
assertLessThanOrEqualToTest(-1, 0, undefined, undefined);
|
|
323
|
+
assertLessThanOrEqualToTest(0, 1, undefined, undefined);
|
|
324
|
+
assertLessThanOrEqualToTest(4, 5, undefined, undefined);
|
|
325
|
+
assertLessThanOrEqualToTest(-1, -1, undefined, undefined);
|
|
326
|
+
assertLessThanOrEqualToTest(0, 0, undefined, undefined);
|
|
327
|
+
assertLessThanOrEqualToTest(1, 1, undefined, undefined);
|
|
328
|
+
});
|
|
329
|
+
runner.testFunction("assertGreaterThanOrEqualTo(number,number,string?,string?)", () => {
|
|
330
|
+
function assertGreaterThanOrEqualToErrorTest(value, lowerBound, expression, message, expectedError) {
|
|
331
|
+
runner.test(`with ${runner.andList([value, lowerBound])}`, (test) => {
|
|
332
|
+
const condition = Condition.create();
|
|
333
|
+
test.assertThrows(() => condition.assertGreaterThanOrEqualTo(value, lowerBound, expression, message), expectedError);
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
assertGreaterThanOrEqualToErrorTest(1, 2, undefined, undefined, new Error(join("\n", [
|
|
337
|
+
"Expected: greater than or equal to 2",
|
|
338
|
+
"Actual: 1",
|
|
339
|
+
])));
|
|
340
|
+
assertGreaterThanOrEqualToErrorTest(1, 2, "fake-expression", "fake-message", new Error(join("\n", [
|
|
341
|
+
"Message: fake-message",
|
|
342
|
+
"Expression: fake-expression",
|
|
343
|
+
"Expected: greater than or equal to 2",
|
|
344
|
+
"Actual: 1",
|
|
345
|
+
])));
|
|
346
|
+
function assertGreaterThanOrEqualToTest(value, lowerBound, expression, message) {
|
|
347
|
+
runner.test(`with ${runner.andList([value, lowerBound])}`, (_test) => {
|
|
348
|
+
const condition = Condition.create();
|
|
349
|
+
condition.assertGreaterThanOrEqualTo(value, lowerBound, expression, message);
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
assertGreaterThanOrEqualToTest(-9, -10);
|
|
353
|
+
assertGreaterThanOrEqualToTest(0, -1);
|
|
354
|
+
assertGreaterThanOrEqualToTest(1, 0);
|
|
355
|
+
assertGreaterThanOrEqualToTest(5, 4);
|
|
356
|
+
assertGreaterThanOrEqualToTest(-1, -1);
|
|
357
|
+
assertGreaterThanOrEqualToTest(0, 0);
|
|
358
|
+
assertGreaterThanOrEqualToTest(1, 1);
|
|
359
|
+
});
|
|
360
|
+
runner.testFunction("assertGreaterThan(number,number,string?,string?)", () => {
|
|
361
|
+
function assertGreaterThanErrorTest(value, lowerBound, expression, message, expectedError) {
|
|
362
|
+
runner.test(`with ${runner.andList([value, lowerBound])}`, (test) => {
|
|
363
|
+
const condition = Condition.create();
|
|
364
|
+
test.assertThrows(() => condition.assertGreaterThan(value, lowerBound, expression, message), expectedError);
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
assertGreaterThanErrorTest(-1, -1, undefined, undefined, new Error(join("\n", [
|
|
368
|
+
"Expected: greater than -1",
|
|
369
|
+
"Actual: -1",
|
|
370
|
+
])));
|
|
371
|
+
assertGreaterThanErrorTest(0, 0, undefined, undefined, new Error(join("\n", [
|
|
372
|
+
"Expected: greater than 0",
|
|
373
|
+
"Actual: 0",
|
|
374
|
+
])));
|
|
375
|
+
assertGreaterThanErrorTest(1, 2, undefined, undefined, new Error(join("\n", [
|
|
376
|
+
"Expected: greater than 2",
|
|
377
|
+
"Actual: 1",
|
|
378
|
+
])));
|
|
379
|
+
assertGreaterThanErrorTest(1, 2, "fake-expression", "fake-message", new Error(join("\n", [
|
|
380
|
+
"Message: fake-message",
|
|
381
|
+
"Expression: fake-expression",
|
|
382
|
+
"Expected: greater than 2",
|
|
383
|
+
"Actual: 1",
|
|
384
|
+
])));
|
|
385
|
+
function assertGreaterThanTest(value, lowerBound, expression, message) {
|
|
386
|
+
runner.test(`with ${runner.andList([value, lowerBound])}`, (_test) => {
|
|
387
|
+
const condition = Condition.create();
|
|
388
|
+
condition.assertGreaterThan(value, lowerBound, expression, message);
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
assertGreaterThanTest(-9, -10);
|
|
392
|
+
assertGreaterThanTest(0, -1);
|
|
393
|
+
assertGreaterThanTest(1, 0);
|
|
394
|
+
assertGreaterThanTest(5, 4);
|
|
395
|
+
});
|
|
396
|
+
runner.testFunction("assertBetween(number,number,number,string?,string?)", () => {
|
|
397
|
+
function assertBetweenErrorTest(lowerBound, value, upperBound, expression, message, expectedError) {
|
|
398
|
+
runner.test(`with ${runner.andList([lowerBound, value, upperBound])}`, (test) => {
|
|
399
|
+
const condition = Condition.create();
|
|
400
|
+
test.assertThrows(() => condition.assertBetween(lowerBound, value, upperBound, expression, message), expectedError);
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
assertBetweenErrorTest(0, 1, 0, undefined, undefined, new Error(join("\n", [
|
|
404
|
+
"Expected: 0",
|
|
405
|
+
"Actual: 1",
|
|
406
|
+
])));
|
|
407
|
+
assertBetweenErrorTest(0, -1, 0, undefined, undefined, new Error(join("\n", [
|
|
408
|
+
"Expected: 0",
|
|
409
|
+
"Actual: -1",
|
|
410
|
+
])));
|
|
411
|
+
assertBetweenErrorTest(0, -1, 2, undefined, undefined, new Error(join("\n", [
|
|
412
|
+
"Expected: between 0 and 2",
|
|
413
|
+
"Actual: -1",
|
|
414
|
+
])));
|
|
415
|
+
assertBetweenErrorTest(0, 3, 2, undefined, undefined, new Error(join("\n", [
|
|
416
|
+
"Expected: between 0 and 2",
|
|
417
|
+
"Actual: 3",
|
|
418
|
+
])));
|
|
419
|
+
assertBetweenErrorTest(5, 3, 2, "fake-expression", "fake-message", new Error(join("\n", [
|
|
420
|
+
"Expression: lowerBound",
|
|
421
|
+
"Expected: less than or equal to 2",
|
|
422
|
+
"Actual: 5",
|
|
423
|
+
])));
|
|
424
|
+
function assertBetweenTest(lowerBound, value, upperBound, expression, message) {
|
|
425
|
+
runner.test(`with ${runner.andList([lowerBound, value, upperBound])}`, () => {
|
|
426
|
+
const condition = Condition.create();
|
|
427
|
+
condition.assertBetween(lowerBound, value, upperBound, expression, message);
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
assertBetweenTest(-12, -11, -10);
|
|
431
|
+
assertBetweenTest(-1, 0, 1);
|
|
432
|
+
assertBetweenTest(0, 1, 2);
|
|
433
|
+
assertBetweenTest(4, 5, 6);
|
|
434
|
+
assertBetweenTest(0, 0, 0);
|
|
435
|
+
assertBetweenTest(1, 1, 1);
|
|
436
|
+
});
|
|
437
|
+
runner.testFunction("assertAccessIndex(number,number,string?,string?)", () => {
|
|
438
|
+
function assertAccessIndexTest(index, count, expression, message) {
|
|
439
|
+
runner.test(`with ${runner.andList([index, count])}`, (_test) => {
|
|
440
|
+
const condition = Condition.create();
|
|
441
|
+
condition.assertAccessIndex(index, count, expression, message);
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
assertAccessIndexTest(0, 1);
|
|
445
|
+
assertAccessIndexTest(0, 2);
|
|
446
|
+
assertAccessIndexTest(1, 2);
|
|
447
|
+
function assertAccessIndexErrorTest(index, count, expression, message, expectedError) {
|
|
448
|
+
runner.test(`with ${runner.andList([index, count])}`, (test) => {
|
|
449
|
+
const condition = Condition.create();
|
|
450
|
+
test.assertThrows(() => condition.assertAccessIndex(index, count, expression, message), expectedError);
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
assertAccessIndexErrorTest(-1, 0, undefined, undefined, new Error(join("\n", [
|
|
454
|
+
"Expression: count",
|
|
455
|
+
"Expected: greater than or equal to 1",
|
|
456
|
+
"Actual: 0",
|
|
457
|
+
])));
|
|
458
|
+
assertAccessIndexErrorTest(0, 0, undefined, undefined, new Error(join("\n", [
|
|
459
|
+
"Expression: count",
|
|
460
|
+
"Expected: greater than or equal to 1",
|
|
461
|
+
"Actual: 0",
|
|
462
|
+
])));
|
|
463
|
+
assertAccessIndexErrorTest(1, 0, undefined, undefined, new Error(join("\n", [
|
|
464
|
+
"Expression: count",
|
|
465
|
+
"Expected: greater than or equal to 1",
|
|
466
|
+
"Actual: 0",
|
|
467
|
+
])));
|
|
468
|
+
assertAccessIndexErrorTest(-1, 1, undefined, undefined, new Error(join("\n", [
|
|
469
|
+
"Expected: 0",
|
|
470
|
+
"Actual: -1",
|
|
471
|
+
])));
|
|
472
|
+
assertAccessIndexErrorTest(1, 1, undefined, undefined, new Error(join("\n", [
|
|
473
|
+
"Expected: 0",
|
|
474
|
+
"Actual: 1",
|
|
475
|
+
])));
|
|
476
|
+
assertAccessIndexErrorTest(-1, 2, undefined, undefined, new Error(join("\n", [
|
|
477
|
+
"Expected: between 0 and 1",
|
|
478
|
+
"Actual: -1",
|
|
479
|
+
])));
|
|
480
|
+
assertAccessIndexErrorTest(1, 1, "fake-expression", "fake-message", new Error(join("\n", [
|
|
481
|
+
"Message: fake-message",
|
|
482
|
+
"Expression: fake-expression",
|
|
483
|
+
"Expected: 0",
|
|
484
|
+
"Actual: 1",
|
|
485
|
+
])));
|
|
486
|
+
assertAccessIndexErrorTest(3, 2, "fake-expression", "fake-message", new Error(join("\n", [
|
|
487
|
+
"Message: fake-message",
|
|
488
|
+
"Expression: fake-expression",
|
|
489
|
+
"Expected: between 0 and 1",
|
|
490
|
+
"Actual: 3",
|
|
491
|
+
])));
|
|
492
|
+
});
|
|
493
|
+
runner.testFunction("assertInsertIndex(number,number,string?,string?)", () => {
|
|
494
|
+
function assertInsertIndexErrorTest(index, count, expression, message, expectedError) {
|
|
495
|
+
runner.test(`with ${runner.andList([index, count])}`, (test) => {
|
|
496
|
+
const condition = Condition.create();
|
|
497
|
+
test.assertThrows(() => condition.assertInsertIndex(index, count, expression, message), expectedError);
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
assertInsertIndexErrorTest(-1, 0, undefined, undefined, new Error(join("\n", [
|
|
501
|
+
"Expected: 0",
|
|
502
|
+
"Actual: -1",
|
|
503
|
+
])));
|
|
504
|
+
assertInsertIndexErrorTest(1, 0, undefined, undefined, new Error(join("\n", [
|
|
505
|
+
"Expected: 0",
|
|
506
|
+
"Actual: 1",
|
|
507
|
+
])));
|
|
508
|
+
assertInsertIndexErrorTest(-1, 1, undefined, undefined, new Error(join("\n", [
|
|
509
|
+
"Expected: between 0 and 1",
|
|
510
|
+
"Actual: -1",
|
|
511
|
+
])));
|
|
512
|
+
assertInsertIndexErrorTest(2, 1, undefined, undefined, new Error(join("\n", [
|
|
513
|
+
"Expected: between 0 and 1",
|
|
514
|
+
"Actual: 2",
|
|
515
|
+
])));
|
|
516
|
+
assertInsertIndexErrorTest(-1, 2, undefined, undefined, new Error(join("\n", [
|
|
517
|
+
"Expected: between 0 and 2",
|
|
518
|
+
"Actual: -1",
|
|
519
|
+
])));
|
|
520
|
+
assertInsertIndexErrorTest(2, 1, "fake-expression", "fake-message", new Error(join("\n", [
|
|
521
|
+
"Message: fake-message",
|
|
522
|
+
"Expression: fake-expression",
|
|
523
|
+
"Expected: between 0 and 1",
|
|
524
|
+
"Actual: 2",
|
|
525
|
+
])));
|
|
526
|
+
assertInsertIndexErrorTest(3, 2, "fake-expression", "fake-message", new Error(join("\n", [
|
|
527
|
+
"Message: fake-message",
|
|
528
|
+
"Expression: fake-expression",
|
|
529
|
+
"Expected: between 0 and 2",
|
|
530
|
+
"Actual: 3",
|
|
531
|
+
])));
|
|
532
|
+
function assertInsertIndexTest(index, count, expression, message) {
|
|
533
|
+
runner.test(`with ${runner.andList([index, count])}`, (_test) => {
|
|
534
|
+
const condition = Condition.create();
|
|
535
|
+
condition.assertInsertIndex(index, count, expression, message);
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
assertInsertIndexTest(0, 0);
|
|
539
|
+
assertInsertIndexTest(0, 1);
|
|
540
|
+
assertInsertIndexTest(1, 1);
|
|
541
|
+
assertInsertIndexTest(0, 2);
|
|
542
|
+
assertInsertIndexTest(1, 2);
|
|
543
|
+
assertInsertIndexTest(2, 2);
|
|
544
|
+
});
|
|
545
|
+
runner.testFunction("assertOneOf<T>(JavascriptIterable<T>,T,string?,string?)", () => {
|
|
546
|
+
function assertOneOfErrorTest(possibilities, value, expression, message, expectedError) {
|
|
547
|
+
runner.test(`with ${runner.andList([possibilities, value, expression, message])}`, (test) => {
|
|
548
|
+
const condition = Condition.create();
|
|
549
|
+
test.assertThrows(() => condition.assertOneOf(possibilities, value, expression, message), expectedError);
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
assertOneOfErrorTest(undefined, 5, undefined, undefined, new PreConditionError("Expression: possibilities", "Expected: not undefined and not null", "Actual: undefined"));
|
|
553
|
+
assertOneOfErrorTest(null, 5, undefined, undefined, new PreConditionError("Expression: possibilities", "Expected: not undefined and not null", "Actual: null"));
|
|
554
|
+
assertOneOfErrorTest([], 5, undefined, undefined, new PreConditionError("Expected: one of []", "Actual: 5"));
|
|
555
|
+
assertOneOfErrorTest([], 5, "fake-expression", "fake-message", new PreConditionError("Message: fake-message", "Expression: fake-expression", "Expected: one of []", "Actual: 5"));
|
|
556
|
+
assertOneOfErrorTest([1, 2, 3], 5, "fake-expression", "fake-message", new PreConditionError("Message: fake-message", "Expression: fake-expression", "Expected: one of [1,2,3]", "Actual: 5"));
|
|
557
|
+
function assertOneOfTest(possibilities, value, expression, message) {
|
|
558
|
+
runner.test(`with ${runner.andList([possibilities, value, expression, message])}`, (_test) => {
|
|
559
|
+
const condition = Condition.create();
|
|
560
|
+
condition.assertOneOf(possibilities, value, expression, message);
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
assertOneOfTest([5], 5);
|
|
564
|
+
assertOneOfTest([1, 3, 5, 7], 5);
|
|
565
|
+
});
|
|
566
|
+
runner.testFunction("assertInteger(number,string?,string?)", () => {
|
|
567
|
+
function assertIntegerErrorTest(value, expected) {
|
|
568
|
+
runner.test(`with ${runner.toString(value)}`, (test) => {
|
|
569
|
+
const condition = Condition.create();
|
|
570
|
+
test.assertThrows(() => condition.assertInteger(value), expected);
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
assertIntegerErrorTest(1.2, new Error(join("\n", [
|
|
574
|
+
"Expected: integer",
|
|
575
|
+
"Actual: 1.2",
|
|
576
|
+
])));
|
|
577
|
+
assertIntegerErrorTest(NaN, new Error(join("\n", [
|
|
578
|
+
"Expected: integer",
|
|
579
|
+
"Actual: NaN",
|
|
580
|
+
])));
|
|
581
|
+
assertIntegerErrorTest(Infinity, new Error(join("\n", [
|
|
582
|
+
"Expected: integer",
|
|
583
|
+
"Actual: Infinity",
|
|
584
|
+
])));
|
|
585
|
+
assertIntegerErrorTest(-Infinity, new Error(join("\n", [
|
|
586
|
+
"Expected: integer",
|
|
587
|
+
"Actual: -Infinity",
|
|
588
|
+
])));
|
|
589
|
+
function assertIntegerTest(value) {
|
|
590
|
+
runner.test(`with ${value}`, (_test) => {
|
|
591
|
+
const condition = Condition.create();
|
|
592
|
+
condition.assertInteger(value);
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
assertIntegerTest(-1);
|
|
596
|
+
assertIntegerTest(0);
|
|
597
|
+
assertIntegerTest(1);
|
|
598
|
+
});
|
|
599
|
+
});
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
//# sourceMappingURL=conditionTests.js.map
|