Skip to content

Instantly share code, notes, and snippets.

@juliankrispel
Created April 23, 2026 15:32
Show Gist options
  • Select an option

  • Save juliankrispel/3c81ee3d1bd42e781e9ff07ac5ba1d1f to your computer and use it in GitHub Desktop.

Select an option

Save juliankrispel/3c81ee3d1bd42e781e9ff07ac5ba1d1f to your computer and use it in GitHub Desktop.

Table Merge/Split Test Cases

Copy each table below and paste it into the Guru editor to verify merged cell handling.


1. Simple colspan (header spanning 2 columns)

Full NameAge
FirstLast30
JaneDoe25

Expected: First row has 2 cells (one spanning 2 cols), rows 2-3 have 3 cells each.


2. Simple rowspan (label spanning 2 rows)

ContactEmailjane@example.com
Phone555-0123
AddressStreet123 Main St

Expected: "Contact" cell spans rows 1-2. Row 3 has 3 normal cells.


3. Combined colspan + rowspan (2×2 block)

Q1 SummaryMar
$300
JanFebTotal

Expected: Top-left 2×2 block is a single merged cell. Row 3 has 3 normal cells.


4. Header row spanning all columns

2024 Revenue by Quarter
Q1Q2Q3Q4
$100k$120k$95k$140k

Expected: First row is a single cell spanning all 4 columns.


5. Multiple merged regions in one table

Team ATeam B
AliceBobCarolDave
All teams meet on Friday

Expected: Row 1 has 2 cells (each spanning 2 cols). Row 2 has 4 cells. Row 3 has 1 cell spanning all 4 cols.


6. Rowspan with varying content

Department: EngineeringFrontend5 engineers
Backend8 engineers
DevOps3 engineers

Expected: "Department: Engineering" spans all 3 rows in column 1.


7. Complex layout (mixed spans)

Project Status Dashboard
AlphaStatusIn Progress
ETAMarch 2025
BetaStatusPlanning
ETAJune 2025

Expected: Header spans 3 cols. "Alpha" and "Beta" each span 2 rows.


8. Google Docs style (inline styles, should be ignored)

Merged header from Google Docs
Left cell Right cell

Expected: Same as case 1 — inline styles ignored, colspan preserved.


9. Plain table (no merges — regression check)

A1B1C1
A2B2C2
A3B3C3

Expected: 3×3 table with no merged cells. No colspan/rowspan attributes on any cell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment