Browse Source

修改Padder的测试用例

tags/v0.3.1^2
yh 6 years ago
parent
commit
3e33a23042
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      test/core/test_fieldarray.py

+ 3
- 2
test/core/test_fieldarray.py View File

@@ -118,11 +118,12 @@ class TestPadder(unittest.TestCase):
self.assertListEqual([[1,2], [3, 0], [4, 0]],
padder(content, None, np.int64).tolist())

contents = [
content = [
[[1, 2, 3], [4, 5], [7,8,9,10]],
[[1]]
]
print(padder(contents, None, np.int64))
self.assertListEqual(content,
padder(content, None, np.int64).tolist())

def test02(self):
"""


Loading…
Cancel
Save