Skip to content
Snippets Groups Projects
Unverified Commit 2421241a authored by Rodrigo Queiro's avatar Rodrigo Queiro Committed by GitHub
Browse files

Merge pull request #65 from drigz/fix-int-test

Add @Test to testInt8List and fix it
parents 2ca9a5ab 9d4fe89d
Branches hydro
Tags 0.1.24
No related merge requests found
...@@ -81,7 +81,7 @@ public enum PrimitiveFieldType implements FieldType { ...@@ -81,7 +81,7 @@ public enum PrimitiveFieldType implements FieldType {
@Override @Override
public Field newVariableList(String name, int size) { public Field newVariableList(String name, int size) {
return ChannelBufferField.newVariable(this, name, size); return ByteArrayField.newVariable(this, name, size);
} }
@Override @Override
......
...@@ -114,6 +114,7 @@ public class MessageTest { ...@@ -114,6 +114,7 @@ public class MessageTest {
assertEquals("Hello, ROS! # comment", rawMessage.getString("data")); assertEquals("Hello, ROS! # comment", rawMessage.getString("data"));
} }
@Test
public void testInt8List() { public void testInt8List() {
topicDefinitionResourceProvider.add("foo/foo", "int8[] data"); topicDefinitionResourceProvider.add("foo/foo", "int8[] data");
RawMessage rawMessage = messageFactory.newFromType("foo/foo"); RawMessage rawMessage = messageFactory.newFromType("foo/foo");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment