cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Bug: Generator doesn't stop when generating unit tests for specific code

Open leoninhub opened this issue 2 years ago • 1 comments

Generate unit tests for this code: private Date getMinDate(Date date1, Date date2){ if(Objects.isNull(date1) && Objects.isNull(date2)){ return null; } if(Objects.isNull(date1) && Objects.nonNull(date2)){ return date2; } if(Objects.nonNull(date1) && Objects.isNull(date2)){ return date1; } return date1.before(date2)?date1:date2; }

the generator keeps running and causes the editor to eventually freeze

leoninhub avatar Mar 29 '23 07:03 leoninhub

Can you provide your running environment (such as the operating system, Cursor version, the file suffix where this code is located,...)? To ensure that we can reproduce the problem. :)

sunray-ley avatar Mar 30 '23 08:03 sunray-ley