Skip to content

Instantly share code, notes, and snippets.

@llimllib
Created April 1, 2010 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save llimllib/352148 to your computer and use it in GitHub Desktop.
Save llimllib/352148 to your computer and use it in GitHub Desktop.
01:38 PM ~/code/sortvis master
$ pry test
..16
E.E
ERRORS
======
test/test_graph.uDense.test_draw
Traceback (most recent call last):
File "/Users/bill/code/sortvis/test/test_graph.py", line 39, in test_draw
p.draw(a, "test", os.path.join(OUTDIR, "test_weave.png"), True)
File "../libsortvis/graph.py", line 164, in draw
self.drawPixels(c, lst, unmoved)
File "../libsortvis/graph.py", line 94, in drawPixels
ctx.set_source_rgb(*self.getColor(elem.i, len(lst)))
File "../libsortvis/graph.py", line 185, in getColor
csource = scurve.fromSize("hilbert", 3, n)
File "/Library/Python/2.5/site-packages/scurve/__init__.py", line 19, in fromSize
return curveMap[curve].fromSize(dimension, size)
File "/Library/Python/2.5/site-packages/scurve/hilbert.py", line 91, in fromSize
raise ValueError("Size does not fit Hilbert curve of dimension %s."%dimension)
ValueError: Size does not fit Hilbert curve of dimension 3.
test/test_sortable.uAlgorithms.test_all
Traceback (most recent call last):
File "/Users/bill/code/sortvis/test/test_sortable.py", line 22, in test_all
raise AssertionError("%s failed to sort."%i.name)
AssertionError: combsort failed to sort.
:: Re-evaluating expression:
:: raise AssertionError("%s failed to sort."%i.name)
:: <could not be evaluated>
5 tests (pass: 3, fail: 2) - 0.582s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment