Skip to content

Commit

Permalink
Add emoji import test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbastian committed Aug 27, 2024
1 parent 6a1bfa0 commit 75fff42
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,20 @@ public void testLabels() {

Utils.assertSameIds(nodes, "A", "B", "C");
}

@Test
public void testEmojis() {
ImporterGML importer = new ImporterGML();
importer.setReader(Utils.getReader("emojis.gml"));

Container container = new ImportContainerImpl();
importer.execute(container.getLoader());

Assert.assertTrue(container.verify());

NodeDraft[] nodes = Utils.toNodesArray(container);
NodeDraft node1 = nodes[0];

Assert.assertEquals("✅", node1.getLabel());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
graph
[
node
[
id A
label "✅"
]
]

0 comments on commit 75fff42

Please sign in to comment.