Skip to content

Commit

Permalink
add test for line with different number of fields
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomocavalieri committed Oct 27, 2024
1 parent 28c4fa2 commit dd9cfbb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/gsv_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ pub fn escaped_field_with_escaped_double_quotes_test() {
|> should.equal([["escaped double quote -> \""]])
}

pub fn rows_with_different_number_of_fields_test() {
"three,fields,woo
only,two"
|> gsv.to_lists
|> should.be_ok
|> should.equal([["three", "fields", "woo"], ["only", "two"]])
}

// --- DICT PARSING ------------------------------------------------------------

pub fn headers_test() {
Expand Down

0 comments on commit dd9cfbb

Please sign in to comment.