(t *testing.T)
| 37 | } |
| 38 | |
| 39 | func TestSepDetect_Pipe(t *testing.T) { |
| 40 | sd := sepDetecor{} |
| 41 | lines := []string{ |
| 42 | "Name|Age|City", |
| 43 | "Alice|30|NYC", |
| 44 | "Bob|25|LA", |
| 45 | } |
| 46 | |
| 47 | sep := sd.sepDetect(lines) |
| 48 | if sep != '|' { |
| 49 | t.Errorf("Expected pipe separator, got %c", sep) |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func TestSepDetect_Semicolon(t *testing.T) { |
| 54 | sd := sepDetecor{} |