use of suite.primitive.Bytes in project suite by stupidsing.
the class ImperativeCompilerTest method testLet.
@Test
public void testLet() {
Bytes bytes = imperativeCompiler.compile(0, "{null/*} = 1 shl 3;");
assertNotNull(bytes);
System.out.println(bytes);
}
use of suite.primitive.Bytes in project suite by stupidsing.
the class ImperativeCompilerTest method testArray.
@Test
public void testArray() {
Bytes bytes = imperativeCompiler.compile(0, "declare (int * 2) array = array (1, 2,); {array/:3} = array/:4;");
assertNotNull(bytes);
System.out.println(bytes);
}
use of suite.primitive.Bytes in project suite by stupidsing.
the class ImperativeCompilerTest method testBind.
@Test
public void testBind() {
Bytes bytes = imperativeCompiler.compile(0, "if-bind (1 := $a) then a else 0");
assertNotNull(bytes);
System.out.println(bytes);
}
use of suite.primitive.Bytes in project suite by stupidsing.
the class ImperativeCompilerTest method testDataStructureType.
@Test
public void testDataStructureType() {
String s = //
"" + //
"declare object = new (prev = 0, next = 1,);" + "object/next";
Bytes bytes = imperativeCompiler.compile(0, s);
assertNotNull(bytes);
System.out.println(bytes);
}
use of suite.primitive.Bytes in project suite by stupidsing.
the class ImperativeCompilerTest method testField.
@Test
public void testField() {
Bytes bytes = imperativeCompiler.compile(0, "signature x = struct ( | int i | int j); x/j = 3;");
assertNotNull(bytes);
System.out.println(bytes);
}
Aggregations