Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oleg (0) /storage/work/scidb/tests/harness$ cat test.py
- from test_generator import *
- da= Dimension(name="a", minimum=0, size=2, count=2)
- db= Dimension(name="b", minimum=0, size=3, count=3)
- dc= Dimension(name="c", minimum=0, size=4, count=4)
- dl= DimensionList([da, db, dc])
- print str(list(dl.box_iter()))oleg (0) /storage/work/scidb/tests/harness$ python test.py
- [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})]
- oleg (0) /storage/work/scidb/tests/harness$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement