Page MenuHomePhabricator

PawLIB Tests
Updated 1,256 Days AgoPublic

In order to further subdivide tests across categories, the first digit of the test ID indicates the sector of PawLIB.

IDSector
0Core
01Core Data Types
02Standard Utilities
1Data Structures
10FlexArray
11FlexMap
12FlexQueue
13FlexStack
14SimplyLinkedList
15FlexBit
16Pool
2IOChannel
3PawSort
4OneString related
40OneString
41OneChar
5PuppeteerXML

PawSort

Test IDNameDescription
P-tB301Sorted ArrayAlready sorted array.
P-tB302Reversed ArrayAlready sorted array in reverse.
P-tB303Nearly, Invert 2Nearly sorted array - the order of every two are inverted.
P-tB304Nearly, Invert 5Nearly sorted array- the order of every five are inverted.
P-tB305Few UniqueFew (specifically, five) unique values in the array.
P-tB306Black SheepArray with only two values out of place.
P-tB307Double ClimbArray values ascends from 0 to half, twice sequentially.
P-tB308Double DropArray values descend from half to 0, twice sequentially.
P-tB309StairsArray ascends and descends "stairs", with a jump of 5.
P-tB310MountainArray ascends from 0 to half and drops back to 0.
P-tB311Double MountainArray ascends from 0 to half and drops, twice. Uses double-jumps.
P-tB312EverestArray ascends by huge increments, and then drop back to 0.
P-tB313CliffArray ascends by huge increments, and then drops off suddenly.
P-tB314SpikeArray ascends from 0 towards half, spikes suddenly, and then drops back down near half and descends towards 0. Intended to throw off the median-of-three by creating an absurdly high middle value.
P-tB315ChickenArray composed of pairs - one starting at 0 and incrementing by one each pair, and one starting at n and decrementing by one each [pair, with the middle pair values both being half of n.
P-tB316NightmareArray brutally murders the median-of-three by placing 0 at the first, middle, and last indices, on top of a reversed sorted array with few unique values. Really, this is just evil incarnate.
Last Author
jcmcdonald
Last Edited
Mar 2 2019, 11:01 AM

Event Timeline

jcmcdonald edited the content of this document. (Show Details)
jcmcdonald edited the content of this document. (Show Details)