@@ -52,7 +52,7 @@ fn total_width() {
52
52
data_tree : & data_tree,
53
53
bytes_format : BytesFormat :: MetricUnits ,
54
54
direction : Direction :: BottomUp ,
55
- bar_alignment : BarAlignment :: Right ,
55
+ bar_alignment : BarAlignment :: Left ,
56
56
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
57
57
max_depth : 10 . try_into ( ) . unwrap ( ) ,
58
58
} ;
@@ -90,7 +90,7 @@ fn column_width() {
90
90
data_tree : & data_tree,
91
91
bytes_format : BytesFormat :: MetricUnits ,
92
92
direction : Direction :: BottomUp ,
93
- bar_alignment : BarAlignment :: Right ,
93
+ bar_alignment : BarAlignment :: Left ,
94
94
column_width_distribution : ColumnWidthDistribution :: components ( 10 , 90 ) ,
95
95
max_depth : 10 . try_into ( ) . unwrap ( ) ,
96
96
} ;
@@ -127,7 +127,7 @@ fn min_ratio_0() {
127
127
data_tree : & data_tree,
128
128
bytes_format : BytesFormat :: MetricUnits ,
129
129
direction : Direction :: BottomUp ,
130
- bar_alignment : BarAlignment :: Right ,
130
+ bar_alignment : BarAlignment :: Left ,
131
131
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
132
132
max_depth : 10 . try_into ( ) . unwrap ( ) ,
133
133
} ;
@@ -165,7 +165,7 @@ fn min_ratio() {
165
165
data_tree : & data_tree,
166
166
bytes_format : BytesFormat :: MetricUnits ,
167
167
direction : Direction :: BottomUp ,
168
- bar_alignment : BarAlignment :: Right ,
168
+ bar_alignment : BarAlignment :: Left ,
169
169
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
170
170
max_depth : 10 . try_into ( ) . unwrap ( ) ,
171
171
} ;
@@ -203,7 +203,7 @@ fn max_depth_2() {
203
203
data_tree : & data_tree,
204
204
bytes_format : BytesFormat :: MetricUnits ,
205
205
direction : Direction :: BottomUp ,
206
- bar_alignment : BarAlignment :: Right ,
206
+ bar_alignment : BarAlignment :: Left ,
207
207
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
208
208
max_depth : 2 . try_into ( ) . unwrap ( ) ,
209
209
} ;
@@ -241,7 +241,7 @@ fn max_depth_1() {
241
241
data_tree : & data_tree,
242
242
bytes_format : BytesFormat :: MetricUnits ,
243
243
direction : Direction :: BottomUp ,
244
- bar_alignment : BarAlignment :: Right ,
244
+ bar_alignment : BarAlignment :: Left ,
245
245
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
246
246
max_depth : 1 . try_into ( ) . unwrap ( ) ,
247
247
} ;
@@ -278,7 +278,7 @@ fn top_down() {
278
278
data_tree : & data_tree,
279
279
bytes_format : BytesFormat :: MetricUnits ,
280
280
direction : Direction :: TopDown ,
281
- bar_alignment : BarAlignment :: Right ,
281
+ bar_alignment : BarAlignment :: Left ,
282
282
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
283
283
max_depth : 10 . try_into ( ) . unwrap ( ) ,
284
284
} ;
@@ -290,12 +290,12 @@ fn top_down() {
290
290
}
291
291
292
292
#[ test]
293
- fn align_left ( ) {
293
+ fn align_right ( ) {
294
294
let workspace = SampleWorkspace :: default ( ) ;
295
295
let actual = Command :: new ( PDU )
296
296
. with_current_dir ( workspace. as_path ( ) )
297
297
. with_arg ( "--total-width=100" )
298
- . with_arg ( "--align-left " )
298
+ . with_arg ( "--align-right " )
299
299
. pipe ( stdio)
300
300
. output ( )
301
301
. expect ( "spawn command" )
@@ -315,7 +315,7 @@ fn align_left() {
315
315
data_tree : & data_tree,
316
316
bytes_format : BytesFormat :: MetricUnits ,
317
317
direction : Direction :: BottomUp ,
318
- bar_alignment : BarAlignment :: Left ,
318
+ bar_alignment : BarAlignment :: Right ,
319
319
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
320
320
max_depth : 10 . try_into ( ) . unwrap ( ) ,
321
321
} ;
@@ -352,7 +352,7 @@ fn quantity_apparent_size() {
352
352
data_tree : & data_tree,
353
353
bytes_format : BytesFormat :: MetricUnits ,
354
354
direction : Direction :: BottomUp ,
355
- bar_alignment : BarAlignment :: Right ,
355
+ bar_alignment : BarAlignment :: Left ,
356
356
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
357
357
max_depth : 10 . try_into ( ) . unwrap ( ) ,
358
358
} ;
@@ -390,7 +390,7 @@ fn quantity_block_size() {
390
390
data_tree : & data_tree,
391
391
bytes_format : BytesFormat :: MetricUnits ,
392
392
direction : Direction :: BottomUp ,
393
- bar_alignment : BarAlignment :: Right ,
393
+ bar_alignment : BarAlignment :: Left ,
394
394
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
395
395
max_depth : 10 . try_into ( ) . unwrap ( ) ,
396
396
} ;
@@ -428,7 +428,7 @@ fn quantity_block_count() {
428
428
data_tree : & data_tree,
429
429
bytes_format : ( ) ,
430
430
direction : Direction :: BottomUp ,
431
- bar_alignment : BarAlignment :: Right ,
431
+ bar_alignment : BarAlignment :: Left ,
432
432
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
433
433
max_depth : 10 . try_into ( ) . unwrap ( ) ,
434
434
} ;
@@ -467,7 +467,7 @@ fn bytes_format_plain() {
467
467
data_tree : & data_tree,
468
468
bytes_format : BytesFormat :: PlainNumber ,
469
469
direction : Direction :: BottomUp ,
470
- bar_alignment : BarAlignment :: Right ,
470
+ bar_alignment : BarAlignment :: Left ,
471
471
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
472
472
max_depth : 10 . try_into ( ) . unwrap ( ) ,
473
473
} ;
@@ -506,7 +506,7 @@ fn bytes_format_metric() {
506
506
data_tree : & data_tree,
507
507
bytes_format : BytesFormat :: MetricUnits ,
508
508
direction : Direction :: BottomUp ,
509
- bar_alignment : BarAlignment :: Right ,
509
+ bar_alignment : BarAlignment :: Left ,
510
510
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
511
511
max_depth : 10 . try_into ( ) . unwrap ( ) ,
512
512
} ;
@@ -545,7 +545,7 @@ fn bytes_format_binary() {
545
545
data_tree : & data_tree,
546
546
bytes_format : BytesFormat :: BinaryUnits ,
547
547
direction : Direction :: BottomUp ,
548
- bar_alignment : BarAlignment :: Right ,
548
+ bar_alignment : BarAlignment :: Left ,
549
549
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
550
550
max_depth : 10 . try_into ( ) . unwrap ( ) ,
551
551
} ;
@@ -581,7 +581,7 @@ fn path_to_workspace() {
581
581
data_tree : & data_tree,
582
582
bytes_format : BytesFormat :: MetricUnits ,
583
583
direction : Direction :: BottomUp ,
584
- bar_alignment : BarAlignment :: Right ,
584
+ bar_alignment : BarAlignment :: Left ,
585
585
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
586
586
max_depth : 10 . try_into ( ) . unwrap ( ) ,
587
587
} ;
@@ -633,7 +633,7 @@ fn multiple_names() {
633
633
data_tree : & data_tree,
634
634
bytes_format : BytesFormat :: MetricUnits ,
635
635
direction : Direction :: BottomUp ,
636
- bar_alignment : BarAlignment :: Right ,
636
+ bar_alignment : BarAlignment :: Left ,
637
637
column_width_distribution : ColumnWidthDistribution :: total ( 100 ) ,
638
638
max_depth : 10 . try_into ( ) . unwrap ( ) ,
639
639
} ;
0 commit comments