Skip to content

Commit 996aab1

Browse files
committed
Improve test output
Signed-off-by: Spencer Wilson <[email protected]>
1 parent be4863f commit 996aab1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/org/openquantumsafe/KeyEncapsulation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void printKeyEncapsulation() {
3535
"\n Length secret key (bytes): " + this.length_secret_key +
3636
"\n Length ciphertext (bytes): " + this.length_ciphertext +
3737
"\n Length shared secret (bytes): " + this.length_shared_secret +
38-
"\n Length keypair seed (bytes): "
38+
"\n Length keypair seed (bytes): "
3939
+ ((this.length_keypair_seed > 0) ? this.length_keypair_seed : "N/A")
4040
);
4141
}

src/test/java/org/openquantumsafe/KEMTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ public void testAllKEMs(String kem_name) {
6565
public void testKEMsWithDerand(String kem_name) {
6666
StringBuilder sb = new StringBuilder();
6767
sb.append(kem_name);
68-
sb.append(String.format("%1$" + (40 - kem_name.length()) + "s", ""));
68+
sb.append(" (derand)");
69+
sb.append(String.format("%1$" + (40 - kem_name.length() - 9) + "s", ""));
6970

7071
// Create client and server
7172
KeyEncapsulation client = new KeyEncapsulation(kem_name);

0 commit comments

Comments
 (0)