Advertisement
zamotivator

Untitled

May 9th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. oleg (0) /storage/work/scidb/tests/harness$ cat test.py
  2. from test_generator import *
  3. da= Dimension(name="a", minimum=0, size=2, count=2)
  4. db= Dimension(name="b", minimum=0, size=3, count=3)
  5. dc= Dimension(name="c", minimum=0, size=4, count=4)
  6. dl= DimensionList([da, db, dc])
  7. print str(list(dl.box_iter()))oleg (0) /storage/work/scidb/tests/harness$ python test.py
  8. [Box({0,0,0},{4,3,2}), Box({0,0,2},{4,3,4}), Box({0,3,0},{4,6,2}), Box({0,3,2},{4,6,4}), Box({0,6,0},{4,9,2}), Box({0,6,2},{4,9,4}), Box({4,0,0},{8,3,2}), Box({4,0,2},{8,3,4}), Box({4,3,0},{8,6,2}), Box({4,3,2},{8,6,4}), Box({4,6,0},{8,9,2}), Box({4,6,2},{8,9,4}), Box({8,0,0},{12,3,2}), Box({8,0,2},{12,3,4}), Box({8,3,0},{12,6,2}), Box({8,3,2},{12,6,4}), Box({8,6,0},{12,9,2}), Box({8,6,2},{12,9,4}), Box({12,0,0},{16,3,2}), Box({12,0,2},{16,3,4}), Box({12,3,0},{16,6,2}), Box({12,3,2},{16,6,4}), Box({12,6,0},{16,9,2}), Box({12,6,2},{16,9,4})]
  9. oleg (0) /storage/work/scidb/tests/harness$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement