function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nanirajesh gullapallinanirajesh gullapalli 

My code covers all the three cases but its not showing 100 % coverage in apex testing trailhead

@isTest
public class TestVerifyDate {
public @isTest static void checkcorrect()
{
    Date vd=VerifyDate.CheckDates(Date.valueOf('2016-01-01'), Date.valueOf('2016-01-21'));
    System.assertEquals(Date.valueOf('2016-01-21'), vd);
}
  public  @isTest static void checkWrong()
  {
       Date vd=VerifyDate.CheckDates(Date.valueOf('2016-02-01'), Date.valueOf('2016-01-21'));
    System.assertEquals(Date.valueOf('2016-02-29'), vd);
  }
     public  @isTest static void checkincorrect()
  {
       Date vd=VerifyDate.CheckDates(Date.valueOf('2016-02-01'), Date.valueOf('2016-03-21'));
    System.assertEquals(Date.valueOf('2016-02-29'), vd);
  }
}