Skip to content

Commit 0baa432

Browse files
committed
Adjusted test loops.
1 parent 0aacc24 commit 0baa432

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/test/java/com/stringcompressor/FiveBitAsciiCompressorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void invalidCharCompressTest() {
7474
public void compressDecompressTest() {
7575
AsciiCompressor compressor = new FiveBitAsciiCompressor();
7676
for (int length = 0; length <= 500; length++)
77-
for (int i = 0; i <= 5000; i++) {
77+
for (int i = 0; i <= 50000; i++) {
7878
String str = createRandomString(length, DEFAULT_5BIT_CHARSET);
7979
byte[] compressed = compressor.compress(str.getBytes(US_ASCII));
8080
byte[] decompressed = compressor.decompress(compressed);

src/test/java/com/stringcompressor/FourBitAsciiCompressorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public void compressDecompressEdgeCasesTest() {
7474

7575
@Test
7676
public void compressDecompressTest() {
77-
for (int length = 0; length < 1000; length++)
78-
for (int i = 0; i < 10000; i++)
77+
for (int length = 0; length < 500; length++)
78+
for (int i = 0; i < 50000; i++)
7979
doCompressDecompressTest(createRandomString(length, DEFAULT_4BIT_CHARSET));
8080
}
8181

src/test/java/com/stringcompressor/SixBitAsciiCompressorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void invalidCharCompressTest() {
7474
public void compressDecompressTest() {
7575
AsciiCompressor compressor = new SixBitAsciiCompressor();
7676
for (int length = 0; length <= 500; length++)
77-
for (int i = 0; i <= 5000; i++) {
77+
for (int i = 0; i <= 50000; i++) {
7878
String str = createRandomString(length, DEFAULT_6BIT_CHARSET);
7979
byte[] compressed = compressor.compress(str.getBytes(US_ASCII));
8080
byte[] decompressed = compressor.decompress(compressed);

0 commit comments

Comments
 (0)