mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
a2bits_list now return a list of 32 bits characters
This commit is contained in:
parent
6ad140bdfb
commit
4fc8eac172
2 changed files with 13 additions and 13 deletions
2
setup.py
2
setup.py
|
@ -36,7 +36,7 @@ with open('CHANGELOG.rst', 'r') as f:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='Stegano',
|
name='Stegano',
|
||||||
version='0.6.9',
|
version='0.6.10',
|
||||||
author='Cédric Bonhomme',
|
author='Cédric Bonhomme',
|
||||||
author_email='cedric@cedricbonhomme.org',
|
author_email='cedric@cedricbonhomme.org',
|
||||||
packages=packages,
|
packages=packages,
|
||||||
|
|
|
@ -39,18 +39,18 @@ class TestTools(unittest.TestCase):
|
||||||
|
|
||||||
def test_a2bits_list(self):
|
def test_a2bits_list(self):
|
||||||
list_of_bits = tools.a2bits_list("Hello World!")
|
list_of_bits = tools.a2bits_list("Hello World!")
|
||||||
self.assertEqual(list_of_bits, ['01001000',
|
self.assertEqual(list_of_bits, ['00000000000000000000000001001000',
|
||||||
'01100101',
|
'00000000000000000000000001100101',
|
||||||
'01101100',
|
'00000000000000000000000001101100',
|
||||||
'01101100',
|
'00000000000000000000000001101100',
|
||||||
'01101111',
|
'00000000000000000000000001101111',
|
||||||
'00100000',
|
'00000000000000000000000000100000',
|
||||||
'01010111',
|
'00000000000000000000000001010111',
|
||||||
'01101111',
|
'00000000000000000000000001101111',
|
||||||
'01110010',
|
'00000000000000000000000001110010',
|
||||||
'01101100',
|
'00000000000000000000000001101100',
|
||||||
'01100100',
|
'00000000000000000000000001100100',
|
||||||
'00100001'])
|
'00000000000000000000000000100001'])
|
||||||
|
|
||||||
def test_n_at_a_time(self):
|
def test_n_at_a_time(self):
|
||||||
result = tools.n_at_a_time([1, 2, 3, 4, 5], 2, 'X')
|
result = tools.n_at_a_time([1, 2, 3, 4, 5], 2, 'X')
|
||||||
|
|
Loading…
Add table
Reference in a new issue