varseq_test

Module summary

Tests the varseq.VarSeq procedures.

(In the implementation details below, click on class/function names for additional documentation and links to the source code.)

❖❖❖

Implements functions (outside the classes above):

test_align_to(N)

Tests the correctness of varseq.VarSeq.align_to().

❖❖❖

Implementation details

❖❖❖

Functions

varseq_test.test_align_to(N)[source]

Tests the correctness of varseq.VarSeq.align_to().

Generates random variable sequences (of length N) and tests VarSeq.align_to() against a naive implementation of VarSeq.greedy_sort().