[
  {
    "id": "TV-ZIWEI-001",
    "description": "Standard chart initiation: Giap Ty year, Lunar Month 1, Lunar Day 1, Ty hour. Bureau: Hoa Luc Cuc (6). Tu Vi placement via integer complement.",
    "input": {
      "lunarYear": "Giáp Tý",
      "lunarMonth": 1,
      "lunarDay": 1,
      "hourBranch": "Tý",
      "gender": "male"
    },
    "expected": {
      "lifePalaceBranch": "Dần",
      "lifePalaceStem": "Bính",
      "bureau": "HOA_LUC_CUC",
      "cucSo": 6,
      "tuViPalace": "Dậu",
      "thienPhuPalace": "Mùi",
      "bodyPalaceBranch": "Dần",
      "bodyPalaceType": "Thân Cư Mệnh"
    }
  },
  {
    "id": "TV-ZIWEI-002",
    "description": "Zero complement boundary: Day 18 exactly divisible by Kim Tu Cuc (4) with remainder zero (X = 2 even advance).",
    "input": {
      "lunarYear": "Bính Dần",
      "lunarMonth": 5,
      "lunarDay": 18,
      "hourBranch": "Thìn",
      "gender": "female"
    },
    "expected": {
      "bureau": "KIM_TU_CUC",
      "cucSo": 4,
      "tuViPalace": "Tý",
      "thienPhuPalace": "Thìn"
    }
  },
  {
    "id": "TV-ZIWEI-003",
    "description": "Dau Quan transit progression: determination of monthly fortune palace starting from Annual Thai Tue counting backward birth month and forward birth hour.",
    "input": {
      "annualTaiSuiBranch": "Thìn",
      "birthMonth": 8,
      "birthHourIndex": 4
    },
    "expected": {
      "dauQuanPalaceBranch": "Dậu",
      "firstLunarMonthPalace": "Dậu"
    }
  },
  {
    "id": "TV-ZIWEI-004",
    "description": "Multi-School Si Hua divergence on Heavenly Stems Geng (Canh) and Ren (Nhâm).",
    "input": {
      "stems": ["Canh", "Nhâm"]
    },
    "expected": {
      "Canh": {
        "BAC_TONG": { "loc": "Thái Dương", "quyen": "Vũ Khúc", "khoa": "Thái Âm", "ky": "Thiên Đồng" },
        "NAM_TONG": { "loc": "Thái Dương", "quyen": "Vũ Khúc", "khoa": "Thái Âm", "ky": "Thiên Đồng" },
        "THIEN_LUONG": { "loc": "Thái Dương", "quyen": "Vũ Khúc", "khoa": "Thiên Phủ", "ky": "Thiên Đồng" },
        "DAI_LOAN": { "loc": "Thái Dương", "quyen": "Vũ Khúc", "khoa": "Thái Âm", "ky": "Thiên Đồng" }
      },
      "Nhâm": {
        "BAC_TONG": { "loc": "Thiên Lương", "quyen": "Tử Vi", "khoa": "Thiên Phủ", "ky": "Vũ Khúc" },
        "NAM_TONG": { "loc": "Thiên Lương", "quyen": "Tử Vi", "khoa": "Tả Phụ", "ky": "Vũ Khúc" },
        "THIEN_LUONG": { "loc": "Thiên Lương", "quyen": "Tử Vi", "khoa": "Tả Phụ", "ky": "Vũ Khúc" },
        "DAI_LOAN": { "loc": "Thiên Lương", "quyen": "Tử Vi", "khoa": "Thiên Phủ", "ky": "Vũ Khúc" }
      }
    }
  },
  {
    "id": "TV-ZIWEI-005",
    "description": "Taiwan Flying Si Hua opposite palace clash for Year 2026 (Bính Ngọ) where Hua Ji (Liêm Trinh) resides in Phu Thê.",
    "input": {
      "year": 2026,
      "yearCan": "Bính",
      "school": "DAI_LOAN",
      "huaJiStar": "Liêm Trinh",
      "huaJiPalaceId": "PHU_THE",
      "huaJiPalaceIndex": 1
    },
    "expected": {
      "oppositePalaceId": "QUAN_LOC",
      "oppositePalaceIndex": 7,
      "isDirectClash": true,
      "clashType": "THA_CUNG_XUNG_NGA_CUNG"
    }
  },
  {
    "id": "TV-ZIWEI-006",
    "description": "Server-to-Server True Solar Time (TST) correction for Hanoi (105.85 E) on 1992-08-15 06:00:00 UTC+7.",
    "input": {
      "civilDate": "1992-08-15T06:00:00+07:00",
      "longitude": 105.85,
      "latitude": 21.0285,
      "standardTimezone": 7
    },
    "expected": {
      "equationOfTimeMinutes": -4.61,
      "longitudeOffsetMinutes": 3.40,
      "netCorrectionMinutes": -1.21,
      "trueSolarTime": "1992-08-15T05:58:47+07:00",
      "branch": "Mão"
    }
  }
]
