~cedric/pyenigma

60602e9dc65a6475dc2d6acfcec0979b53bcbe8f — C├ędric Bonhomme 17 days ago 0ff2111
fixed tests and README.
2 files changed, 4 insertions(+), 4 deletions(-)

M README.md
M tests/test_pyenigma.py
M README.md => README.md +3 -3
@@ 75,7 75,7 @@ Type "help", "copyright", "credits" or "license" for more information.
    State: C
>>> secret = engine.encipher("Hello World")
>>> print(secret)
Qgqop Vwoxn
Qgqop Vyzxp
```

### As a program


@@ 90,9 90,9 @@ Then you can use the command line interface:

```bash
$ echo "Hello World" | enigma ABC A  I II III "AV BS CG DL FU HZ IN KM OW RX"
Qgqop Vwoxn
Qgqop Vyzxp

$ echo "Qgqop Vwoxn" | enigma ABC A  I II III "AV BS CG DL FU HZ IN KM OW RX"
$ echo "Qgqop Vyzxp" | enigma ABC A  I II III "AV BS CG DL FU HZ IN KM OW RX"
Hello World
```


M tests/test_pyenigma.py => tests/test_pyenigma.py +1 -1
@@ 55,7 55,7 @@ class TestpyEnigma(unittest.TestCase):
                        key=self.key, plugs=self.plugs)
        secret = engr.encipher(message)

        self.assertEqual(secret, 'Qgqop Vwoxn')
        self.assertEqual(secret, 'Qgqop Vyzxp')


if __name__ == '__main__':