Merge pull request #118 from QuickMythril/temp-test

Added missing parameter to test
This commit is contained in:
QuickMythril 2023-04-21 11:06:09 -04:00 committed by GitHub
commit a7bbad17d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ public class ArbitraryDataFileTests extends Common {
@Test @Test
public void testSplitAndJoin() throws DataException { public void testSplitAndJoin() throws DataException {
String dummyDataString = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; String dummyDataString = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
ArbitraryDataFile arbitraryDataFile = new ArbitraryDataFile(dummyDataString.getBytes(), null); ArbitraryDataFile arbitraryDataFile = new ArbitraryDataFile(dummyDataString.getBytes(), null, false);
assertTrue(arbitraryDataFile.exists()); assertTrue(arbitraryDataFile.exists());
assertEquals(62, arbitraryDataFile.size()); assertEquals(62, arbitraryDataFile.size());
assertEquals("3eyjYjturyVe61grRX42bprGr3Cvw6ehTy4iknVnosDj", arbitraryDataFile.digest58()); assertEquals("3eyjYjturyVe61grRX42bprGr3Cvw6ehTy4iknVnosDj", arbitraryDataFile.digest58());
@ -50,7 +50,7 @@ public class ArbitraryDataFileTests extends Common {
byte[] randomData = new byte[fileSize]; byte[] randomData = new byte[fileSize];
new Random().nextBytes(randomData); // No need for SecureRandom here new Random().nextBytes(randomData); // No need for SecureRandom here
ArbitraryDataFile arbitraryDataFile = new ArbitraryDataFile(randomData, null); ArbitraryDataFile arbitraryDataFile = new ArbitraryDataFile(randomData, null, false);
assertTrue(arbitraryDataFile.exists()); assertTrue(arbitraryDataFile.exists());
assertEquals(fileSize, arbitraryDataFile.size()); assertEquals(fileSize, arbitraryDataFile.size());
String originalFileDigest = arbitraryDataFile.digest58(); String originalFileDigest = arbitraryDataFile.digest58();