albertogoffi / toradocu

Toradocu - automated generation of test oracles from Javadoc documentation
Other
42 stars 21 forks source link

Conditions involving enum types do not produce a translation #194

Open ariannab opened 6 years ago

ariannab commented 6 years ago

Comments like the following ones are not translated by Toradocu:

Comment: a code representing the point status: either Location#INSIDE, Location#OUTSIDE or Location#BOUNDARY. Expected condition: result.equals(Location.INSIDE)||result.equals(Location.OUTSIDE)||result.equals(Location.BOUNDARY) Actual condition:

Comment: one of Side#PLUS Side.PLUS, Side#MINUS Side.MINUS, Side#BOTH Side.BOTH or Side#HYPER Side.HYPER (the latter result can occur only if the tree contains only one cut hyperplane). Expected condition: result.equals(Side.PLUS)||result.equals(Side.MINUS)||result.equals(Side.BOTH)||result.equals(Side.HYPER) Actual condition:

This can be solved by improving the source parsing.