fixed a broken test

This commit is contained in:
hneemann 2016-04-01 12:20:38 +02:00
parent 9a98599da7
commit 2a1f478ff0
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import de.neemann.digital.core.Observer;
import de.neemann.digital.core.element.AttributeKey;
import de.neemann.digital.core.element.ElementAttributes;
import de.neemann.digital.core.element.ElementTypeDescription;
import de.neemann.digital.core.element.Rotation;
import de.neemann.digital.core.io.In;
import de.neemann.digital.core.io.Out;
import de.neemann.digital.core.memory.DataField;
@ -45,6 +46,8 @@ public class Circuit {
xStream.alias("visualElement", VisualElement.class);
xStream.alias("wire", Wire.class);
xStream.alias("circuit", Circuit.class);
xStream.alias("rotation", Rotation.class);
xStream.aliasAttribute(Rotation.class, "rotation", "rotation");
xStream.alias("vector", Vector.class);
xStream.aliasAttribute(Vector.class, "x", "x");
xStream.aliasAttribute(Vector.class, "y", "y");

View File

@ -9,7 +9,7 @@ public class GraphicSVGIndexTest extends TestCase {
public void testFormatText() throws Exception {
GraphicSVGIndex gs = new GraphicSVGIndex(System.out, new Vector(0, 0), new Vector(30, 30), null, 30);
assertEquals("Z<tspan style=\"font-size:80%;baseline-shift:sub\">0</tspan>", gs.formatText("Z0", 0));
assertEquals("Z<tspan style=\"font-size:80%;baseline-shift:sub\">0</tspan>", gs.formatText("Z_0", 0));
assertEquals("&lt;a&gt;", gs.formatText("<a>", 0));
}