Skip to content

Commit c47f230

Browse files
authored
Update clap test (#6028)
1 parent 76fbdbc commit c47f230

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

parquet/src/bin/parquet-fromcsv.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,10 @@ mod tests {
557557
fn test_parse_arg_compression_format_fail() {
558558
match parse_args(vec!["--parquet-compression", "zip"]) {
559559
Ok(_) => panic!("unexpected success"),
560-
Err(e) => assert_eq!(
561-
format!("{e}"),
562-
"error: invalid value 'zip' for '--parquet-compression <PARQUET_COMPRESSION>': Unknown compression ZIP : possible values UNCOMPRESSED, SNAPPY, GZIP, LZO, BROTLI, LZ4, ZSTD \n\nFor more information try --help\n"),
560+
Err(e) => {
561+
let err = e.to_string();
562+
assert!(err.contains("error: invalid value 'zip' for '--parquet-compression <PARQUET_COMPRESSION>': Unknown compression ZIP : possible values UNCOMPRESSED, SNAPPY, GZIP, LZO, BROTLI, LZ4, ZSTD \n\nFor more information try --help"), "{err}")
563+
}
563564
}
564565
}
565566

0 commit comments

Comments
 (0)