(t *testing.T)
| 23 | } |
| 24 | |
| 25 | func TestSepDetect_Tab(t *testing.T) { |
| 26 | sd := sepDetecor{} |
| 27 | lines := []string{ |
| 28 | "Name\tAge\tCity", |
| 29 | "Alice\t30\tNYC", |
| 30 | "Bob\t25\tLA", |
| 31 | } |
| 32 | |
| 33 | sep := sd.sepDetect(lines) |
| 34 | if sep != '\t' { |
| 35 | t.Errorf("Expected tab separator, got %c", sep) |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func TestSepDetect_Pipe(t *testing.T) { |
| 40 | sd := sepDetecor{} |