From fbc02cbc54c62bfef14ed9df04b2e6b18573b534 Mon Sep 17 00:00:00 2001 From: yuyi Date: Tue, 9 Mar 2021 10:53:02 +0800 Subject: [PATCH] csv: fix reader_test.v (#9204) --- vlib/encoding/csv/reader_test.v | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vlib/encoding/csv/reader_test.v b/vlib/encoding/csv/reader_test.v index a30183e42c..3644bfe4e5 100644 --- a/vlib/encoding/csv/reader_test.v +++ b/vlib/encoding/csv/reader_test.v @@ -125,6 +125,7 @@ fn test_last_field_empty() { assert row[1] == 'second' } } + assert row_count == 3 } fn test_empty_line() { @@ -149,12 +150,13 @@ fn test_empty_line() { assert row[1] == 'second' } } + assert row_count == 3 } fn test_field_multiple_line() { data := '"name","multiple - line","value"\n"one","first","1"' + line","value"\n"one","first","1"\n' mut csv_reader := csv.new_reader(data) mut row_count := 0 for { @@ -172,6 +174,7 @@ fn test_field_multiple_line() { assert row[2] == '1' } } + assert row_count == 2 } fn test_field_quotes_for_parts() { @@ -201,4 +204,5 @@ fn test_field_quotes_for_parts() { assert row[2] == 'c4' } } + assert row_count == 4 }