mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-11-18 23:07:53 +00:00
Removed 3rd party dependency for this test
This commit is contained in:
parent
5b9d95c2c2
commit
a8e76cd4f6
@ -5,13 +5,13 @@
|
|||||||
*/
|
*/
|
||||||
package jace.ide;
|
package jace.ide;
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
|
||||||
import jace.applesoft.ApplesoftProgram;
|
import jace.applesoft.ApplesoftProgram;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
|
import java.util.Arrays;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
@ -55,14 +55,14 @@ public class ApplesoftTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void deserializeBinaryTest() {
|
public void deserializeBinaryTest() {
|
||||||
ApplesoftProgram program = ApplesoftProgram.fromBinary(Lists.newArrayList(lemonadeStandBinary), 0x0801);
|
ApplesoftProgram program = ApplesoftProgram.fromBinary(Arrays.asList(lemonadeStandBinary), 0x0801);
|
||||||
assertNotNull(program);
|
assertNotNull(program);
|
||||||
assertNotSame("", program.toString());
|
assertNotSame("", program.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void roundTripStringComparisonTest() {
|
public void roundTripStringComparisonTest() {
|
||||||
ApplesoftProgram program = ApplesoftProgram.fromBinary(Lists.newArrayList(lemonadeStandBinary), 0x0801);
|
ApplesoftProgram program = ApplesoftProgram.fromBinary(Arrays.asList(lemonadeStandBinary), 0x0801);
|
||||||
String serialized = program.toString();
|
String serialized = program.toString();
|
||||||
ApplesoftProgram deserialized = ApplesoftProgram.fromString(serialized);
|
ApplesoftProgram deserialized = ApplesoftProgram.fromString(serialized);
|
||||||
String[] serializedLines = serialized.split("\\n");
|
String[] serializedLines = serialized.split("\\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user