@@ -0,0 +1,1498 @@
+package org.commcare.utils;%0A%0Aimport org.commcare.CommCareApplication;%0Aimport org.commcare.android.CommCareTestRunner;%0Aimport org.commcare.dalvik.BuildConfig;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.robolectric.annotation.Config;%0A%0Aimport java.util.Calendar;%0Aimport java.util.Date;%0Aimport java.util.TimeZone;%0A%0A/**%0A * @author Phillip Mates (pmates@dimagi.com).%0A */%0A@Config(application = CommCareApplication.class,%0A        constants = BuildConfig.class)%0A@RunWith(CommCareTestRunner.class)%0Apublic class NepaliDateUtilitiesTests %7B%0A    @Test%0A    public void testDateCasting() %7B%0A        Calendar nepalCal = Calendar.getInstance(TimeZone.getTimeZone(%22GMT+05:45%22));%0A        nepalCal.set(2007, 10, 7, 18, 46);%0A        Calendar nepalCalRound = Calendar.getInstance(TimeZone.getTimeZone(%22GMT+05:45%22));%0A        nepalCalRound.set(2007, 10, 7, 0, 0);%0A        Date foo = nepalCal.getTime();%0A        Date bar = nepalCalRound.getTime();%0A        System.out.print(foo);%0A        System.out.print(bar);%0A%0A        UniversalDate nepalRoundedUniversalDate = NepaliDateUtilities.fromMillis(nepalCalRound.getTimeInMillis());%0A        UniversalDate universalDate = NepaliDateUtilities.fromMillis(nepalCal.getTimeInMillis());%0A%0A        Assert.assertEquals(nepalRoundedUniversalDate.day, universalDate.day);%0A        Assert.assertEquals(nepalRoundedUniversalDate.month, universalDate.month);%0A        Assert.assertEquals(nepalRoundedUniversalDate.year, universalDate.year);%0A    %7D%0A%7D%0A

Add failing test for nepali calendar calculations