cache: add script attrs to assembler and disassembler

This commit is contained in:
Adam
2017-05-07 15:34:27 -04:00
parent e210cf6f1e
commit b96619e2d8
6 changed files with 161 additions and 12 deletions

View File

@@ -30,21 +30,13 @@ import net.runelite.cache.script.disassembler.Disassembler;
import org.apache.commons.compress.utils.IOUtils;
import org.junit.Assert;
import org.junit.Test;
import org.junit.Before;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.impl.SimpleLogger;
public class AssemblerTest
{
private static final Logger logger = LoggerFactory.getLogger(AssemblerTest.class);
@Before
public void before()
{
System.setProperty(SimpleLogger.DEFAULT_LOG_LEVEL_KEY, "DEBUG");
}
@Test
public void testAssemble() throws Exception
{
@@ -63,9 +55,9 @@ public class AssemblerTest
String original = new String(IOUtils.toByteArray(in));
logger.debug(original);
logger.debug("-----------------------");
logger.debug(out);
logger.info(original);
logger.info("-----------------------");
logger.info(out);
Assert.assertEquals(original, out);
}

View File

@@ -1,3 +1,5 @@
.attr 4 8 15
.attr 16 23 42
033
get_boostedskilllevels
int_to_string