======================================== Separator Detection Tests ========================================
(t *testing.T)
| 9 | // ======================================== |
| 10 | |
| 11 | func TestSepDetect_Comma(t *testing.T) { |
| 12 | sd := sepDetecor{} |
| 13 | lines := []string{ |
| 14 | "Name,Age,City", |
| 15 | "Alice,30,NYC", |
| 16 | "Bob,25,LA", |
| 17 | } |
| 18 | |
| 19 | sep := sd.sepDetect(lines) |
| 20 | if sep != ',' { |
| 21 | t.Errorf("Expected comma separator, got %c", sep) |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | func TestSepDetect_Tab(t *testing.T) { |
| 26 | sd := sepDetecor{} |