Skip to content

Commit

Permalink
updated test case solitairgraphy
Browse files Browse the repository at this point in the history
  • Loading branch information
texadactyl committed Aug 7, 2024
1 parent e7382cf commit f5dae24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This file is a version history of jacotest amendments. Entries appear in versio
| :------------: | :---: | :--- |
|<img width=90/>|<img width=60/>|<img width=600/>|
| 2024-08-07 | 3.4.5 | New test case: stringbuilder-misc. |
| | | Updated test case solitairgraphy. |
| 2024-08-06 | 3.4.4 | New test cases: stringbuilder-insert, stringbuilder-delete. |
| 2024-08-05 | 3.4.3 | New test cases: stringbuilder-dynamic, stringbuilder-append. |
| 2024-07-21 | 3.4.2 | Updated ERROR_CATEGORIES.txt. |
Expand Down
6 changes: 4 additions & 2 deletions tests/solitairgraphy/main.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ public static void main(String args[]) {
}
System.out.print("Outputtext: ");
System.out.println(outputtext);
if (outputtext.length() > plaintext.length())
plaintext += "X";
int outlen = outputtext.length();
int plainlen = plaintext.length();
if (outlen > plainlen )
plaintext = plaintext.concat("X");
if (! outputtext.equals(plaintext)) {
expObs("output plaintext", plaintext, outputtext);
errorCount++;
Expand Down

0 comments on commit f5dae24

Please sign in to comment.