From 1a1e02417865e1cf7c7d4eb9e6d09392d7412ea6 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Thu, 4 Dec 2014 00:35:21 -0500 Subject: [PATCH] Fix Java unit test expected values from C implementation's output. --- .../com/lyndir/masterpassword/MasterKeyTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MasterPassword/Java/masterpassword-algorithm/src/test/java/com/lyndir/masterpassword/MasterKeyTest.java b/MasterPassword/Java/masterpassword-algorithm/src/test/java/com/lyndir/masterpassword/MasterKeyTest.java index 7358e34b..f83398a7 100644 --- a/MasterPassword/Java/masterpassword-algorithm/src/test/java/com/lyndir/masterpassword/MasterKeyTest.java +++ b/MasterPassword/Java/masterpassword-algorithm/src/test/java/com/lyndir/masterpassword/MasterKeyTest.java @@ -27,25 +27,25 @@ public class MasterKeyTest { "LiheCuwhSerz6)" ); assertEquals( masterKey.encode( "\u26C4", MPElementType.GeneratedMedium, 1, MPElementVariant.Password, null ), // - "Xep8'Cav" ); + "LihPih8+" ); assertEquals( masterKey.encode( "\u26C4", MPElementType.GeneratedBasic, 1, MPElementVariant.Password, null ), // "bpW62jmW" ); assertEquals( masterKey.encode( "\u26C4", MPElementType.GeneratedShort, 1, MPElementVariant.Password, null ), // - "Puw2" ); + "Lih6" ); assertEquals( masterKey.encode( "\u26C4", MPElementType.GeneratedPIN, 1, MPElementVariant.Password, null ), // - "3258" ); + "9216" ); assertEquals( masterKey.encode( "\u26C4", MPElementType.GeneratedName, 1, MPElementVariant.Password, null ), // - "cujtebona" ); + "lihpihohi" ); assertEquals( masterKey.encode( "\u26C4", MPElementType.GeneratedPhrase, 1, MPElementVariant.Password, null ), // - "ri durzu jid kalebho" ); + "li pihwe puz bemozno" ); - assertEquals( masterKey.encode( "\u26C4", MPElementType.GeneratedMaximum, (int) (1L << 32 - 1), MPElementVariant.Password, null ), - "y4=s&D6)ao(xcBS)AgBT" ); + assertEquals( masterKey.encode( "\u26C4", MPElementType.GeneratedMaximum, (int) 4294967295L, MPElementVariant.Password, null ), + "r*)Ekr(FiduISCj*pg5-" ); } @Test