Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jamie Mansfield
asm
Commits
434c3c63
Commit
434c3c63
authored
Jun 30, 2018
by
Eric Bruneton
Browse files
Add failing test showing the regression.
parent
d0afe0cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
asm-commons/src/test/java/org/objectweb/asm/commons/GeneratorAdapterTest.java
View file @
434c3c63
...
...
@@ -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
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment