Mercurial > public > cpp-enigma
diff enigma/tests/test_plugboard.t.h @ 13:b9d124a15926
To improve cache performance, the enigma machine rotors are now stored
together with the reflector in a vector.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 02 Jul 2012 19:14:36 -0500 |
parents | 232dbe7a3fe0 |
children |
line wrap: on
line diff
--- a/enigma/tests/test_plugboard.t.h Sun Jul 01 12:53:10 2012 -0500 +++ b/enigma/tests/test_plugboard.t.h Mon Jul 02 19:14:36 2012 -0500 @@ -143,7 +143,7 @@ void test_get_wiring() { plugboard pb; - alpha_int_array w(pb.get_wiring()); + auto w(pb.get_wiring()); for (int i = 0; i < 26; ++i) { @@ -161,7 +161,7 @@ std::swap(w[8], w[20]); std::swap(w[24], w[25]); - alpha_int_array w1(pb.get_wiring()); + auto w1(pb.get_wiring()); for (int i = 0; i < 26; ++i) { TS_ASSERT_EQUALS(w[i], w1[i]); @@ -182,7 +182,7 @@ plugboard pb; pb.set_wiring(w); - alpha_int_array w2 = pb.get_wiring(); + auto w2 = pb.get_wiring(); TS_ASSERT_EQUALS(w, w2); }