Class TernarySearchTests
Tests methods in TernarySearch class.
Inheritance
System.Object
TernarySearchTests
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AlgorithmsAndDataStructuresTests.Algorithms.Search
Assembly: AlgorithmsAndDataStructuresTests.dll
Syntax
[TestClass]
public class TernarySearchTests
Methods
| Improve this Doc View SourceSearch_DistinctElements()
Tests the correctness of Ternary search algorithm on an array with distinct elements.
To visualize step by step how Ternary Search finds a distinct element (int value of 3) in List see: .
Declaration
[TestMethod]
public void Search_DistinctElements()
Search_DuplicateElements()
Tests the correctness of Ternary search algorithm on an array with duplicate elements.
To visualize step by step how Ternary Search finds a duplicate element (int value of 90) in List see: .
Declaration
[TestMethod]
public void Search_DuplicateElements()
Search_NonExistingElements()
Tests the correctness of Ternary search algorithm when the key does not exist in the array.
To visualize step by step how Ternary Search terminates without finding a missing element (int value of 15) in List see: .
Declaration
[TestMethod]
public void Search_NonExistingElements()