Documentation ¶
Index ¶
- func PrintTestResult(t *testing.T, functionName string, result, expected []int, ...)
- func RunDeleteElementTest(t *testing.T, numbers []int, deletedIndex int, afterDeletingValue []int)
- func RunInsertElementTest(t *testing.T, numbers []int, indexingValue int, targetedIndex int, ...)
- func RunLargestNumber(t *testing.T, numbers []int, largestNumber int)
- func RunLeadersInAnArray(t *testing.T, numbers []int, expected []int)
- func RunLeftRotateArrayByOneTest(t *testing.T, numbers []int, expected []int)
- func RunMaxProfit(t *testing.T, numbers []int, maxProfit int)
- func RunMaximumDifference(t *testing.T, numbers []int, maximumDifference int)
- func RunMoveAllZEROSToEnd(t *testing.T, numbers []int, expected []int)
- func RunRemoveDuplicatesValuesFromArray(t *testing.T, numbers []int, expected []int)
- func RunReverseElementTest(t *testing.T, numbers []int, afterReversingArray []int)
- func RunSecondLargestNumber(t *testing.T, numbers []int, secondLargestNumber int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintTestResult ¶
func PrintTestResult(t *testing.T, functionName string, result, expected []int, successMessage, failureMessage string)
Common function to print the test result
func RunDeleteElementTest ¶
RunDeleteElementTest runs tests for deleting an element from the array
func RunInsertElementTest ¶
func RunInsertElementTest(t *testing.T, numbers []int, indexingValue int, targetedIndex int, afterIndexingValue []int)
RunInsertElementTest runs tests for inserting an element into the array
func RunLargestNumber ¶
RunLargestNumber runs tests for getting the largest value
func RunLeadersInAnArray ¶
RunLeadersInAnArray runs tests for getting the leader list value on the array
func RunLeftRotateArrayByOneTest ¶
RunLeftRotateArrayByOneTest runs tests for left rotating an array by one position
func RunMaxProfit ¶
MaxProfit runs tests for getting the maximum profit
func RunMaximumDifference ¶
RunMaximumDifference runs tests for getting the maximum diffrence value
func RunMoveAllZEROSToEnd ¶
RunMoveAllZEROSToEnd runs tests for moving the all zeros arrays last
func RunRemoveDuplicatesValuesFromArray ¶
RunRemoveDuplicatesValuesFromArray runs tests for removing duplicates value
func RunReverseElementTest ¶
RunReverseElementTest runs tests for array reversal functions
Types ¶
This section is empty.