Example #1
0
 def test_varlen(self):
     maxval = 0x0FFFFFFF
     for inval in range(0, maxval, maxval // 1000):
         datum = midi.write_varlen(inval)
         outval = midi.read_varlen(iter(datum))
         self.assertEqual(inval, outval,
                          '0x%x -> %r -> 0x%x' % (inval, datum, outval))
Example #2
0
 def test_varlen(self): 
     maxval = 0x0FFFFFFF
     for inval in xrange(0, maxval, maxval / 1000):
         datum = midi.write_varlen(inval)
         outval = midi.read_varlen(iter(datum))
         self.assertEqual(inval, outval)
Example #3
0
 def test_varlen(self):
     maxval = 0x0FFFFFFF
     for inval in xrange(0, maxval, maxval / 1000):
         datum = midi.write_varlen(inval)
         outval = midi.read_varlen(iter(datum))
         self.assertEqual(inval, outval)