Printing
Verification
Scope
Printed output of echo, format(), and glimpse() for 38 tables: numeric magnitudes and rounding, dates, factors, list-columns, grouped, rowwise, wide, and empty tables.
References
- Reference
- tibble 3.3.1 and pillar 1.11.1 print() and glimpse(), on R 4.6.1
- Versions
- R 4.6.1, tibble 3.3.1, pillar 1.11.1, dplyr 1.2.1, jsonlite 2.0.0, PHP 8.5.10
Data
- print cases
- Identical tables in tests/PrintTest.php and tests/r/print.R Source
Method
tests/r/print.R writes tibble's output for each table to tests/fixtures/print. tests/PrintTest.php builds the same tables in phibble and compares the text. Fixtures regenerated with the listed R versions on 2026-11-01; output byte-identical to the committed files.
- Check
- Comparison with a reference implementation
- Recorded
- 2026-11-02, PHP 8.5.10, macOS 27.0.1 (arm64), commit 1abdeb1
Tolerances
exact equality
Applies to: Printed text
Byte for byte
x: package value; r: reference value.
Results
38 comparisons in 27 cases: 38 pass, 0 fail, 0 skipped.
By case
| Case | Comparisons | Status |
|---|---|---|
| basic | 2 | pass |
| magnitudes | 2 | pass |
| scientific | 1 | pass |
| scientific_negative | 1 | pass |
| rounding | 1 | pass |
| specials | 1 | pass |
| many_rows | 1 | pass |
| twenty_rows | 1 | pass |
| thousands | 1 | pass |
| dates | 2 | pass |
| factors | 2 | pass |
| lists | 2 | pass |
| empty | 2 | pass |
| rows_no_cols | 1 | pass |
| cols_no_rows | 2 | pass |
| wide | 2 | pass |
| very_wide | 1 | pass |
| long_strings | 2 | pass |
| ambiguous | 1 | pass |
| nonsyntactic | 2 | pass |
| long_names | 1 | pass |
| grouped | 2 | pass |
| grouped_two | 1 | pass |
| negatives | 1 | pass |
| prints the requested number of rows | 1 | pass |
| squeezes columns into a narrow width | 1 | pass |
| prints rowwise tables like dplyr | 1 | pass |
Every comparison
| Case | Quantity | Status |
|---|---|---|
| basic | pass | |
| magnitudes | pass | |
| scientific | pass | |
| scientific_negative | pass | |
| rounding | pass | |
| specials | pass | |
| many_rows | pass | |
| twenty_rows | pass | |
| thousands | pass | |
| dates | pass | |
| factors | pass | |
| lists | pass | |
| empty | pass | |
| rows_no_cols | pass | |
| cols_no_rows | pass | |
| wide | pass | |
| very_wide | pass | |
| long_strings | pass | |
| ambiguous | pass | |
| nonsyntactic | pass | |
| long_names | pass | |
| grouped | pass | |
| grouped_two | pass | |
| negatives | pass | |
| prints the requested number of rows | pass | |
| squeezes columns into a narrow width | pass | |
| basic | glimpse() | pass |
| magnitudes | glimpse() | pass |
| dates | glimpse() | pass |
| factors | glimpse() | pass |
| lists | glimpse() | pass |
| empty | glimpse() | pass |
| cols_no_rows | glimpse() | pass |
| wide | glimpse() | pass |
| long_strings | glimpse() | pass |
| nonsyntactic | glimpse() | pass |
| grouped | glimpse() | pass |
| prints rowwise tables like dplyr | pass |
Reproduction
Rscript tests/r/print.R
php vendor/bin/pest tests/PrintTest.php
- Raw record
- site/verifications/print-tibble.json
- Input data
- tests/fixtures/print