Commit 434c3c63 authored by Eric Bruneton's avatar Eric Bruneton

Add failing test showing the regression.

parent d0afe0cd
......@@ -407,6 +407,9 @@ public class GeneratorAdapterTest {
assertEquals("I2C", new Generator().cast(Type.INT_TYPE, Type.CHAR_TYPE));
assertEquals("I2S", new Generator().cast(Type.INT_TYPE, Type.SHORT_TYPE));
assertEquals("", new Generator().cast(Type.BYTE_TYPE, Type.INT_TYPE));
assertEquals("", new Generator().cast(Type.SHORT_TYPE, Type.INT_TYPE));
assertThrows(
IllegalArgumentException.class, () -> new Generator().cast(Type.INT_TYPE, Type.VOID_TYPE));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment