diff options
author | Josh Blum | 2012-11-24 14:26:13 -0800 |
---|---|---|
committer | Josh Blum | 2012-11-24 14:26:13 -0800 |
commit | 08d5b3833e7ad932a21e6b37ee7e97480dca9818 (patch) | |
tree | 888a691ba323492be870c767aac36a6fe9572ffb /tests | |
parent | 4406afc013c7a2d8e3deebc76618564de01d8849 (diff) | |
download | sandhi-08d5b3833e7ad932a21e6b37ee7e97480dca9818.tar.gz sandhi-08d5b3833e7ad932a21e6b37ee7e97480dca9818.tar.bz2 sandhi-08d5b3833e7ad932a21e6b37ee7e97480dca9818.zip |
change the type to unsigned to make swig happy
this is a little evil, changing a public header for swig
but it works just as well and we can save this for another day
Diffstat (limited to 'tests')
-rw-r--r-- | tests/io_sig_test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/io_sig_test.py b/tests/io_sig_test.py index 876e53f..3cd90bf 100644 --- a/tests/io_sig_test.py +++ b/tests/io_sig_test.py @@ -9,5 +9,13 @@ class IOSigTest(unittest.TestCase): io = gras.IOSignature() self.assertEqual(len(io), 0) + def test_io_sig_extend(self): + io = gras.IOSignature([5, 6, 7]) + self.assertEqual(len(io), 3) + self.assertEqual(io[0], 5) + self.assertEqual(io[1], 6) + self.assertEqual(io[2], 7) + self.assertEqual(io[3], 7) #auto extend + if __name__ == '__main__': unittest.main() |