@@ -191,7 +191,7 @@ pub fn dicts_with_missing_values_test() {
191
191
]
192
192
gsv . from_dicts ( data , "," , gsv . Unix )
193
193
|> should . equal (
194
- "colour,name,score,youtube\n Pink,Lucy,100,\n ,Isaac,99,@IsaacHarrisHolt" ,
194
+ "colour,name,score,youtube\n Pink,Lucy,100,\n ,Isaac,99,@IsaacHarrisHolt\n " ,
195
195
)
196
196
}
197
197
@@ -257,7 +257,7 @@ Austin, 25, FALSE"
257
257
|> string . replace ( each : "\" " , with : "'" )
258
258
|> should . equal (
259
259
"Ben, 25,' TRUE\n \r '' '\r
260
- Austin, 25, FALSE" ,
260
+ Austin, 25, FALSE\r \n " ,
261
261
)
262
262
}
263
263
@@ -271,7 +271,7 @@ Austin,27,"
271
271
|> should . equal (
272
272
"age,name
273
273
27,Ben
274
- 27,Austin" ,
274
+ 27,Austin\n " ,
275
275
)
276
276
}
277
277
@@ -284,7 +284,10 @@ fn test_lists_roundtrip(
284
284
) -> Nil {
285
285
let assert Ok ( parsed ) = gsv . to_lists ( input )
286
286
let encoded = gsv . from_lists ( parsed , separator , line_ending )
287
- encoded |> should . equal ( input )
287
+ case input |> string . ends_with ( "\n " ) {
288
+ True -> encoded |> should . equal ( input )
289
+ False -> encoded |> should . equal ( input <> "\n " )
290
+ }
288
291
}
289
292
290
293
fn pretty_print_error ( input : String ) -> String {
0 commit comments