INTERNAL: The internal package for @std. Do not use this directly.
default
Internal utilities for the public API of the Deno Standard Library.
Asserts that the value is a FarthestPoint
.
If not, an error is thrown.
Creates an array of backtraced differences.
Sets the background color of text to be printed to green.
Sets the background color of text to be printed to red.
Sets the style of text to be printed to bold.
Sets the color of text to be printed to bright-black.
Builds a message based on the provided diff result.
Colors the output of assertion diffs.
Creates an array of common elements between two arrays.
Create details by filtering relevant word-diff for current line and merge "space-diff" if surrounded by word-diff for cleaner displays.
Creates a FarthestPoint
.
Prefixes +
or -
in diff output.
Renders the differences between the actual and expected values.
Renders the differences between the actual and expected strings. Partially inspired from https://github.com/kpdecker/jsdiff.
Ways that lines in a diff can be different.
Converts the input into a string. Objects, Sets and Maps are sorted so as to make tests less flaky.
return an instance of AssertionState
Sets the color of text to be printed to gray.
Sets the color of text to be printed to green.
Sets the color of text to be printed to red.
Remove ANSI escape codes from the string.
Tokenizes a string into an array of tokens.
Unescape invisible characters.
Sets the color of text to be printed to white.
Sets the color of text to be printed to yellow.
return an instance of AssertionState
Builds a message based on the provided diff result.
Colors the output of assertion diffs.
Prefixes +
or -
in diff output.
Asserts that the value is a FarthestPoint
.
If not, an error is thrown.
Creates an array of backtraced differences.
Creates an array of common elements between two arrays.
Creates a FarthestPoint
.
Renders the differences between the actual and expected values.
Create details by filtering relevant word-diff for current line and merge "space-diff" if surrounded by word-diff for cleaner displays.
Renders the differences between the actual and expected strings. Partially inspired from https://github.com/kpdecker/jsdiff.
Tokenizes a string into an array of tokens.
Unescape invisible characters.
Converts the input into a string. Objects, Sets and Maps are sorted so as to make tests less flaky.
Sets the background color of text to be printed to green.
Sets the background color of text to be printed to red.
Sets the style of text to be printed to bold.
Sets the color of text to be printed to bright-black.
Sets the color of text to be printed to gray.
Sets the color of text to be printed to green.
Sets the color of text to be printed to red.
Remove ANSI escape codes from the string.
Sets the color of text to be printed to white.
Sets the color of text to be printed to yellow.
Ways that lines in a diff can be different.