32 |
'application/pdf') |
'application/pdf') |
33 |
assert sb.getCurrent().length() == 2 |
assert sb.getCurrent().length() == 2 |
34 |
|
|
35 |
|
sp0 = sb.getCurrent().getPage(0) |
36 |
|
sp1 = sb.getCurrent().getPage(1) |
37 |
|
sp1_1 = sb.getCurrent().subSpan(1).getPage(0) |
38 |
|
|
39 |
|
assert sp0.getPageIndex() == 0 |
40 |
|
assert sp1 .getPageIndex()== 1 |
41 |
|
assert sp1_1 .getPageIndex()== 1 |
42 |
|
|
43 |
|
assert not sp0.equals(sp1) |
44 |
|
assert sp1_1.equals(sp1) |
45 |
|
|
46 |
|
assert not (sp0.hashCode() == sp1.hashCode()) |
47 |
|
|
48 |
def testAddTwice(): |
def testAddTwice(): |
49 |
pool = storm.impl.TransientPool(java.util.HashSet()) |
pool = storm.impl.TransientPool(java.util.HashSet()) |
50 |
salph = alph.impl.StormAlph(pool) |
salph = alph.impl.StormAlph(pool) |