@Test public void list1_test() { for (LocalDate date: TEST_DATES) { int[] l1 = list1(date); assertArrayEquals(l1, test_list1.get(date)); } }
static int[] list1(LocalDate date) { int year = Integer.parseInt(Integer.toString(date.getYear()).substring(2, 4)); int month = date.getMonthValue(); int day_of_month = date.getDayOfMonth(); int day_of_week = date.getDayOfWeek().getValue() - 1; int[] list1 = new int[8]; System.arraycopy(TABLE1[day_of_week], 0, list1, 0, 5); list1[5] = day_of_month; if (((year + month) - day_of_month) < 0) { list1[6] = (((year + month) - day_of_month) + 36) % 36; } else { list1[6] = ((year + month) - day_of_month) % 36; } list1[7] = (((3 + ((year + month) % 12)) * day_of_month) % 37) % 36; return list1; }
Data { static int[] list1(LocalDate date) { int year = Integer.parseInt(Integer.toString(date.getYear()).substring(2, 4)); int month = date.getMonthValue(); int day_of_month = date.getDayOfMonth(); int day_of_week = date.getDayOfWeek().getValue() - 1; int[] list1 = new int[8]; System.arraycopy(TABLE1[day_of_week], 0, list1, 0, 5); list1[5] = day_of_month; if (((year + month) - day_of_month) < 0) { list1[6] = (((year + month) - day_of_month) + 36) % 36; } else { list1[6] = ((year + month) - day_of_month) % 36; } list1[7] = (((3 + ((year + month) % 12)) * day_of_month) % 37) % 36; return list1; } }
Data { static int[] list1(LocalDate date) { int year = Integer.parseInt(Integer.toString(date.getYear()).substring(2, 4)); int month = date.getMonthValue(); int day_of_month = date.getDayOfMonth(); int day_of_week = date.getDayOfWeek().getValue() - 1; int[] list1 = new int[8]; System.arraycopy(TABLE1[day_of_week], 0, list1, 0, 5); list1[5] = day_of_month; if (((year + month) - day_of_month) < 0) { list1[6] = (((year + month) - day_of_month) + 36) % 36; } else { list1[6] = ((year + month) - day_of_month) % 36; } list1[7] = (((3 + ((year + month) % 12)) * day_of_month) % 37) % 36; return list1; }  }
Data { static int[] list1(LocalDate date) { int year = Integer.parseInt(Integer.toString(date.getYear()).substring(2, 4)); int month = date.getMonthValue(); int day_of_month = date.getDayOfMonth(); int day_of_week = date.getDayOfWeek().getValue() - 1; int[] list1 = new int[8]; System.arraycopy(TABLE1[day_of_week], 0, list1, 0, 5); list1[5] = day_of_month; if (((year + month) - day_of_month) < 0) { list1[6] = (((year + month) - day_of_month) + 36) % 36; } else { list1[6] = ((year + month) - day_of_month) % 36; } list1[7] = (((3 + ((year + month) % 12)) * day_of_month) % 37) % 36; return list1; }   }
Data { static int[] list1(LocalDate date) { int year = Integer.parseInt(Integer.toString(date.getYear()).substring(2, 4)); int month = date.getMonthValue(); int day_of_month = date.getDayOfMonth(); int day_of_week = date.getDayOfWeek().getValue() - 1; int[] list1 = new int[8]; System.arraycopy(TABLE1[day_of_week], 0, list1, 0, 5); list1[5] = day_of_month; if (((year + month) - day_of_month) < 0) { list1[6] = (((year + month) - day_of_month) + 36) % 36; } else { list1[6] = ((year + month) - day_of_month) % 36; } list1[7] = (((3 + ((year + month) % 12)) * day_of_month) % 37) % 36; return list1; }    }