|
269 | 269 | @testset "Bottom Vertical Cropping" begin |
270 | 270 | # == Create the Table Data ===================================================== |
271 | 271 |
|
| 272 | + summary_rows = [(data, i) -> i, (data, i) -> 2i] |
| 273 | + |
272 | 274 | td = PrettyTables.TableData( |
273 | 275 | ; |
274 | 276 | data = rand(6, 4), |
|
280 | 282 | row_number_column_label = "Row Number", |
281 | 283 | row_labels = ["Row 1", "Row 2", "Row 3"], |
282 | 284 | row_group_labels = [2 => "Row Group 1", 4 => "Row Group 1"], |
283 | | - summary_rows = [(data, i) -> i, (data, i) -> 2i], |
284 | | - summary_row_labels = PrettyTables.SummaryLabelIterator(2), |
| 285 | + summary_rows = summary_rows, |
| 286 | + summary_row_labels = PrettyTables.SummaryLabelIterator(summary_rows), |
285 | 287 | footnotes = [(:data, 1, 1) => "Footnote", (:data, 2, 2) => "Footnote"], |
286 | 288 | source_notes = "Source Notes", |
287 | 289 | num_rows = 6, |
|
504 | 506 | @testset "Middle Vertical Cropping" begin |
505 | 507 | # == Create the Table Data ===================================================== |
506 | 508 |
|
| 509 | + summary_rows = [(data, i) -> i, (data, i) -> 2i] |
| 510 | + |
507 | 511 | td = PrettyTables.TableData( |
508 | 512 | ; |
509 | 513 | data = rand(6, 4), |
|
515 | 519 | row_number_column_label = "Row Number", |
516 | 520 | row_labels = ["Row 1", "Row 2", "Row 3"], |
517 | 521 | row_group_labels = [2 => "Row Group 1", 6 => "Row Group 2"], |
518 | | - summary_rows = [(data, i) -> i, (data, i) -> 2i], |
519 | | - summary_row_labels = PrettyTables.SummaryLabelIterator(2), |
| 522 | + summary_rows = summary_rows, |
| 523 | + summary_row_labels = PrettyTables.SummaryLabelIterator(summary_rows), |
520 | 524 | footnotes = [(:data, 1, 1) => "Footnote", (:data, 2, 2) => "Footnote"], |
521 | 525 | source_notes = "Source Notes", |
522 | 526 | num_rows = 6, |
|
792 | 796 |
|
793 | 797 | # == Create the Table Data ===================================================== |
794 | 798 |
|
| 799 | + summary_rows = [(data, i) -> i, (data, i) -> 2i] |
| 800 | + |
795 | 801 | td = PrettyTables.TableData( |
796 | 802 | ; |
797 | 803 | data = rand(3, 4), |
|
802 | 808 | show_row_number_column = true, |
803 | 809 | row_number_column_label = "Row Number", |
804 | 810 | row_labels = ["Row 1", "Row 2", "Row 3"], |
805 | | - summary_rows = [(data, i) -> i, (data, i) -> 2i], |
806 | | - summary_row_labels = ["Summary 1", "Summary 2"], |
| 811 | + summary_rows = summary_rows, |
| 812 | + summary_row_labels = PrettyTables.SummaryLabelIterator(summary_rows), |
807 | 813 | footnotes = [(:data, 1, 1) => "Footnote", (:data, 2, 2) => "Footnote"], |
808 | 814 | source_notes = "Source Notes", |
809 | 815 | num_rows = 3, |
|
0 commit comments