From 66bd4c5a78b2c03d241b912691ba65e07f5cb2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Mon, 2 Nov 2020 06:11:09 +0100 Subject: [PATCH] Avoid pillar.bold option in most tests --- tests/testthat/out/deal1.txt | 2 +- tests/testthat/out/deal2.txt | 2 +- tests/testthat/out/deal3.txt | 2 +- tests/testthat/out/matrix-col-empty.txt | 2 +- tests/testthat/out/matrix-col-named.txt | 2 +- tests/testthat/out/matrix-col.txt | 2 +- tests/testthat/out/multi-07.txt | 2 +- tests/testthat/out/multi-08.txt | 2 +- tests/testthat/out/multi-09.txt | 2 +- tests/testthat/out/multi-10.txt | 2 +- tests/testthat/out/multi-11.txt | 2 +- tests/testthat/out/multi-12.txt | 2 +- tests/testthat/out/multi-17.txt | 2 +- tests/testthat/out/multi-18.txt | 2 +- tests/testthat/out/multi-19.txt | 2 +- tests/testthat/out/multi-20.txt | 2 +- tests/testthat/out/multi-21.txt | 2 +- tests/testthat/out/multi-22.txt | 2 +- tests/testthat/out/multi-23.txt | 2 +- tests/testthat/out/multi-24.txt | 2 +- tests/testthat/out/multi-25.txt | 2 +- tests/testthat/out/multi-26.txt | 2 +- tests/testthat/out/multi-27.txt | 2 +- tests/testthat/out/multi-28.txt | 2 +- tests/testthat/out/multi-29.txt | 2 +- tests/testthat/out/multi-30.txt | 2 +- tests/testthat/out/multi-31.txt | 2 +- tests/testthat/out/multi-32.txt | 2 +- tests/testthat/out/multi-33.txt | 2 +- tests/testthat/out/multi-34.txt | 2 +- tests/testthat/out/multi-35.txt | 2 +- tests/testthat/out/multi-36.txt | 2 +- tests/testthat/out/multi-37.txt | 2 +- tests/testthat/out/multi-38.txt | 2 +- tests/testthat/out/multi-39.txt | 2 +- tests/testthat/out/multi-extra-10.txt | 6 +- tests/testthat/out/multi-extra-20.txt | 6 +- tests/testthat/out/multi-extra-30.txt | 4 +- tests/testthat/out/multi-extra-35.txt | 2 +- tests/testthat/out/multi-inf.txt | 2 +- tests/testthat/out/na-names.txt | 2 +- tests/testthat/out/sep.txt | 2 +- tests/testthat/out/str-01-1382-59.txt | 48 +- tests/testthat/out/str-02-837-54.txt | 32 +- tests/testthat/out/str-03-455-32.txt | 30 +- tests/testthat/out/str-04-855-55.txt | 32 +- tests/testthat/out/str-05-552-54.txt | 22 +- tests/testthat/out/str-06-1031-49.txt | 44 +- tests/testthat/out/str-07-429-38.txt | 24 +- tests/testthat/out/str-08-633-54.txt | 24 +- tests/testthat/out/str-09-1496-39.txt | 78 +- tests/testthat/out/str-10-493-31.txt | 32 +- tests/testthat/out/str-11-1130-52.txt | 44 +- tests/testthat/out/str-12-1310-58.txt | 46 +- tests/testthat/out/str-13-484-47.txt | 22 +- tests/testthat/out/str-14-779-55.txt | 30 +- tests/testthat/out/str-15-694-46.txt | 32 +- tests/testthat/out/str-16-516-54.txt | 20 +- tests/testthat/out/str-17-1365-42.txt | 66 +- tests/testthat/out/str-18-934-39.txt | 48 +- tests/testthat/out/str-19-565-32.txt | 36 +- tests/testthat/out/str-20-1121-35.txt | 66 +- tests/testthat/out/str-21-446-32.txt | 28 +- tests/testthat/out/str-22-1166-31.txt | 76 +- tests/testthat/out/str-23-546-58.txt | 20 +- tests/testthat/out/str-24-1035-57.txt | 38 +- tests/testthat/out/str-25-1217-33.txt | 74 +- tests/testthat/out/str-26-770-32.txt | 50 +- tests/testthat/out/str-27-1439-46.txt | 64 +- tests/testthat/out/str-28-1065-52.txt | 42 +- tests/testthat/out/str-29-393-35.txt | 24 +- tests/testthat/out/str-30-999-41.txt | 50 +- tests/testthat/out/style-neg-false.txt | 2 +- tests/testthat/out/style-regular.txt | 2 +- tests/testthat/out/style-subtle-false.txt | 2 +- tests/testthat/out/style-subtle-neg-false.txt | 2 +- tests/testthat/out/style-subtle-num-true.txt | 2 +- tests/testthat/out/tibble-all--30.txt | 2 +- tests/testthat/out/tibble-all--300-20.txt | 12 +- tests/testthat/out/tibble-all--300-30.txt | 8 +- tests/testthat/out/tibble-all--300-40.txt | 6 +- tests/testthat/out/tibble-all--300-50.txt | 4 +- tests/testthat/out/tibble-all--300-60.txt | 4 +- tests/testthat/out/tibble-all--300-70.txt | 4 +- tests/testthat/out/tibble-all--300.txt | 4 +- tests/testthat/out/tibble-col-empty.txt | 2 +- tests/testthat/out/tibble-col-nested.txt | 2 +- tests/testthat/out/tibble-col.txt | 2 +- tests/testthat/out/tibble-iris-3-20.txt | 2 +- tests/testthat/out/tibble-iris-5-30.txt | 2 +- tests/testthat/out/tibble-mtcars-8-30.txt | 2 +- tests/testthat/out/tibble-newline.txt | 2 +- tests/testthat/out/tibble-non-syntactic.txt | 2 +- tests/testthat/out/tibble-space.txt | 2 +- tests/testthat/out/title-crayon.txt | 2 +- tests/testthat/out/title-fifteen.txt | 2 +- tests/testthat/out/title-longer.txt | 2 +- tests/testthat/out/title-short.txt | 2 +- tests/testthat/out/title-too-long.txt | 2 +- tests/testthat/out/utf8.txt | 2 +- tests/testthat/test-format_character.R | 188 ++-- tests/testthat/test-format_multi.R | 868 +++++++++--------- tests/testthat/test-title.R | 21 +- 103 files changed, 1242 insertions(+), 1255 deletions(-) diff --git a/tests/testthat/out/deal1.txt b/tests/testthat/out/deal1.txt index 9dd0552a3..eb87872b6 100644 --- a/tests/testthat/out/deal1.txt +++ b/tests/testthat/out/deal1.txt @@ -1,4 +1,4 @@ -成交 +成交  成交日 NA diff --git a/tests/testthat/out/deal2.txt b/tests/testthat/out/deal2.txt index f1e77a362..a801db742 100644 --- a/tests/testthat/out/deal2.txt +++ b/tests/testthat/out/deal2.txt @@ -1,4 +1,4 @@ -成交日 +成交日  成交 NA diff --git a/tests/testthat/out/deal3.txt b/tests/testthat/out/deal3.txt index 7a7358eac..4e64630ae 100644 --- a/tests/testthat/out/deal3.txt +++ b/tests/testthat/out/deal3.txt @@ -1,4 +1,4 @@ -成交日 +成交日  1 NA diff --git a/tests/testthat/out/matrix-col-empty.txt b/tests/testthat/out/matrix-col-empty.txt index 9bec196d9..20be0286a 100644 --- a/tests/testthat/out/matrix-col-empty.txt +++ b/tests/testthat/out/matrix-col-empty.txt @@ -1,4 +1,4 @@ - a b + a b   1 1 2 2 diff --git a/tests/testthat/out/matrix-col-named.txt b/tests/testthat/out/matrix-col-named.txt index 9dbe14ff9..c62659e9e 100644 --- a/tests/testthat/out/matrix-col-named.txt +++ b/tests/testthat/out/matrix-col-named.txt @@ -1,4 +1,4 @@ - a b[,"c"] [,"d"] + a b[,"c"] [,"d"]    1 1 4 7 2 2 5 8 diff --git a/tests/testthat/out/matrix-col.txt b/tests/testthat/out/matrix-col.txt index 1f1f23c47..611f45381 100644 --- a/tests/testthat/out/matrix-col.txt +++ b/tests/testthat/out/matrix-col.txt @@ -1,4 +1,4 @@ - a b[,1] [,2] + a b[,1] [,2]    1 1 4 7 2 2 5 8 diff --git a/tests/testthat/out/multi-07.txt b/tests/testthat/out/multi-07.txt index b58edb105..5a2c7078e 100644 --- a/tests/testthat/out/multi-07.txt +++ b/tests/testthat/out/multi-07.txt @@ -1,4 +1,4 @@ - colu… + colu…  1 1.23 2 2.23 diff --git a/tests/testthat/out/multi-08.txt b/tests/testthat/out/multi-08.txt index 1ff2e239e..33a5f728a 100644 --- a/tests/testthat/out/multi-08.txt +++ b/tests/testthat/out/multi-08.txt @@ -1,4 +1,4 @@ - colum… + colum…  1 1.23 2 2.23 diff --git a/tests/testthat/out/multi-09.txt b/tests/testthat/out/multi-09.txt index 9d234868e..dbf59e3a0 100644 --- a/tests/testthat/out/multi-09.txt +++ b/tests/testthat/out/multi-09.txt @@ -1,4 +1,4 @@ - column… + column…  1 1.23 2 2.23 diff --git a/tests/testthat/out/multi-10.txt b/tests/testthat/out/multi-10.txt index 58590b8ac..4f5fff32e 100644 --- a/tests/testthat/out/multi-10.txt +++ b/tests/testthat/out/multi-10.txt @@ -1,4 +1,4 @@ - column_… + column_…  1 1.23 2 2.23 diff --git a/tests/testthat/out/multi-11.txt b/tests/testthat/out/multi-11.txt index 18c3b2ec3..bf428cfd3 100644 --- a/tests/testthat/out/multi-11.txt +++ b/tests/testthat/out/multi-11.txt @@ -1,4 +1,4 @@ - column_z… + column_z…  1 1.23 2 2.23 diff --git a/tests/testthat/out/multi-12.txt b/tests/testthat/out/multi-12.txt index 204bdc25f..7c29a9a45 100644 --- a/tests/testthat/out/multi-12.txt +++ b/tests/testthat/out/multi-12.txt @@ -1,4 +1,4 @@ - column_ze… + column_ze…  1 1.23 2 2.23 diff --git a/tests/testthat/out/multi-17.txt b/tests/testthat/out/multi-17.txt index 3a23f843b..edcbf3b28 100644 --- a/tests/testthat/out/multi-17.txt +++ b/tests/testthat/out/multi-17.txt @@ -1,4 +1,4 @@ - column_zero_one + column_zero_one  1 1.23 2 2.23 diff --git a/tests/testthat/out/multi-18.txt b/tests/testthat/out/multi-18.txt index 3a23f843b..edcbf3b28 100644 --- a/tests/testthat/out/multi-18.txt +++ b/tests/testthat/out/multi-18.txt @@ -1,4 +1,4 @@ - column_zero_one + column_zero_one  1 1.23 2 2.23 diff --git a/tests/testthat/out/multi-19.txt b/tests/testthat/out/multi-19.txt index 3a23f843b..edcbf3b28 100644 --- a/tests/testthat/out/multi-19.txt +++ b/tests/testthat/out/multi-19.txt @@ -1,4 +1,4 @@ - column_zero_one + column_zero_one  1 1.23 2 2.23 diff --git a/tests/testthat/out/multi-20.txt b/tests/testthat/out/multi-20.txt index 3a23f843b..edcbf3b28 100644 --- a/tests/testthat/out/multi-20.txt +++ b/tests/testthat/out/multi-20.txt @@ -1,4 +1,4 @@ - column_zero_one + column_zero_one  1 1.23 2 2.23 diff --git a/tests/testthat/out/multi-21.txt b/tests/testthat/out/multi-21.txt index 3a23f843b..edcbf3b28 100644 --- a/tests/testthat/out/multi-21.txt +++ b/tests/testthat/out/multi-21.txt @@ -1,4 +1,4 @@ - column_zero_one + column_zero_one  1 1.23 2 2.23 diff --git a/tests/testthat/out/multi-22.txt b/tests/testthat/out/multi-22.txt index 3a23f843b..edcbf3b28 100644 --- a/tests/testthat/out/multi-22.txt +++ b/tests/testthat/out/multi-22.txt @@ -1,4 +1,4 @@ - column_zero_one + column_zero_one  1 1.23 2 2.23 diff --git a/tests/testthat/out/multi-23.txt b/tests/testthat/out/multi-23.txt index 3a23f843b..edcbf3b28 100644 --- a/tests/testthat/out/multi-23.txt +++ b/tests/testthat/out/multi-23.txt @@ -1,4 +1,4 @@ - column_zero_one + column_zero_one  1 1.23 2 2.23 diff --git a/tests/testthat/out/multi-24.txt b/tests/testthat/out/multi-24.txt index 6235373f3..c8221abf2 100644 --- a/tests/testthat/out/multi-24.txt +++ b/tests/testthat/out/multi-24.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 + column_zero_one col_02   1 1.23 a 2 2.23 b diff --git a/tests/testthat/out/multi-25.txt b/tests/testthat/out/multi-25.txt index 6235373f3..c8221abf2 100644 --- a/tests/testthat/out/multi-25.txt +++ b/tests/testthat/out/multi-25.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 + column_zero_one col_02   1 1.23 a 2 2.23 b diff --git a/tests/testthat/out/multi-26.txt b/tests/testthat/out/multi-26.txt index 6235373f3..c8221abf2 100644 --- a/tests/testthat/out/multi-26.txt +++ b/tests/testthat/out/multi-26.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 + column_zero_one col_02   1 1.23 a 2 2.23 b diff --git a/tests/testthat/out/multi-27.txt b/tests/testthat/out/multi-27.txt index 6235373f3..c8221abf2 100644 --- a/tests/testthat/out/multi-27.txt +++ b/tests/testthat/out/multi-27.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 + column_zero_one col_02   1 1.23 a 2 2.23 b diff --git a/tests/testthat/out/multi-28.txt b/tests/testthat/out/multi-28.txt index 6235373f3..c8221abf2 100644 --- a/tests/testthat/out/multi-28.txt +++ b/tests/testthat/out/multi-28.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 + column_zero_one col_02   1 1.23 a 2 2.23 b diff --git a/tests/testthat/out/multi-29.txt b/tests/testthat/out/multi-29.txt index 6235373f3..c8221abf2 100644 --- a/tests/testthat/out/multi-29.txt +++ b/tests/testthat/out/multi-29.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 + column_zero_one col_02   1 1.23 a 2 2.23 b diff --git a/tests/testthat/out/multi-30.txt b/tests/testthat/out/multi-30.txt index 6235373f3..c8221abf2 100644 --- a/tests/testthat/out/multi-30.txt +++ b/tests/testthat/out/multi-30.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 + column_zero_one col_02   1 1.23 a 2 2.23 b diff --git a/tests/testthat/out/multi-31.txt b/tests/testthat/out/multi-31.txt index a4e6f5a9e..3a0f33fb5 100644 --- a/tests/testthat/out/multi-31.txt +++ b/tests/testthat/out/multi-31.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 col_03 + column_zero_one col_02 col_03    1 1.23 a a 2 2.23 b b diff --git a/tests/testthat/out/multi-32.txt b/tests/testthat/out/multi-32.txt index a4e6f5a9e..3a0f33fb5 100644 --- a/tests/testthat/out/multi-32.txt +++ b/tests/testthat/out/multi-32.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 col_03 + column_zero_one col_02 col_03    1 1.23 a a 2 2.23 b b diff --git a/tests/testthat/out/multi-33.txt b/tests/testthat/out/multi-33.txt index a4e6f5a9e..3a0f33fb5 100644 --- a/tests/testthat/out/multi-33.txt +++ b/tests/testthat/out/multi-33.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 col_03 + column_zero_one col_02 col_03    1 1.23 a a 2 2.23 b b diff --git a/tests/testthat/out/multi-34.txt b/tests/testthat/out/multi-34.txt index a4e6f5a9e..3a0f33fb5 100644 --- a/tests/testthat/out/multi-34.txt +++ b/tests/testthat/out/multi-34.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 col_03 + column_zero_one col_02 col_03    1 1.23 a a 2 2.23 b b diff --git a/tests/testthat/out/multi-35.txt b/tests/testthat/out/multi-35.txt index a4e6f5a9e..3a0f33fb5 100644 --- a/tests/testthat/out/multi-35.txt +++ b/tests/testthat/out/multi-35.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 col_03 + column_zero_one col_02 col_03    1 1.23 a a 2 2.23 b b diff --git a/tests/testthat/out/multi-36.txt b/tests/testthat/out/multi-36.txt index a4e6f5a9e..3a0f33fb5 100644 --- a/tests/testthat/out/multi-36.txt +++ b/tests/testthat/out/multi-36.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 col_03 + column_zero_one col_02 col_03    1 1.23 a a 2 2.23 b b diff --git a/tests/testthat/out/multi-37.txt b/tests/testthat/out/multi-37.txt index a4e6f5a9e..3a0f33fb5 100644 --- a/tests/testthat/out/multi-37.txt +++ b/tests/testthat/out/multi-37.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 col_03 + column_zero_one col_02 col_03    1 1.23 a a 2 2.23 b b diff --git a/tests/testthat/out/multi-38.txt b/tests/testthat/out/multi-38.txt index 7badf69f1..f5ae4fa1f 100644 --- a/tests/testthat/out/multi-38.txt +++ b/tests/testthat/out/multi-38.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 col_03 col_04 + column_zero_one col_02 col_03 col_04     1 1.23 a a a 2 2.23 b b b diff --git a/tests/testthat/out/multi-39.txt b/tests/testthat/out/multi-39.txt index 7badf69f1..f5ae4fa1f 100644 --- a/tests/testthat/out/multi-39.txt +++ b/tests/testthat/out/multi-39.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 col_03 col_04 + column_zero_one col_02 col_03 col_04     1 1.23 a a a 2 2.23 b b b diff --git a/tests/testthat/out/multi-extra-10.txt b/tests/testthat/out/multi-extra-10.txt index a0c3253b9..55f00dfae 100644 --- a/tests/testthat/out/multi-extra-10.txt +++ b/tests/testthat/out/multi-extra-10.txt @@ -1,3 +1,3 @@ -col_02  -col_03  -col_04  +col_02  +col_03  +col_04  diff --git a/tests/testthat/out/multi-extra-20.txt b/tests/testthat/out/multi-extra-20.txt index a0c3253b9..55f00dfae 100644 --- a/tests/testthat/out/multi-extra-20.txt +++ b/tests/testthat/out/multi-extra-20.txt @@ -1,3 +1,3 @@ -col_02  -col_03  -col_04  +col_02  +col_03  +col_04  diff --git a/tests/testthat/out/multi-extra-30.txt b/tests/testthat/out/multi-extra-30.txt index 96500057a..4934aa3be 100644 --- a/tests/testthat/out/multi-extra-30.txt +++ b/tests/testthat/out/multi-extra-30.txt @@ -1,2 +1,2 @@ -col_03  -col_04  +col_03  +col_04  diff --git a/tests/testthat/out/multi-extra-35.txt b/tests/testthat/out/multi-extra-35.txt index 2c4489856..46a69ab27 100644 --- a/tests/testthat/out/multi-extra-35.txt +++ b/tests/testthat/out/multi-extra-35.txt @@ -1 +1 @@ -col_04  +col_04  diff --git a/tests/testthat/out/multi-inf.txt b/tests/testthat/out/multi-inf.txt index 7badf69f1..f5ae4fa1f 100644 --- a/tests/testthat/out/multi-inf.txt +++ b/tests/testthat/out/multi-inf.txt @@ -1,4 +1,4 @@ - column_zero_one col_02 col_03 col_04 + column_zero_one col_02 col_03 col_04     1 1.23 a a a 2 2.23 b b b diff --git a/tests/testthat/out/na-names.txt b/tests/testthat/out/na-names.txt index f78cf5076..78a67ef20 100644 --- a/tests/testthat/out/na-names.txt +++ b/tests/testthat/out/na-names.txt @@ -1,4 +1,4 @@ - `NA`  + `NA`    1 1 4 2 2 5 diff --git a/tests/testthat/out/sep.txt b/tests/testthat/out/sep.txt index f407bf2cf..cda8d9e01 100644 --- a/tests/testthat/out/sep.txt +++ b/tests/testthat/out/sep.txt @@ -1,4 +1,4 @@ - sep + sep  1 1 2 2 diff --git a/tests/testthat/out/str-01-1382-59.txt b/tests/testthat/out/str-01-1382-59.txt index 8411688a0..1303b8f22 100644 --- a/tests/testthat/out/str-01-1382-59.txt +++ b/tests/testthat/out/str-01-1382-59.txt @@ -1,72 +1,72 @@ - `12` `33` + `12` `33`   1 AbcdefghijAb AbcdefghijAbcdefghijAbcdefghijAbc - `36` `7` + `36` `7`   1 AbcdefghijAbcdefghijAbcdefghijAbcdef Abcdefg - `41` `3` + `41` `3`   1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA Abc - `18` `23` `13` + `18` `23` `13`    1 AbcdefghijAbcdefgh AbcdefghijAbcdefghijAbc AbcdefghijAbc - `44` + `44`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcd - `14` `16` `25` + `14` `16` `25`    1 AbcdefghijAbcd AbcdefghijAbcdef AbcdefghijAbcdefghijAbcde - `21` `19` + `21` `19`   1 AbcdefghijAbcdefghijA AbcdefghijAbcdefghi - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcde - `43` + `43`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc - `29` `1` + `29` `1`   1 AbcdefghijAbcdefghijAbcdefghi A - `30` `22` + `30` `22`   1 AbcdefghijAbcdefghijAbcdefghij AbcdefghijAbcdefghijAb - `27` `15` + `27` `15`   1 AbcdefghijAbcdefghijAbcdefg AbcdefghijAbcde - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg - `28` + `28`  1 AbcdefghijAbcdefghijAbcdefgh - `31` `10` + `31` `10`   1 AbcdefghijAbcdefghijAbcdefghijA Abcdefghij - `50` `4` + `50` `4`   1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghij Abcd - `40` + `40`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghij - `42` `8` + `42` `8`   1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb Abcdefgh - `6` `9` `24` + `6` `9` `24`    1 Abcdef Abcdefghi AbcdefghijAbcdefghijAbcd - `48` + `48`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefgh - `38` + `38`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh - `37` + `37`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefg - `34` `49` `46` `2` `32` `35` `39` `11` `17` + `34` `49` `46` `2` `32` `35` `39` `11` `17`          1 Abcde… Abcde… Abcde… Ab Abcde… Abcd… Abcd… Abcd… Abcd… - `5` `26` `20` + `5` `26` `20`    1 Abcde AbcdefghijAbcdefghijAbcdef AbcdefghijAbcdefghij diff --git a/tests/testthat/out/str-02-837-54.txt b/tests/testthat/out/str-02-837-54.txt index 2383d6ca4..4a51d808f 100644 --- a/tests/testthat/out/str-02-837-54.txt +++ b/tests/testthat/out/str-02-837-54.txt @@ -1,48 +1,48 @@ - `40` + `40`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghij - `28` `7` + `28` `7`   1 AbcdefghijAbcdefghijAbcdefgh Abcdefg - `16` + `16`  1 AbcdefghijAbcdef - `48` + `48`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefgh - `6` `21` `1` + `6` `21` `1`    1 Abcdef AbcdefghijAbcdefghijA A - `20` `17` + `20` `17`   1 AbcdefghijAbcdefghij AbcdefghijAbcdefg - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcde - `29` + `29`  1 AbcdefghijAbcdefghijAbcdefghi - `41` + `41`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghi - `34` `4` `39` `18` `36` `26` `38` `10` + `34` `4` `39` `18` `36` `26` `38` `10`         1 Abcde… Abcd Abcdef… Abcde… Abcde… Abcd… Abcd… Abcd… - `8` `5` `15` `44` `24` `46` `14` `25` + `8` `5` `15` `44` `24` `46` `14` `25`         1 Abcde… Abcde Abcde… Abcdef… Abcd… Abcde… Abcd… Abcd… - `27` `3` `37` `35` `12` `9` `13` `22` + `27` `3` `37` `35` `12` `9` `13` `22`         1 Abcde… Abc Abcdef… Abcdef… Abcd… Abcd… Abcd… Abcd… - `33` `42` `11` `19` `50` `23` `30` `32` + `33` `42` `11` `19` `50` `23` `30` `32`         1 Abcde… Abcde… Abcde… Abcde… Abcde… Abcd… Abcd… Abcd… - `2` `43` `31` + `2` `43` `31`    1 Ab AbcdefghijAbcdefghijAbcde… AbcdefghijAbcdefgh… diff --git a/tests/testthat/out/str-03-455-32.txt b/tests/testthat/out/str-03-455-32.txt index eb2cbaddb..7e2c600cd 100644 --- a/tests/testthat/out/str-03-455-32.txt +++ b/tests/testthat/out/str-03-455-32.txt @@ -1,45 +1,45 @@ - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghi… - `42` + `42`  1 AbcdefghijAbcdefghijAbcdefghi… - `4` + `4`  1 Abcd - `46` + `46`  1 AbcdefghijAbcdefghijAbcdefghi… - `9` + `9`  1 Abcdefghi - `34` + `34`  1 AbcdefghijAbcdefghijAbcdefghi… - `19` `39` `8` `32` `36` + `19` `39` `8` `32` `36`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `12` `29` `5` `15` `11` + `12` `29` `5` `15` `11`      1 Abcde… Abcd… Abcde Abcd… Abcd… - `31` `27` `33` `28` `43` + `31` `27` `33` `28` `43`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `6` `13` `22` `14` `16` + `6` `13` `22` `14` `16`      1 Abcdef Abcd… Abcd… Abcd… Abcd… - `35` `50` `38` `7` `23` + `35` `50` `38` `7` `23`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `45` `40` `3` `2` `24` + `45` `40` `3` `2` `24`      1 Abcde… Abcd… Abc Ab Abcd… - `41` `10` `30` `25` `17` + `41` `10` `30` `25` `17`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `26` `48` `37` `49` `1` + `26` `48` `37` `49` `1`      1 Abcde… Abcd… Abcd… Abcd… A - `18` `21` `44` `20` + `18` `21` `44` `20`     1 Abcdef… Abcdef… Abcdef… Abcde… diff --git a/tests/testthat/out/str-04-855-55.txt b/tests/testthat/out/str-04-855-55.txt index b3d7c544a..7150bc0a5 100644 --- a/tests/testthat/out/str-04-855-55.txt +++ b/tests/testthat/out/str-04-855-55.txt @@ -1,48 +1,48 @@ - `41` `4` + `41` `4`   1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA Abcd - `25` + `25`  1 AbcdefghijAbcdefghijAbcde - `31` `8` + `31` `8`   1 AbcdefghijAbcdefghijAbcdefghijA Abcdefgh - `22` `19` `10` + `22` `19` `10`    1 AbcdefghijAbcdefghijAb AbcdefghijAbcdefghi Abcdefghij - `29` `21` + `29` `21`   1 AbcdefghijAbcdefghijAbcdefghi AbcdefghijAbcdefghijA - `34` `5` + `34` `5`   1 AbcdefghijAbcdefghijAbcdefghijAbcd Abcde - `26` + `26`  1 AbcdefghijAbcdefghijAbcdef - `36` + `36`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg - `46` `2` + `46` `2`   1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdef Ab - `24` `27` + `24` `27`   1 AbcdefghijAbcdefghijAbcd AbcdefghijAbcdefghijAbcdefg - `39` + `39`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi - `28` `43` `32` `30` `48` `44` `6` `20` `13` + `28` `43` `32` `30` `48` `44` `6` `20` `13`          1 Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… - `15` `18` `42` `9` `12` `37` `45` `16` `40` + `15` `18` `42` `9` `12` `37` `45` `16` `40`          1 Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… - `11` `14` `38` `1` `7` `3` `23` `35` `50` + `11` `14` `38` `1` `7` `3` `23` `35` `50`          1 Abcd… Abcd… Abcd… A Abcd… Abc Abcd… Abcd… Abcd… - `17` `49` `33` + `17` `49` `33`    1 Abcdefghij… AbcdefghijAbcdefghijAb… AbcdefghijAbcdef… diff --git a/tests/testthat/out/str-05-552-54.txt b/tests/testthat/out/str-05-552-54.txt index 01d4a5330..b24089b48 100644 --- a/tests/testthat/out/str-05-552-54.txt +++ b/tests/testthat/out/str-05-552-54.txt @@ -1,33 +1,33 @@ - `27` `22` + `27` `22`   1 AbcdefghijAbcdefghijAbcdefg AbcdefghijAbcdefghijAb - `9` `23` `16` + `9` `23` `16`    1 Abcdefghi AbcdefghijAbcdefghijAbc AbcdefghijAbcdef - `19` `25` + `19` `25`   1 AbcdefghijAbcdefghi AbcdefghijAbcdefghijAbcde - `31` + `31`  1 AbcdefghijAbcdefghijAbcdefghijA - `44` `1` + `44` `1`   1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcd A - `28` + `28`  1 AbcdefghijAbcdefghijAbcdefgh - `46` `12` `20` `43` `37` `5` `2` `18` + `46` `12` `20` `43` `37` `5` `2` `18`         1 Abcdef… Abcde… Abcd… Abcde… Abcde… Abcde Ab Abcd… - `41` `26` `33` `11` `49` `24` `35` `4` + `41` `26` `33` `11` `49` `24` `35` `4`         1 Abcde… Abcde… Abcde… Abcde… Abcde… Abcd… Abcd… Abcd - `47` `30` `7` `34` `3` `32` `42` `10` + `47` `30` `7` `34` `3` `32` `42` `10`         1 Abcdef… Abcde… Abcde… Abcd… Abc Abcd… Abcde… Abcd… - `45` `38` `39` `48` `14` `6` `17` `36` + `45` `38` `39` `48` `14` `6` `17` `36`         1 Abcde… Abcde… Abcde… Abcdef… Abcd… Abcd… Abcd… Abcd… - `50` `40` `13` `8` `21` `15` `29` + `50` `40` `13` `8` `21` `15` `29`        1 Abcdefgh… Abcdefg… Abcde… Abcde… Abcde… Abcd… Abcde… diff --git a/tests/testthat/out/str-06-1031-49.txt b/tests/testthat/out/str-06-1031-49.txt index 0b3138556..13a81b31c 100644 --- a/tests/testthat/out/str-06-1031-49.txt +++ b/tests/testthat/out/str-06-1031-49.txt @@ -1,66 +1,66 @@ - `32` + `32`  1 AbcdefghijAbcdefghijAbcdefghijAb - `24` `18` + `24` `18`   1 AbcdefghijAbcdefghijAbcd AbcdefghijAbcdefgh - `25` + `25`  1 AbcdefghijAbcdefghijAbcde - `26` `13` + `26` `13`   1 AbcdefghijAbcdefghijAbcdef AbcdefghijAbc - `33` `2` + `33` `2`   1 AbcdefghijAbcdefghijAbcdefghijAbc Ab - `50` + `50`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdef… - `38` + `38`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh - `37` + `37`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefg - `16` `27` + `16` `27`   1 AbcdefghijAbcdef AbcdefghijAbcdefghijAbcdefg - `9` `28` + `9` `28`   1 Abcdefghi AbcdefghijAbcdefghijAbcdefgh - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdef… - `34` + `34`  1 AbcdefghijAbcdefghijAbcdefghijAbcd - `15` `17` + `15` `17`   1 AbcdefghijAbcde AbcdefghijAbcdefg - `35` + `35`  1 AbcdefghijAbcdefghijAbcdefghijAbcde - `22` + `22`  1 AbcdefghijAbcdefghijAb - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg - `3` `21` + `3` `21`   1 Abc AbcdefghijAbcdefghijA - `23` + `23`  1 AbcdefghijAbcdefghijAbc - `41` `5` `1` `14` `46` `30` `31` `44` + `41` `5` `1` `14` `46` `30` `31` `44`         1 Abcd… Abcde A Abcd… Abcd… Abcd… Abcd… Abcd… - `4` `7` `40` `43` `12` `29` `8` `36` + `4` `7` `40` `43` `12` `29` `8` `36`         1 Abcd Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… - `45` `11` `20` `10` `6` `19` `48` `39` + `45` `11` `20` `10` `6` `19` `48` `39`         1 Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… - `42` + `42`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb diff --git a/tests/testthat/out/str-07-429-38.txt b/tests/testthat/out/str-07-429-38.txt index 0aeea535e..1faab32c0 100644 --- a/tests/testthat/out/str-07-429-38.txt +++ b/tests/testthat/out/str-07-429-38.txt @@ -1,36 +1,36 @@ - `44` + `44`  1 AbcdefghijAbcdefghijAbcdefghijAbcde… - `34` + `34`  1 AbcdefghijAbcdefghijAbcdefghijAbcd - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefghijAbcde… - `9` `15` + `9` `15`   1 Abcdefghi AbcdefghijAbcde - `16` `1` `10` `40` `29` `26` + `16` `1` `10` `40` `29` `26`       1 Abcde… A Abcd… Abcd… Abcd… Abcd… - `22` `4` `43` `20` `17` `46` + `22` `4` `43` `20` `17` `46`       1 Abcde… Abcd Abcd… Abcd… Abcd… Abcd… - `33` `35` `32` `2` `12` `8` + `33` `35` `32` `2` `12` `8`       1 Abcde… Abcd… Abcd… Ab Abcd… Abcd… - `37` `23` `39` `7` `18` `36` + `37` `23` `39` `7` `18` `36`       1 Abcde… Abcd… Abcd… Abcd… Abcd… Abcd… - `42` `6` `30` `19` `25` `5` + `42` `6` `30` `19` `25` `5`       1 Abcde… Abcd… Abcd… Abcd… Abcd… Abcde - `21` `47` `50` `28` `11` `31` + `21` `47` `50` `28` `11` `31`       1 Abcde… Abcd… Abcd… Abcd… Abcd… Abcd… - `14` `24` `27` `45` `41` `38` + `14` `24` `27` `45` `41` `38`       1 Abcde… Abcd… Abcd… Abcd… Abcd… Abcd… - `3` `13` `48` + `3` `13` `48`    1 Abc Abcdefgh… AbcdefghijAbcdefghi… diff --git a/tests/testthat/out/str-08-633-54.txt b/tests/testthat/out/str-08-633-54.txt index f605f8ab1..e7a3863e9 100644 --- a/tests/testthat/out/str-08-633-54.txt +++ b/tests/testthat/out/str-08-633-54.txt @@ -1,36 +1,36 @@ - `21` `26` + `21` `26`   1 AbcdefghijAbcdefghijA AbcdefghijAbcdefghijAbcdef - `8` `22` + `8` `22`   1 Abcdefgh AbcdefghijAbcdefghijAb - `41` + `41`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA - `24` `13` `5` + `24` `13` `5`    1 AbcdefghijAbcdefghijAbcd AbcdefghijAbc Abcde - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg - `37` `4` + `37` `4`   1 AbcdefghijAbcdefghijAbcdefghijAbcdefg Abcd - `42` + `42`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb - `19` `34` `11` `43` `38` `3` `33` `20` + `19` `34` `11` `43` `38` `3` `33` `20`         1 Abcde… Abcde… Abcde… Abcde… Abcde… Abc Abcd… Abcd… - `31` `2` `18` `48` `27` `44` `9` `35` + `31` `2` `18` `48` `27` `44` `9` `35`         1 Abcde… Ab Abcde… Abcdef… Abcd… Abcde… Abcd… Abcd… - `30` `6` `49` `10` `1` `16` `46` `29` + `30` `6` `49` `10` `1` `16` `46` `29`         1 Abcde… Abcdef Abcdef… Abcd… A Abcd… Abcde… Abcd… - `12` `14` `45` `36` `15` `39` `50` `23` + `12` `14` `45` `36` `15` `39` `50` `23`         1 Abcde… Abcde… Abcdef… Abcd… Abcd… Abcd… Abcde… Abcd… - `17` `28` `7` `32` `40` `25` + `17` `28` `7` `32` `40` `25`       1 Abcdef… Abcdefgh… Abcde… Abcdefg… Abcdefghi… Abcdef… diff --git a/tests/testthat/out/str-09-1496-39.txt b/tests/testthat/out/str-09-1496-39.txt index e65138562..6f7c12315 100644 --- a/tests/testthat/out/str-09-1496-39.txt +++ b/tests/testthat/out/str-09-1496-39.txt @@ -1,117 +1,117 @@ - `23` + `23`  1 AbcdefghijAbcdefghijAbc - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `13` + `13`  1 AbcdefghijAbc - `37` + `37`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefg - `3` `25` + `3` `25`   1 Abc AbcdefghijAbcdefghijAbcde - `36` + `36`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef - `4` `9` `7` + `4` `9` `7`    1 Abcd Abcdefghi Abcdefg - `27` + `27`  1 AbcdefghijAbcdefghijAbcdefg - `48` + `48`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `12` `10` + `12` `10`   1 AbcdefghijAb Abcdefghij - `50` + `50`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `14` + `14`  1 AbcdefghijAbcd - `38` + `38`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `39` + `39`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `46` + `46`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `22` + `22`  1 AbcdefghijAbcdefghijAb - `28` `8` + `28` `8`   1 AbcdefghijAbcdefghijAbcdefgh Abcdefgh - `21` + `21`  1 AbcdefghijAbcdefghijA - `44` + `44`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `32` + `32`  1 AbcdefghijAbcdefghijAbcdefghijAb - `40` + `40`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `31` `1` + `31` `1`   1 AbcdefghijAbcdefghijAbcdefghijA A - `29` + `29`  1 AbcdefghijAbcdefghijAbcdefghi - `34` + `34`  1 AbcdefghijAbcdefghijAbcdefghijAbcd - `35` + `35`  1 AbcdefghijAbcdefghijAbcdefghijAbcde - `33` + `33`  1 AbcdefghijAbcdefghijAbcdefghijAbc - `19` `15` + `19` `15`   1 AbcdefghijAbcdefghi AbcdefghijAbcde - `41` + `41`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `20` + `20`  1 AbcdefghijAbcdefghij - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `18` `16` + `18` `16`   1 AbcdefghijAbcdefgh AbcdefghijAbcdef - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `6` `5` `24` + `6` `5` `24`    1 Abcdef Abcde AbcdefghijAbcdefghijAbcd - `26` + `26`  1 AbcdefghijAbcdefghijAbcdef - `43` + `43`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `11` + `11`  1 AbcdefghijA - `42` + `42`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `30` + `30`  1 AbcdefghijAbcdefghijAbcdefghij - `17` `2` + `17` `2`   1 AbcdefghijAbcdefg Ab diff --git a/tests/testthat/out/str-10-493-31.txt b/tests/testthat/out/str-10-493-31.txt index ccab0241f..055d21da0 100644 --- a/tests/testthat/out/str-10-493-31.txt +++ b/tests/testthat/out/str-10-493-31.txt @@ -1,48 +1,48 @@ - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefgh… - `14` + `14`  1 AbcdefghijAbcd - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefgh… - `24` + `24`  1 AbcdefghijAbcdefghijAbcd - `22` + `22`  1 AbcdefghijAbcdefghijAb - `31` + `31`  1 AbcdefghijAbcdefghijAbcdefgh… - `42` + `42`  1 AbcdefghijAbcdefghijAbcdefgh… - `18` `16` `47` `25` `4` + `18` `16` `47` `25` `4`      1 Abcd… Abcd… Abcd… Abcd… Abcd - `37` `8` `26` `21` `50` + `37` `8` `26` `21` `50`      1 Abcd… Abcd… Abcd… Abcd… Abcd… - `5` `41` `30` `2` `33` + `5` `41` `30` `2` `33`      1 Abcde Abcd… Abcd… Ab Abcd… - `34` `3` `44` `19` `43` + `34` `3` `44` `19` `43`      1 Abcd… Abc Abcd… Abcd… Abcd… - `6` `32` `29` `20` `1` + `6` `32` `29` `20` `1`      1 Abcd… Abcd… Abcd… Abcd… A - `13` `11` `40` `12` `48` + `13` `11` `40` `12` `48`      1 Abcd… Abcd… Abcd… Abcd… Abcd… - `23` `9` `15` `46` `36` + `23` `9` `15` `46` `36`      1 Abcd… Abcd… Abcd… Abcd… Abcd… - `27` `35` `28` `10` `7` + `27` `35` `28` `10` `7`      1 Abcd… Abcd… Abcd… Abcd… Abcd… - `39` `17` `38` + `39` `17` `38`    1 Abcdefghi… Abcdefg… Abcdefgh… diff --git a/tests/testthat/out/str-11-1130-52.txt b/tests/testthat/out/str-11-1130-52.txt index fbd7832aa..c529bb1a9 100644 --- a/tests/testthat/out/str-11-1130-52.txt +++ b/tests/testthat/out/str-11-1130-52.txt @@ -1,66 +1,66 @@ - `38` + `38`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh - `46` + `46`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdef - `17` `11` + `17` `11`   1 AbcdefghijAbcdefg AbcdefghijA - `24` `18` + `24` `18`   1 AbcdefghijAbcdefghijAbcd AbcdefghijAbcdefgh - `16` + `16`  1 AbcdefghijAbcdef - `39` + `39`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi - `50` + `50`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghij - `42` `6` + `42` `6`   1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb Abcdef - `13` + `13`  1 AbcdefghijAbc - `37` + `37`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefg - `29` + `29`  1 AbcdefghijAbcdefghijAbcdefghi - `41` + `41`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg - `9` `33` + `9` `33`   1 Abcdefghi AbcdefghijAbcdefghijAbcdefghijAbc - `44` + `44`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcd - `31` + `31`  1 AbcdefghijAbcdefghijAbcdefghijA - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcde - `36` + `36`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef - `28` `5` `10` `30` `20` `1` `14` `43` + `28` `5` `10` `30` `20` `1` `14` `43`         1 Abcde… Abcde Abcde… Abcde… Abcd… A Abcd… Abcd… - `49` `23` `26` `21` `32` `19` `34` `15` + `49` `23` `26` `21` `32` `19` `34` `15`         1 Abcde… Abcde… Abcde… Abcd… Abcd… Abcd… Abcd… Abcd… - `48` `4` `7` `35` `40` `8` `22` `3` + `48` `4` `7` `35` `40` `8` `22` `3`         1 Abcde… Abcd Abcde… Abcde… Abcd… Abcd… Abcd… Abc - `25` `12` `27` `2` + `25` `12` `27` `2`     1 AbcdefghijAbcdef… Abcdefg… AbcdefghijAbcdef… Ab diff --git a/tests/testthat/out/str-12-1310-58.txt b/tests/testthat/out/str-12-1310-58.txt index d4832aaae..27b2c9652 100644 --- a/tests/testthat/out/str-12-1310-58.txt +++ b/tests/testthat/out/str-12-1310-58.txt @@ -1,69 +1,69 @@ - `17` `28` + `17` `28`   1 AbcdefghijAbcdefg AbcdefghijAbcdefghijAbcdefgh - `29` + `29`  1 AbcdefghijAbcdefghijAbcdefghi - `27` `20` + `27` `20`   1 AbcdefghijAbcdefghijAbcdefg AbcdefghijAbcdefghij - `31` + `31`  1 AbcdefghijAbcdefghijAbcdefghijA - `43` + `43`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc - `30` + `30`  1 AbcdefghijAbcdefghijAbcdefghij - `32` + `32`  1 AbcdefghijAbcdefghijAbcdefghijAb - `48` + `48`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefgh - `10` + `10`  1 Abcdefghij - `50` + `50`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghij - `13` `12` + `13` `12`   1 AbcdefghijAbc AbcdefghijAb - `36` + `36`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef - `21` + `21`  1 AbcdefghijAbcdefghijA - `46` + `46`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdef - `33` + `33`  1 AbcdefghijAbcdefghijAbcdefghijAbc - `25` + `25`  1 AbcdefghijAbcdefghijAbcde - `35` `1` `5` + `35` `1` `5`    1 AbcdefghijAbcdefghijAbcdefghijAbcde A Abcde - `16` `34` + `16` `34`   1 AbcdefghijAbcdef AbcdefghijAbcdefghijAbcdefghijAbcd - `18` + `18`  1 AbcdefghijAbcdefgh - `42` `3` + `42` `3`   1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb Abc - `11` `40` `26` `37` `7` `39` `6` `4` `19` + `11` `40` `26` `37` `7` `39` `6` `4` `19`          1 Abcde… Abcde… Abcde… Abcd… Abcd… Abcd… Abcd… Abcd Abcd… - `8` `45` `14` `24` `23` `2` `47` `9` `49` + `8` `45` `14` `24` `23` `2` `47` `9` `49`          1 Abcde… Abcde… Abcde… Abcd… Abcd… Ab Abcd… Abcd… Abcd… - `41` `38` `22` `44` `15` + `41` `38` `22` `44` `15`      1 AbcdefghijAb… AbcdefghijA… Abcdefg… AbcdefghijA… Abcdef… diff --git a/tests/testthat/out/str-13-484-47.txt b/tests/testthat/out/str-13-484-47.txt index c73f749f4..d5b91c9dd 100644 --- a/tests/testthat/out/str-13-484-47.txt +++ b/tests/testthat/out/str-13-484-47.txt @@ -1,33 +1,33 @@ - `1` `26` + `1` `26`   1 A AbcdefghijAbcdefghijAbcdef - `20` `12` + `20` `12`   1 AbcdefghijAbcdefghij AbcdefghijAb - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcd… - `16` `24` + `16` `24`   1 AbcdefghijAbcdef AbcdefghijAbcdefghijAbcd - `4` `15` `47` `8` `11` `14` `50` + `4` `15` `47` `8` `11` `14` `50`        1 Abcd Abcde… Abcdef… Abcd… Abcd… Abcd… Abcde… - `17` `2` `44` `30` `36` `45` `25` + `17` `2` `44` `30` `36` `45` `25`        1 Abcde… Ab Abcde… Abcde… Abcde… Abcd… Abcd… - `38` `18` `29` `5` `13` `3` `23` + `38` `18` `29` `5` `13` `3` `23`        1 Abcdef… Abcde… Abcde… Abcde Abcd… Abc Abcd… - `48` `40` `34` `22` `39` `33` `27` + `48` `40` `34` `22` `39` `33` `27`        1 Abcde… Abcde… Abcde… Abcde… Abcd… Abcd… Abcd… - `7` `19` `10` `37` `6` `35` `46` + `7` `19` `10` `37` `6` `35` `46`        1 Abcde… Abcde… Abcd… Abcde… Abcd… Abcd… Abcde… - `31` `41` `43` `28` `42` `32` `21` + `31` `41` `43` `28` `42` `32` `21`        1 Abcde… Abcde… Abcde… Abcde… Abcd… Abcd… Abcd… - `9` + `9`  1 Abcdefghi diff --git a/tests/testthat/out/str-14-779-55.txt b/tests/testthat/out/str-14-779-55.txt index d9b49ac41..9c3bb304c 100644 --- a/tests/testthat/out/str-14-779-55.txt +++ b/tests/testthat/out/str-14-779-55.txt @@ -1,45 +1,45 @@ - `6` + `6`  1 Abcdef - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghi - `26` + `26`  1 AbcdefghijAbcdefghijAbcdef - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcde - `25` `15` + `25` `15`   1 AbcdefghijAbcdefghijAbcde AbcdefghijAbcde - `31` `20` + `31` `20`   1 AbcdefghijAbcdefghijAbcdefghijA AbcdefghijAbcdefghij - `21` + `21`  1 AbcdefghijAbcdefghijA - `44` + `44`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcd - `23` + `23`  1 AbcdefghijAbcdefghijAbc - `48` + `48`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefgh - `37` `36` `5` `43` `11` `14` `13` `39` `16` + `37` `36` `5` `43` `11` `14` `13` `39` `16`          1 Abcd… Abcd… Abcde Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… - `12` `4` `18` `42` `3` `10` `28` `40` `24` + `12` `4` `18` `42` `3` `10` `28` `40` `24`          1 Abcd… Abcd Abcd… Abcd… Abc Abcd… Abcd… Abcd… Abcd… - `29` `17` `35` `47` `2` `38` `34` `9` `7` + `29` `17` `35` `47` `2` `38` `34` `9` `7`          1 Abcd… Abcd… Abcd… Abcd… Ab Abcd… Abcd… Abcd… Abcd… - `8` `50` `33` `32` `27` `46` `19` `22` `41` + `8` `50` `33` `32` `27` `46` `19` `22` `41`          1 Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… - `30` `1` + `30` `1`   1 AbcdefghijAbcdefghijAbcdefghij A diff --git a/tests/testthat/out/str-15-694-46.txt b/tests/testthat/out/str-15-694-46.txt index 37b77c5f1..b235b8963 100644 --- a/tests/testthat/out/str-15-694-46.txt +++ b/tests/testthat/out/str-15-694-46.txt @@ -1,48 +1,48 @@ - `38` + `38`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh - `42` + `42`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb - `41` + `41`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA - `10` + `10`  1 Abcdefghij - `40` + `40`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghij - `11` `27` + `11` `27`   1 AbcdefghijA AbcdefghijAbcdefghijAbcdefg - `9` `17` + `9` `17`   1 Abcdefghi AbcdefghijAbcdefg - `37` + `37`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefg - `46` + `46`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc… - `13` + `13`  1 AbcdefghijAbc - `36` `18` `31` `20` `39` `12` `44` + `36` `18` `31` `20` `39` `12` `44`        1 Abcde… Abcde… Abcde… Abcd… Abcd… Abcd… Abcd… - `33` `50` `34` `26` `32` `23` `30` + `33` `50` `34` `26` `32` `23` `30`        1 Abcde… Abcde… Abcde… Abcd… Abcd… Abcd… Abcd… - `29` `21` `4` `49` `19` `25` `3` + `29` `21` `4` `49` `19` `25` `3`        1 Abcde… Abcde… Abcd Abcde… Abcd… Abcd… Abc - `6` `15` `14` `43` `48` `8` `22` + `6` `15` `14` `43` `48` `8` `22`        1 Abcdef Abcde… Abcd… Abcd… Abcde… Abcd… Abcd… - `1` `2` `45` `35` `16` `5` `47` + `1` `2` `45` `35` `16` `5` `47`        1 A Ab Abcde… Abcde… Abcde… Abcde Abcd… - `28` `24` `7` + `28` `24` `7`    1 AbcdefghijAbcdefghi… AbcdefghijAbcde… Abcde… diff --git a/tests/testthat/out/str-16-516-54.txt b/tests/testthat/out/str-16-516-54.txt index 9473997ba..ef9e28c09 100644 --- a/tests/testthat/out/str-16-516-54.txt +++ b/tests/testthat/out/str-16-516-54.txt @@ -1,30 +1,30 @@ - `28` + `28`  1 AbcdefghijAbcdefghijAbcdefgh - `34` `16` + `34` `16`   1 AbcdefghijAbcdefghijAbcdefghijAbcd AbcdefghijAbcdef - `29` + `29`  1 AbcdefghijAbcdefghijAbcdefghi - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg - `25` `42` `27` `44` `20` `14` `36` `43` + `25` `42` `27` `44` `20` `14` `36` `43`         1 Abcde… Abcde… Abcde… Abcde… Abcde… Abcd… Abcd… Abcd… - `41` `26` `45` `22` `9` `13` `32` `31` + `41` `26` `45` `22` `9` `13` `32` `31`         1 Abcdef… Abcde… Abcdef… Abcd… Abcd… Abcd… Abcd… Abcd… - `12` `19` `48` `49` `35` `3` `11` `23` + `12` `19` `48` `49` `35` `3` `11` `23`         1 Abcde… Abcde… Abcdef… Abcde… Abcd… Abc Abcd… Abcd… - `24` `40` `15` `38` `10` `46` `5` `50` + `24` `40` `15` `38` `10` `46` `5` `50`         1 Abcde… Abcde… Abcde… Abcd… Abcd… Abcde… Abcde Abcde… - `18` `21` `6` `30` `2` `7` `1` `4` + `18` `21` `6` `30` `2` `7` `1` `4`         1 Abcdef… Abcde… Abcd… Abcdef… Ab Abcd… A Abcd - `8` `17` `33` `39` `37` + `8` `17` `33` `39` `37`      1 Abcde… Abcdefg… Abcdefghij… AbcdefghijA… Abcdefghij… diff --git a/tests/testthat/out/str-17-1365-42.txt b/tests/testthat/out/str-17-1365-42.txt index 4b8eb9208..ad0ede396 100644 --- a/tests/testthat/out/str-17-1365-42.txt +++ b/tests/testthat/out/str-17-1365-42.txt @@ -1,99 +1,99 @@ - `28` + `28`  1 AbcdefghijAbcdefghijAbcdefgh - `41` + `41`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi… - `12` + `12`  1 AbcdefghijAb - `29` + `29`  1 AbcdefghijAbcdefghijAbcdefghi - `13` + `13`  1 AbcdefghijAbc - `43` + `43`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi… - `24` + `24`  1 AbcdefghijAbcdefghijAbcd - `50` + `50`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi… - `48` + `48`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi… - `35` + `35`  1 AbcdefghijAbcdefghijAbcdefghijAbcde - `44` + `44`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi… - `21` + `21`  1 AbcdefghijAbcdefghijA - `33` + `33`  1 AbcdefghijAbcdefghijAbcdefghijAbc - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi… - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi… - `34` + `34`  1 AbcdefghijAbcdefghijAbcdefghijAbcd - `25` `14` + `25` `14`   1 AbcdefghijAbcdefghijAbcde AbcdefghijAbcd - `18` + `18`  1 AbcdefghijAbcdefgh - `23` `7` `3` + `23` `7` `3`    1 AbcdefghijAbcdefghijAbc Abcdefg Abc - `42` + `42`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi… - `36` + `36`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef - `11` `2` `20` + `11` `2` `20`    1 AbcdefghijA Ab AbcdefghijAbcdefghij - `31` `1` + `31` `1`   1 AbcdefghijAbcdefghijAbcdefghijA A - `4` + `4`  1 Abcd - `38` + `38`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh - `9` `27` + `9` `27`   1 Abcdefghi AbcdefghijAbcdefghijAbcdefg - `40` + `40`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghij - `32` + `32`  1 AbcdefghijAbcdefghijAbcdefghijAb - `17` `6` + `17` `6`   1 AbcdefghijAbcdefg Abcdef - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi… - `16` `19` + `16` `19`   1 AbcdefghijAbcdef AbcdefghijAbcdefghi - `15` `22` `39` `10` `46` `5` + `15` `22` `39` `10` `46` `5`       1 Abcde… Abcde… Abcdef… Abcd… Abcde… Abcde - `30` `8` `26` `37` + `30` `8` `26` `37`     1 Abcdefghij… Abcde… Abcdefgh… Abcdefghij… diff --git a/tests/testthat/out/str-18-934-39.txt b/tests/testthat/out/str-18-934-39.txt index 5cef63645..11f36c7dd 100644 --- a/tests/testthat/out/str-18-934-39.txt +++ b/tests/testthat/out/str-18-934-39.txt @@ -1,72 +1,72 @@ - `40` + `40`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `17` `13` + `17` `13`   1 AbcdefghijAbcdefg AbcdefghijAbc - `23` + `23`  1 AbcdefghijAbcdefghijAbc - `22` `2` + `22` `2`   1 AbcdefghijAbcdefghijAb Ab - `18` `3` + `18` `3`   1 AbcdefghijAbcdefgh Abc - `29` + `29`  1 AbcdefghijAbcdefghijAbcdefghi - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `14` `19` + `14` `19`   1 AbcdefghijAbcd AbcdefghijAbcdefghi - `33` + `33`  1 AbcdefghijAbcdefghijAbcdefghijAbc - `37` + `37`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefg - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `43` + `43`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `44` + `44`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `10` + `10`  1 Abcdefghij - `31` + `31`  1 AbcdefghijAbcdefghijAbcdefghijA - `27` + `27`  1 AbcdefghijAbcdefghijAbcdefg - `34` + `34`  1 AbcdefghijAbcdefghijAbcdefghijAbcd - `35` + `35`  1 AbcdefghijAbcdefghijAbcdefghijAbcde - `41` + `41`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef… - `21` `4` `25` `38` `48` `9` + `21` `4` `25` `38` `48` `9`       1 Abcde… Abcd Abcde… Abcd… Abcd… Abcd… - `24` `26` `39` `20` `36` `42` + `24` `26` `39` `20` `36` `42`       1 Abcde… Abcde… Abcd… Abcd… Abcd… Abcd… - `16` `6` `11` `7` `12` `1` + `16` `6` `11` `7` `12` `1`       1 Abcde… Abcdef Abcd… Abcd… Abcd… A - `46` `15` `5` `8` `50` `32` + `46` `15` `5` `8` `50` `32`       1 Abcde… Abcde… Abcde Abcd… Abcd… Abcd… - `30` `49` `28` + `30` `49` `28`    1 AbcdefghijA… AbcdefghijAb… Abcdefghi… diff --git a/tests/testthat/out/str-19-565-32.txt b/tests/testthat/out/str-19-565-32.txt index b64f68dbc..7e40dece7 100644 --- a/tests/testthat/out/str-19-565-32.txt +++ b/tests/testthat/out/str-19-565-32.txt @@ -1,54 +1,54 @@ - `11` + `11`  1 AbcdefghijA - `36` + `36`  1 AbcdefghijAbcdefghijAbcdefghi… - `17` + `17`  1 AbcdefghijAbcdefg - `14` + `14`  1 AbcdefghijAbcd - `31` + `31`  1 AbcdefghijAbcdefghijAbcdefghi… - `35` + `35`  1 AbcdefghijAbcdefghijAbcdefghi… - `23` + `23`  1 AbcdefghijAbcdefghijAbc - `13` `6` + `13` `6`   1 AbcdefghijAbc Abcdef - `44` + `44`  1 AbcdefghijAbcdefghijAbcdefghi… - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefghi… - `22` `21` `18` `33` `10` + `22` `21` `18` `33` `10`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `43` `2` `46` `34` `3` + `43` `2` `46` `34` `3`      1 Abcde… Ab Abcd… Abcd… Abc - `19` `1` `38` `9` `37` + `19` `1` `38` `9` `37`      1 Abcde… A Abcd… Abcd… Abcd… - `5` `8` `25` `49` `27` + `5` `8` `25` `49` `27`      1 Abcde Abcde… Abcd… Abcd… Abcd… - `29` `15` `39` `24` `40` + `29` `15` `39` `24` `40`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `48` `26` `47` `42` `41` + `48` `26` `47` `42` `41`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `12` `28` `30` `7` `16` + `12` `28` `30` `7` `16`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `4` `50` `20` `32` + `4` `50` `20` `32`     1 Abcd Abcdefg… Abcdef… Abcdef… diff --git a/tests/testthat/out/str-20-1121-35.txt b/tests/testthat/out/str-20-1121-35.txt index 0c9136511..cba95f2b6 100644 --- a/tests/testthat/out/str-20-1121-35.txt +++ b/tests/testthat/out/str-20-1121-35.txt @@ -1,99 +1,99 @@ - `18` + `18`  1 AbcdefghijAbcdefgh - `46` + `46`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `11` + `11`  1 AbcdefghijA - `43` + `43`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `31` + `31`  1 AbcdefghijAbcdefghijAbcdefghijA - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `48` + `48`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `44` + `44`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `50` + `50`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `15` + `15`  1 AbcdefghijAbcde - `28` + `28`  1 AbcdefghijAbcdefghijAbcdefgh - `33` + `33`  1 AbcdefghijAbcdefghijAbcdefghijAbc - `13` `4` + `13` `4`   1 AbcdefghijAbc Abcd - `22` `3` + `22` `3`   1 AbcdefghijAbcdefghijAb Abc - `37` + `37`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `32` + `32`  1 AbcdefghijAbcdefghijAbcdefghijAb - `40` + `40`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `9` + `9`  1 Abcdefghi - `25` + `25`  1 AbcdefghijAbcdefghijAbcde - `16` + `16`  1 AbcdefghijAbcdef - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `23` + `23`  1 AbcdefghijAbcdefghijAbc - `21` `6` + `21` `6`   1 AbcdefghijAbcdefghijA Abcdef - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `36` + `36`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `27` + `27`  1 AbcdefghijAbcdefghijAbcdefg - `38` + `38`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `14` + `14`  1 AbcdefghijAbcd - `34` + `34`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `8` `24` `29` `1` `12` + `8` `24` `29` `1` `12`      1 Abcde… Abcdef… Abcde… A Abcd… - `2` `20` `17` `35` `5` + `2` `20` `17` `35` `5`      1 Ab Abcdef… Abcd… Abcdef… Abcde - `19` `30` `7` `26` `42` + `19` `30` `7` `26` `42`      1 Abcde… Abcdef… Abcd… Abcd… Abcde… - `41` `39` `10` + `41` `39` `10`    1 AbcdefghijAb… AbcdefghijA… Abcde… diff --git a/tests/testthat/out/str-21-446-32.txt b/tests/testthat/out/str-21-446-32.txt index 5ad3265d8..11c2a2f92 100644 --- a/tests/testthat/out/str-21-446-32.txt +++ b/tests/testthat/out/str-21-446-32.txt @@ -1,42 +1,42 @@ - `43` + `43`  1 AbcdefghijAbcdefghijAbcdefghi… - `1` `3` `15` + `1` `3` `15`    1 A Abc AbcdefghijAbcde - `28` + `28`  1 AbcdefghijAbcdefghijAbcdefgh - `12` + `12`  1 AbcdefghijAb - `46` + `46`  1 AbcdefghijAbcdefghijAbcdefghi… - `34` `31` `7` `11` `4` + `34` `31` `7` `11` `4`      1 Abcde… Abcd… Abcd… Abcd… Abcd - `44` `8` `9` `5` `36` + `44` `8` `9` `5` `36`      1 Abcde… Abcd… Abcd… Abcde Abcd… - `22` `17` `39` `18` `45` + `22` `17` `39` `18` `45`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `37` `13` `29` `6` `30` + `37` `13` `29` `6` `30`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `16` `20` `10` `19` `26` + `16` `20` `10` `19` `26`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `33` `40` `35` `48` `38` + `33` `40` `35` `48` `38`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `25` `2` `47` `42` `41` + `25` `2` `47` `42` `41`      1 Abcde… Ab Abcd… Abcd… Abcd… - `27` `14` `21` `24` `50` + `27` `14` `21` `24` `50`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `49` `23` `32` + `49` `23` `32`    1 Abcdefghi… Abcdefgh… Abcdefgh… diff --git a/tests/testthat/out/str-22-1166-31.txt b/tests/testthat/out/str-22-1166-31.txt index f7f5f198e..88fb2a832 100644 --- a/tests/testthat/out/str-22-1166-31.txt +++ b/tests/testthat/out/str-22-1166-31.txt @@ -1,114 +1,114 @@ - `37` + `37`  1 AbcdefghijAbcdefghijAbcdefgh… - `46` + `46`  1 AbcdefghijAbcdefghijAbcdefgh… - `21` `3` + `21` `3`   1 AbcdefghijAbcdefghijA Abc - `16` + `16`  1 AbcdefghijAbcdef - `39` + `39`  1 AbcdefghijAbcdefghijAbcdefgh… - `34` + `34`  1 AbcdefghijAbcdefghijAbcdefgh… - `33` + `33`  1 AbcdefghijAbcdefghijAbcdefgh… - `10` `17` + `10` `17`   1 Abcdefghij AbcdefghijAbcdefg - `19` + `19`  1 AbcdefghijAbcdefghi - `36` + `36`  1 AbcdefghijAbcdefghijAbcdefgh… - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefgh… - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefgh… - `11` + `11`  1 AbcdefghijA - `50` + `50`  1 AbcdefghijAbcdefghijAbcdefgh… - `14` + `14`  1 AbcdefghijAbcd - `29` + `29`  1 AbcdefghijAbcdefghijAbcdefghi - `44` + `44`  1 AbcdefghijAbcdefghijAbcdefgh… - `13` + `13`  1 AbcdefghijAbc - `30` + `30`  1 AbcdefghijAbcdefghijAbcdefgh… - `38` + `38`  1 AbcdefghijAbcdefghijAbcdefgh… - `32` + `32`  1 AbcdefghijAbcdefghijAbcdefgh… - `40` + `40`  1 AbcdefghijAbcdefghijAbcdefgh… - `42` + `42`  1 AbcdefghijAbcdefghijAbcdefgh… - `1` + `1`  1 A - `31` + `31`  1 AbcdefghijAbcdefghijAbcdefgh… - `41` + `41`  1 AbcdefghijAbcdefghijAbcdefgh… - `7` + `7`  1 Abcdefg - `23` + `23`  1 AbcdefghijAbcdefghijAbc - `35` + `35`  1 AbcdefghijAbcdefghijAbcdefgh… - `28` + `28`  1 AbcdefghijAbcdefghijAbcdefgh - `6` + `6`  1 Abcdef - `25` + `25`  1 AbcdefghijAbcdefghijAbcde - `2` `9` `12` + `2` `9` `12`    1 Ab Abcdefghi AbcdefghijAb - `15` `5` + `15` `5`   1 AbcdefghijAbcde Abcde - `18` + `18`  1 AbcdefghijAbcdefgh - `20` + `20`  1 AbcdefghijAbcdefghij - `27` `43` `8` `47` `4` + `27` `43` `8` `47` `4`      1 Abcd… Abcd… Abcd… Abcd… Abcd - `48` `24` `26` `22` + `48` `24` `26` `22`     1 Abcdef… Abcdef… Abcde… Abcde… diff --git a/tests/testthat/out/str-23-546-58.txt b/tests/testthat/out/str-23-546-58.txt index 749988659..10c03b38b 100644 --- a/tests/testthat/out/str-23-546-58.txt +++ b/tests/testthat/out/str-23-546-58.txt @@ -1,30 +1,30 @@ - `31` + `31`  1 AbcdefghijAbcdefghijAbcdefghijA - `39` + `39`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi - `40` + `40`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghij - `30` `10` + `30` `10`   1 AbcdefghijAbcdefghijAbcdefghij Abcdefghij - `21` `9` `16` + `21` `9` `16`    1 AbcdefghijAbcdefghijA Abcdefghi AbcdefghijAbcdef - `46` `25` `15` `24` `3` `50` `35` `1` `12` + `46` `25` `15` `24` `3` `50` `35` `1` `12`          1 Abcde… Abcde… Abcde… Abcd… Abc Abcd… Abcd… A Abcd… - `34` `48` `4` `29` `23` `37` `36` `28` `43` + `34` `48` `4` `29` `23` `37` `36` `28` `43`          1 Abcde… Abcde… Abcd Abcde… Abcd… Abcd… Abcd… Abcd… Abcd… - `11` `17` `32` `8` `41` `13` `44` `7` `38` + `11` `17` `32` `8` `41` `13` `44` `7` `38`          1 Abcde… Abcde… Abcde… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… - `26` `33` `20` `19` `2` `18` `49` `27` `47` + `26` `33` `20` `19` `2` `18` `49` `27` `47`          1 Abcde… Abcde… Abcde… Abcd… Ab Abcd… Abcd… Abcd… Abcd… - `22` `14` `6` `5` `45` `42` + `22` `14` `6` `5` `45` `42`       1 Abcdefgh… Abcdef… Abcd… Abcde AbcdefghijAb… AbcdefghijA… diff --git a/tests/testthat/out/str-24-1035-57.txt b/tests/testthat/out/str-24-1035-57.txt index e898dbf75..9ccbef2f7 100644 --- a/tests/testthat/out/str-24-1035-57.txt +++ b/tests/testthat/out/str-24-1035-57.txt @@ -1,57 +1,57 @@ - `43` + `43`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc - `21` + `21`  1 AbcdefghijAbcdefghijA - `41` + `41`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA - `48` + `48`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefgh - `22` `25` `2` + `22` `25` `2`    1 AbcdefghijAbcdefghijAb AbcdefghijAbcdefghijAbcde Ab - `8` `1` `24` `6` + `8` `1` `24` `6`     1 Abcdefgh A AbcdefghijAbcdefghijAbcd Abcdef - `39` + `39`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi - `38` + `38`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh - `20` + `20`  1 AbcdefghijAbcdefghij - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghi - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcde - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg - `12` `9` `13` + `12` `9` `13`    1 AbcdefghijAb Abcdefghi AbcdefghijAbc - `36` + `36`  1 AbcdefghijAbcdefghijAbcdefghijAbcdef - `26` + `26`  1 AbcdefghijAbcdefghijAbcdef - `44` `11` `46` `28` `7` `18` `50` `16` `29` + `44` `11` `46` `28` `7` `18` `50` `16` `29`          1 Abcde… Abcde… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… - `30` `4` `23` `17` `40` `33` `14` `27` `19` + `30` `4` `23` `17` `40` `33` `14` `27` `19`          1 Abcde… Abcd Abcde… Abcd… Abcd… Abcd… Abcd… Abcd… Abcd… - `34` `32` `3` `37` `15` `10` `5` `35` `31` + `34` `32` `3` `37` `15` `10` `5` `35` `31`          1 Abcde… Abcde… Abc Abcd… Abcd… Abcd… Abcde Abcd… Abcd… - `42` + `42`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb diff --git a/tests/testthat/out/str-25-1217-33.txt b/tests/testthat/out/str-25-1217-33.txt index a02fa8708..3e7e379b6 100644 --- a/tests/testthat/out/str-25-1217-33.txt +++ b/tests/testthat/out/str-25-1217-33.txt @@ -1,111 +1,111 @@ - `40` + `40`  1 AbcdefghijAbcdefghijAbcdefghij… - `6` + `6`  1 Abcdef - `25` `5` + `25` `5`   1 AbcdefghijAbcdefghijAbcde Abcde - `26` + `26`  1 AbcdefghijAbcdefghijAbcdef - `17` + `17`  1 AbcdefghijAbcdefg - `19` `2` + `19` `2`   1 AbcdefghijAbcdefghi Ab - `11` + `11`  1 AbcdefghijA - `34` + `34`  1 AbcdefghijAbcdefghijAbcdefghij… - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefghij… - `24` + `24`  1 AbcdefghijAbcdefghijAbcd - `22` + `22`  1 AbcdefghijAbcdefghijAb - `44` + `44`  1 AbcdefghijAbcdefghijAbcdefghij… - `35` + `35`  1 AbcdefghijAbcdefghijAbcdefghij… - `7` `4` + `7` `4`   1 Abcdefg Abcd - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefghij… - `1` + `1`  1 A - `36` + `36`  1 AbcdefghijAbcdefghijAbcdefghij… - `12` + `12`  1 AbcdefghijAb - `41` + `41`  1 AbcdefghijAbcdefghijAbcdefghij… - `39` + `39`  1 AbcdefghijAbcdefghijAbcdefghij… - `13` + `13`  1 AbcdefghijAbc - `48` + `48`  1 AbcdefghijAbcdefghijAbcdefghij… - `27` + `27`  1 AbcdefghijAbcdefghijAbcdefg - `18` + `18`  1 AbcdefghijAbcdefgh - `30` + `30`  1 AbcdefghijAbcdefghijAbcdefghij - `42` + `42`  1 AbcdefghijAbcdefghijAbcdefghij… - `28` + `28`  1 AbcdefghijAbcdefghijAbcdefgh - `3` + `3`  1 Abc - `46` + `46`  1 AbcdefghijAbcdefghijAbcdefghij… - `21` + `21`  1 AbcdefghijAbcdefghijA - `20` + `20`  1 AbcdefghijAbcdefghij - `16` + `16`  1 AbcdefghijAbcdef - `29` + `29`  1 AbcdefghijAbcdefghijAbcdefghi - `50` + `50`  1 AbcdefghijAbcdefghijAbcdefghij… - `10` `9` `8` `47` `31` + `10` `9` `8` `47` `31`      1 Abcde… Abcde… Abcd… Abcd… Abcd… - `14` `38` `33` `32` `43` + `14` `38` `33` `32` `43`      1 Abcde… Abcde… Abcd… Abcd… Abcd… - `23` `15` `37` + `23` `15` `37`    1 Abcdefghi… Abcdefg… Abcdefghij… diff --git a/tests/testthat/out/str-26-770-32.txt b/tests/testthat/out/str-26-770-32.txt index a7852c7a1..d83ca392d 100644 --- a/tests/testthat/out/str-26-770-32.txt +++ b/tests/testthat/out/str-26-770-32.txt @@ -1,75 +1,75 @@ - `43` + `43`  1 AbcdefghijAbcdefghijAbcdefghi… - `23` + `23`  1 AbcdefghijAbcdefghijAbc - `22` + `22`  1 AbcdefghijAbcdefghijAb - `11` `6` + `11` `6`   1 AbcdefghijA Abcdef - `26` + `26`  1 AbcdefghijAbcdefghijAbcdef - `48` + `48`  1 AbcdefghijAbcdefghijAbcdefghi… - `17` `7` + `17` `7`   1 AbcdefghijAbcdefg Abcdefg - `42` + `42`  1 AbcdefghijAbcdefghijAbcdefghi… - `36` + `36`  1 AbcdefghijAbcdefghijAbcdefghi… - `21` + `21`  1 AbcdefghijAbcdefghijA - `35` + `35`  1 AbcdefghijAbcdefghijAbcdefghi… - `50` + `50`  1 AbcdefghijAbcdefghijAbcdefghi… - `13` + `13`  1 AbcdefghijAbc - `19` + `19`  1 AbcdefghijAbcdefghi - `29` + `29`  1 AbcdefghijAbcdefghijAbcdefghi - `8` `15` `4` + `8` `15` `4`    1 Abcdefgh AbcdefghijAbcde Abcd - `2` + `2`  1 Ab - `27` + `27`  1 AbcdefghijAbcdefghijAbcdefg - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefghi… - `47` `30` `31` `25` `28` + `47` `30` `31` `25` `28`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `46` `12` `32` `39` `24` + `46` `12` `32` `39` `24`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `10` `45` `5` `37` `14` + `10` `45` `5` `37` `14`      1 Abcde… Abcd… Abcde Abcd… Abcd… - `40` `20` `41` `44` `33` + `40` `20` `41` `44` `33`      1 Abcde… Abcd… Abcd… Abcd… Abcd… - `18` `38` `3` `1` `34` + `18` `38` `3` `1` `34`      1 Abcde… Abcd… Abc A Abcd… - `16` `9` + `16` `9`   1 AbcdefghijAbcdef Abcdefghi diff --git a/tests/testthat/out/str-27-1439-46.txt b/tests/testthat/out/str-27-1439-46.txt index 44c1c8645..6ba806f34 100644 --- a/tests/testthat/out/str-27-1439-46.txt +++ b/tests/testthat/out/str-27-1439-46.txt @@ -1,96 +1,96 @@ - `5` `24` + `5` `24`   1 Abcde AbcdefghijAbcdefghijAbcd - `43` + `43`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc - `46` + `46`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc… - `35` + `35`  1 AbcdefghijAbcdefghijAbcdefghijAbcde - `39` + `39`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi - `18` + `18`  1 AbcdefghijAbcdefgh - `26` `8` + `26` `8`   1 AbcdefghijAbcdefghijAbcdef Abcdefgh - `27` `2` + `27` `2`   1 AbcdefghijAbcdefghijAbcdefg Ab - `50` + `50`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc… - `6` `14` + `6` `14`   1 Abcdef AbcdefghijAbcd - `29` + `29`  1 AbcdefghijAbcdefghijAbcdefghi - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc… - `9` `16` + `9` `16`   1 Abcdefghi AbcdefghijAbcdef - `36` `4` + `36` `4`   1 AbcdefghijAbcdefghijAbcdefghijAbcdef Abcd - `13` + `13`  1 AbcdefghijAbc - `41` + `41`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA - `3` `28` + `3` `28`   1 Abc AbcdefghijAbcdefghijAbcdefgh - `37` + `37`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefg - `33` + `33`  1 AbcdefghijAbcdefghijAbcdefghijAbc - `38` + `38`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh - `31` + `31`  1 AbcdefghijAbcdefghijAbcdefghijA - `34` + `34`  1 AbcdefghijAbcdefghijAbcdefghijAbcd - `19` + `19`  1 AbcdefghijAbcdefghi - `42` + `42`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb - `32` `1` + `32` `1`   1 AbcdefghijAbcdefghijAbcdefghijAb A - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc… - `15` `7` `11` + `15` `7` `11`    1 AbcdefghijAbcde Abcdefg AbcdefghijA - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc… - `23` `12` + `23` `12`   1 AbcdefghijAbcdefghijAbc AbcdefghijAb - `48` + `48`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc… - `20` `21` `44` `25` `10` `22` `30` + `20` `21` `44` `25` `10` `22` `30`        1 Abcde… Abcde… Abcde… Abcd… Abcd… Abcd… Abcd… - `40` `17` + `40` `17`   1 AbcdefghijAbcdefghijAbcdefghi… AbcdefghijAb… diff --git a/tests/testthat/out/str-28-1065-52.txt b/tests/testthat/out/str-28-1065-52.txt index 527a35106..00d2bd927 100644 --- a/tests/testthat/out/str-28-1065-52.txt +++ b/tests/testthat/out/str-28-1065-52.txt @@ -1,63 +1,63 @@ - `7` + `7`  1 Abcdefg - `44` + `44`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcd - `19` `21` + `19` `21`   1 AbcdefghijAbcdefghi AbcdefghijAbcdefghijA - `18` + `18`  1 AbcdefghijAbcdefgh - `35` + `35`  1 AbcdefghijAbcdefghijAbcdefghijAbcde - `23` + `23`  1 AbcdefghijAbcdefghijAbc - `50` + `50`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghij - `33` + `33`  1 AbcdefghijAbcdefghijAbcdefghijAbc - `37` + `37`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefg - `25` + `25`  1 AbcdefghijAbcdefghijAbcde - `26` `10` + `26` `10`   1 AbcdefghijAbcdefghijAbcdef Abcdefghij - `39` `2` + `39` `2`   1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi Ab - `47` + `47`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg - `42` + `42`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb - `14` `9` + `14` `9`   1 AbcdefghijAbcd Abcdefghi - `41` + `41`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA - `45` + `45`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcde - `6` `4` `11` `24` `43` `32` `3` `38` + `6` `4` `11` `24` `43` `32` `3` `38`         1 Abcdef Abcd Abcde… Abcde… Abcd… Abcd… Abc Abcd… - `5` `49` `27` `17` `8` `22` `40` `12` + `5` `49` `27` `17` `8` `22` `40` `12`         1 Abcde Abcde… Abcde… Abcde… Abcd… Abcd… Abcd… Abcd… - `15` `1` `28` `31` `29` `13` `48` `34` + `15` `1` `28` `31` `29` `13` `48` `34`         1 Abcde… A Abcde… Abcde… Abcd… Abcd… Abcd… Abcd… - `36` `30` `20` `16` `46` + `36` `30` `20` `16` `46`      1 Abcdefghij… Abcdefghi… Abcdef… Abcde… AbcdefghijA… diff --git a/tests/testthat/out/str-29-393-35.txt b/tests/testthat/out/str-29-393-35.txt index 6f96b53d2..b905ebf6c 100644 --- a/tests/testthat/out/str-29-393-35.txt +++ b/tests/testthat/out/str-29-393-35.txt @@ -1,36 +1,36 @@ - `38` + `38`  1 AbcdefghijAbcdefghijAbcdefghijAb… - `18` + `18`  1 AbcdefghijAbcdefgh - `23` `36` `35` `20` `44` + `23` `36` `35` `20` `44`      1 Abcde… Abcde… Abcde… Abcde… Abcd… - `19` `13` `41` `31` `7` + `19` `13` `41` `31` `7`      1 Abcde… Abcde… Abcde… Abcde… Abcd… - `11` `29` `2` `14` `26` + `11` `29` `2` `14` `26`      1 Abcde… Abcdef… Ab Abcd… Abcde… - `46` `40` `45` `9` `34` + `46` `40` `45` `9` `34`      1 Abcde… Abcde… Abcde… Abcde… Abcd… - `33` `22` `1` `17` `28` + `33` `22` `1` `17` `28`      1 Abcdef… Abcde… A Abcd… Abcde… - `10` `21` `30` `47` `49` + `10` `21` `30` `47` `49`      1 Abcde… Abcde… Abcd… Abcde… Abcde… - `6` `12` `4` `25` `32` + `6` `12` `4` `25` `32`      1 Abcdef Abcde… Abcd Abcde… Abcde… - `15` `43` `24` `48` `3` + `15` `43` `24` `48` `3`      1 Abcde… Abcdef… Abcd… Abcde… Abc - `37` `50` `42` `39` `16` + `37` `50` `42` `39` `16`      1 Abcde… Abcde… Abcde… Abcde… Abcd… - `8` `27` `5` + `8` `27` `5`    1 Abcdef… AbcdefghijAbcdefgh… Abcde diff --git a/tests/testthat/out/str-30-999-41.txt b/tests/testthat/out/str-30-999-41.txt index 0d1ba4f42..537acb419 100644 --- a/tests/testthat/out/str-30-999-41.txt +++ b/tests/testthat/out/str-30-999-41.txt @@ -1,75 +1,75 @@ - `22` `9` + `22` `9`   1 AbcdefghijAbcdefghijAb Abcdefghi - `11` `26` + `11` `26`   1 AbcdefghijA AbcdefghijAbcdefghijAbcdef - `19` `16` + `19` `16`   1 AbcdefghijAbcdefghi AbcdefghijAbcdef - `32` + `32`  1 AbcdefghijAbcdefghijAbcdefghijAb - `25` `1` + `25` `1`   1 AbcdefghijAbcdefghijAbcde A - `30` + `30`  1 AbcdefghijAbcdefghijAbcdefghij - `31` `6` + `31` `6`   1 AbcdefghijAbcdefghijAbcdefghijA Abcdef - `24` `10` + `24` `10`   1 AbcdefghijAbcdefghijAbcd Abcdefghij - `39` + `39`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi - `21` + `21`  1 AbcdefghijAbcdefghijA - `50` + `50`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh… - `7` `29` + `7` `29`   1 Abcdefg AbcdefghijAbcdefghijAbcdefghi - `12` + `12`  1 AbcdefghijAb - `46` + `46`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh… - `43` + `43`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh… - `15` + `15`  1 AbcdefghijAbcde - `35` + `35`  1 AbcdefghijAbcdefghijAbcdefghijAbcde - `20` + `20`  1 AbcdefghijAbcdefghij - `40` + `40`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh… - `49` + `49`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh… - `38` + `38`  1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh - `36` `48` `34` `3` `8` `4` + `36` `48` `34` `3` `8` `4`       1 Abcdef… Abcde… Abcde… Abc Abcd… Abcd - `27` `42` `44` `33` `45` `18` + `27` `42` `44` `33` `45` `18`       1 Abcde… Abcde… Abcde… Abcde… Abcd… Abcd… - `5` `2` `13` `47` `28` `17` + `5` `2` `13` `47` `28` `17`       1 Abcde Ab Abcde… Abcdef… Abcde… Abcd… - `37` `14` `41` `23` + `37` `14` `41` `23`     1 Abcdefghij… Abcdef… Abcdefghi… Abcdefg… diff --git a/tests/testthat/out/style-neg-false.txt b/tests/testthat/out/style-neg-false.txt index 86ec8d338..195ca25bb 100644 --- a/tests/testthat/out/style-neg-false.txt +++ b/tests/testthat/out/style-neg-false.txt @@ -1,4 +1,4 @@ - x + x  1 -0.001 2 0.01 diff --git a/tests/testthat/out/style-regular.txt b/tests/testthat/out/style-regular.txt index bb91e75f3..fe050faf3 100644 --- a/tests/testthat/out/style-regular.txt +++ b/tests/testthat/out/style-regular.txt @@ -1,4 +1,4 @@ - x + x  1 -0.001 2 0.01 diff --git a/tests/testthat/out/style-subtle-false.txt b/tests/testthat/out/style-subtle-false.txt index 558f6843b..66f07f03c 100644 --- a/tests/testthat/out/style-subtle-false.txt +++ b/tests/testthat/out/style-subtle-false.txt @@ -1,4 +1,4 @@ - x + x  1 -0.001 2 0.01 diff --git a/tests/testthat/out/style-subtle-neg-false.txt b/tests/testthat/out/style-subtle-neg-false.txt index 0d6b7fe44..df3dda707 100644 --- a/tests/testthat/out/style-subtle-neg-false.txt +++ b/tests/testthat/out/style-subtle-neg-false.txt @@ -1,4 +1,4 @@ - x + x  1 -0.001 2 0.01 diff --git a/tests/testthat/out/style-subtle-num-true.txt b/tests/testthat/out/style-subtle-num-true.txt index 7b51cfdb6..2e1cc9ab6 100644 --- a/tests/testthat/out/style-subtle-num-true.txt +++ b/tests/testthat/out/style-subtle-num-true.txt @@ -1,4 +1,4 @@ - x + x  1 -0.001 2 0.01 diff --git a/tests/testthat/out/tibble-all--30.txt b/tests/testthat/out/tibble-all--30.txt index 389bece04..08b71de34 100644 --- a/tests/testthat/out/tibble-all--30.txt +++ b/tests/testthat/out/tibble-all--30.txt @@ -1,4 +1,4 @@ - a b c d + a b c d     1 1 1 TRUE a 2 2.5 2 FALSE b diff --git a/tests/testthat/out/tibble-all--300-20.txt b/tests/testthat/out/tibble-all--300-20.txt index a3d12b9f2..79b2cf140 100644 --- a/tests/testthat/out/tibble-all--300-20.txt +++ b/tests/testthat/out/tibble-all--300-20.txt @@ -1,29 +1,29 @@ - a b c + a b c    1 1 1 TRUE 2 2.5 2 FALSE 3 NA NA NA - d e + d e   1 a a 2 b b 3 NA NA - f + f  1 2015-12-10 2 2015-12-11 3 NA - g + g  1 2015-12-09 10:51:… 2 2015-12-09 10:51:… 3 NA - h + h  1  2  3  - i + i  1  2  diff --git a/tests/testthat/out/tibble-all--300-30.txt b/tests/testthat/out/tibble-all--300-30.txt index 4bf7bd135..43c903e0b 100644 --- a/tests/testthat/out/tibble-all--300-30.txt +++ b/tests/testthat/out/tibble-all--300-30.txt @@ -1,19 +1,19 @@ - a b c d + a b c d     1 1 1 TRUE a 2 2.5 2 FALSE b 3 NA NA NA NA - e f + e f   1 a 2015-12-10 2 b 2015-12-11 3 NA NA - g + g  1 2015-12-09 10:51:35 2 2015-12-09 10:51:36 3 NA - h i + h i   1   2   diff --git a/tests/testthat/out/tibble-all--300-40.txt b/tests/testthat/out/tibble-all--300-40.txt index e9d18b56d..f1ce15288 100644 --- a/tests/testthat/out/tibble-all--300-40.txt +++ b/tests/testthat/out/tibble-all--300-40.txt @@ -1,14 +1,14 @@ - a b c d e + a b c d e      1 1 1 TRUE a a 2 2.5 2 FALSE b b 3 NA NA NA NA NA - f g + f g   1 2015-12-10 2015-12-09 10:51:35 2 2015-12-11 2015-12-09 10:51:36 3 NA NA - h i + h i   1   2   diff --git a/tests/testthat/out/tibble-all--300-50.txt b/tests/testthat/out/tibble-all--300-50.txt index d9ca703c5..2f68c8143 100644 --- a/tests/testthat/out/tibble-all--300-50.txt +++ b/tests/testthat/out/tibble-all--300-50.txt @@ -1,9 +1,9 @@ - a b c d e f + a b c d e f       1 1 1 TRUE a a 2015-12-10 2 2.5 2 FALSE b b 2015-12-11 3 NA NA NA NA NA NA - g h i + g h i    1 2015-12-09 10:51:35   2 2015-12-09 10:51:36   diff --git a/tests/testthat/out/tibble-all--300-60.txt b/tests/testthat/out/tibble-all--300-60.txt index d9ca703c5..2f68c8143 100644 --- a/tests/testthat/out/tibble-all--300-60.txt +++ b/tests/testthat/out/tibble-all--300-60.txt @@ -1,9 +1,9 @@ - a b c d e f + a b c d e f       1 1 1 TRUE a a 2015-12-10 2 2.5 2 FALSE b b 2015-12-11 3 NA NA NA NA NA NA - g h i + g h i    1 2015-12-09 10:51:35   2 2015-12-09 10:51:36   diff --git a/tests/testthat/out/tibble-all--300-70.txt b/tests/testthat/out/tibble-all--300-70.txt index 0e23b8b3c..d00dc59bc 100644 --- a/tests/testthat/out/tibble-all--300-70.txt +++ b/tests/testthat/out/tibble-all--300-70.txt @@ -1,9 +1,9 @@ - a b c d e f g + a b c d e f g        1 1 1 TRUE a a 2015-12-10 2015-12-09 10:51:35 2 2.5 2 FALSE b b 2015-12-11 2015-12-09 10:51:36 3 NA NA NA NA NA NA NA - h i + h i   1   2   diff --git a/tests/testthat/out/tibble-all--300.txt b/tests/testthat/out/tibble-all--300.txt index 254e6a27a..58b160f7a 100644 --- a/tests/testthat/out/tibble-all--300.txt +++ b/tests/testthat/out/tibble-all--300.txt @@ -1,9 +1,9 @@ - a b c d e f g h + a b c d e f g h         1 1 1 TRUE a a 2015-12-10 2015-12-09 10:51:35  2 2.5 2 FALSE b b 2015-12-11 2015-12-09 10:51:36  3 NA NA NA NA NA NA NA  - i + i  1  2  diff --git a/tests/testthat/out/tibble-col-empty.txt b/tests/testthat/out/tibble-col-empty.txt index 01037c49b..993fa375a 100644 --- a/tests/testthat/out/tibble-col-empty.txt +++ b/tests/testthat/out/tibble-col-empty.txt @@ -1,4 +1,4 @@ - a b$c $d $e + a b$c $d $e     1 1 4 7 2 2 5 8 diff --git a/tests/testthat/out/tibble-col-nested.txt b/tests/testthat/out/tibble-col-nested.txt index c0d62627c..7f84bbe0a 100644 --- a/tests/testthat/out/tibble-col-nested.txt +++ b/tests/testthat/out/tibble-col-nested.txt @@ -1,4 +1,4 @@ - a b$c $d $e$f $$g + a b$c $d $e$f $$g      1 1 4 7 10 13 2 2 5 8 11 14 diff --git a/tests/testthat/out/tibble-col.txt b/tests/testthat/out/tibble-col.txt index 4a4742af4..71da3c5f1 100644 --- a/tests/testthat/out/tibble-col.txt +++ b/tests/testthat/out/tibble-col.txt @@ -1,4 +1,4 @@ - a b$c $d + a b$c $d    1 1 4 7 2 2 5 8 diff --git a/tests/testthat/out/tibble-iris-3-20.txt b/tests/testthat/out/tibble-iris-3-20.txt index eb9e67771..09c0dab76 100644 --- a/tests/testthat/out/tibble-iris-3-20.txt +++ b/tests/testthat/out/tibble-iris-3-20.txt @@ -1,4 +1,4 @@ - Sepal.Length + Sepal.Length  1 5.1 2 4.9 diff --git a/tests/testthat/out/tibble-iris-5-30.txt b/tests/testthat/out/tibble-iris-5-30.txt index 81051a636..2e733b3d0 100644 --- a/tests/testthat/out/tibble-iris-5-30.txt +++ b/tests/testthat/out/tibble-iris-5-30.txt @@ -1,4 +1,4 @@ - Sepal.Length Sepal.Width + Sepal.Length Sepal.Width   1 5.1 3.5 2 4.9 3 diff --git a/tests/testthat/out/tibble-mtcars-8-30.txt b/tests/testthat/out/tibble-mtcars-8-30.txt index 10441f210..b1f8f27d4 100644 --- a/tests/testthat/out/tibble-mtcars-8-30.txt +++ b/tests/testthat/out/tibble-mtcars-8-30.txt @@ -1,4 +1,4 @@ - mpg cyl disp hp + mpg cyl disp hp *     1 21 6 160 110 2 21 6 160 110 diff --git a/tests/testthat/out/tibble-newline.txt b/tests/testthat/out/tibble-newline.txt index 480f802c2..a609aff5f 100644 --- a/tests/testthat/out/tibble-newline.txt +++ b/tests/testthat/out/tibble-newline.txt @@ -1,4 +1,4 @@ - `\n` `\r` + `\n` `\r`   1 "\n" "\n" 2 "\"" "\n" diff --git a/tests/testthat/out/tibble-non-syntactic.txt b/tests/testthat/out/tibble-non-syntactic.txt index bffc2d124..c965a6f18 100644 --- a/tests/testthat/out/tibble-non-syntactic.txt +++ b/tests/testthat/out/tibble-non-syntactic.txt @@ -1,3 +1,3 @@ - `mean(x)` `var(x)` + `mean(x)` `var(x)`   1 5 3 diff --git a/tests/testthat/out/tibble-space.txt b/tests/testthat/out/tibble-space.txt index d6c9818fb..3beed7685 100644 --- a/tests/testthat/out/tibble-space.txt +++ b/tests/testthat/out/tibble-space.txt @@ -1,4 +1,4 @@ - a + a  1 "" 2 " " diff --git a/tests/testthat/out/title-crayon.txt b/tests/testthat/out/title-crayon.txt index 6f3cb5f8f..957be6925 100644 --- a/tests/testthat/out/title-crayon.txt +++ b/tests/testthat/out/title-crayon.txt @@ -1,4 +1,4 @@ - crayon + crayon  10 100 diff --git a/tests/testthat/out/title-fifteen.txt b/tests/testthat/out/title-fifteen.txt index e2ea25f55..f2802d8d0 100644 --- a/tests/testthat/out/title-fifteen.txt +++ b/tests/testthat/out/title-fifteen.txt @@ -1,4 +1,4 @@ -exactly_fifteen +exactly_fifteen  10 100 diff --git a/tests/testthat/out/title-longer.txt b/tests/testthat/out/title-longer.txt index 1b81c0f07..574b43b15 100644 --- a/tests/testthat/out/title-longer.txt +++ b/tests/testthat/out/title-longer.txt @@ -1,4 +1,4 @@ -somewhat_wider +somewhat_wider  10 100 diff --git a/tests/testthat/out/title-short.txt b/tests/testthat/out/title-short.txt index bda248c78..a205609e7 100644 --- a/tests/testthat/out/title-short.txt +++ b/tests/testthat/out/title-short.txt @@ -1,4 +1,4 @@ - short + short  10 100 diff --git a/tests/testthat/out/title-too-long.txt b/tests/testthat/out/title-too-long.txt index 0eda2548f..3006e84b8 100644 --- a/tests/testthat/out/title-too-long.txt +++ b/tests/testthat/out/title-too-long.txt @@ -1,4 +1,4 @@ -absolutely_breaki… +absolutely_breaki…  10 100 diff --git a/tests/testthat/out/utf8.txt b/tests/testthat/out/utf8.txt index be22e9246..2c046f6be 100644 --- a/tests/testthat/out/utf8.txt +++ b/tests/testthat/out/utf8.txt @@ -1,4 +1,4 @@ - chars desc + chars desc    1 "\u0001\u001f" C0 control code  2 "\a\b\f\n\r\t" Named control code diff --git a/tests/testthat/test-format_character.R b/tests/testthat/test-format_character.R index 55e149528..0cae95b95 100644 --- a/tests/testthat/test-format_character.R +++ b/tests/testthat/test-format_character.R @@ -1,96 +1,92 @@ -context("format_character") - -withr::with_options(list(pillar.bold = TRUE), { - chartype_frame <- function() { - chars <- character() - desc <- character() - - chars[1] <- "\u0001\u001f" - desc[1] <- "C0 control code" - - chars[2] <- "\a\b\f\n\r\t" - desc[2] <- "Named control code" - - chars[3] <- "abcdefuvwxyz" - desc[3] <- "ASCII" - - chars[4] <- "\u0080\u009f" - desc[4] <- "C1 control code" - - chars[5] <- paste0( - "\u00a0\u00a1\u00a2\u00a3\u00a4\u00a5", - "\u00fa\u00fb\u00fc\u00fd\u00fe\u00ff" - ) - desc[5] <- "Latin-1" - - chars[6] <- paste0( - "\u0100\u0101\u0102\u0103\u0104\u0105", - "\u0106\u0107\u0108\u0109\u010a\u010b" - ) - desc[6] <- "Unicode" - - chars[7] <- "\uff01\uff02\uff03\uff04\uff05\uff06" - desc[7] <- "Unicode wide" - - chars[8] <- "\ue00\u2029" - desc[8] <- "Unicode control" - - chars[9] <- paste0( - "x\u00adx\u200bx\u200cx\u200dx\u200ex\u200f", - "x\u034fx\ufeffx", intToUtf8(0xE0001), "x", - intToUtf8(0xE0020), "x", intToUtf8(0xE01EF), "x" - ) - desc[9] <- "Unicode ignorable" - - chars[10] <- paste0( - "a\u0300a\u0301a\u0302a\u0303a\u0304a\u0305", - "a\u0306a\u0307a\u0308a\u0309a\u030aa\u030b" - ) - desc[10] <- "Unicode mark" - - chars[11] <- paste0( - intToUtf8(0x1F600), intToUtf8(0x1F601), - intToUtf8(0x1F602), intToUtf8(0x1F603), - intToUtf8(0x1F604), intToUtf8(0x1F483) - ) - desc[11] <- "Emoji" - - chars[12] <- paste0("x", intToUtf8(0x10ffff), "x") - desc[12] <- "Unassigned" - - chars[13] <- "\xfd\xfe\xff" - desc[13] <- "Invalid" - - chars[14] <- "\\" - desc[14] <- "Backslash" - - chars[15] <- '"' - desc[15] <- "Quote" - - Encoding(chars) <- "UTF-8" - - data.frame(chars, desc, stringsAsFactors = FALSE) - } - - test_that("output test", { - expect_pillar_output(letters[1:5], filename = "letters.txt") - expect_pillar_output(paste(letters, collapse = ""), filename = "letters-long.txt") - expect_pillar_output(paste(letters, collapse = ""), width = 10, filename = "letters-long-10.txt") - expect_pillar_output(paste(letters, collapse = ""), width = 3, filename = "letters-long-03.txt") - expect_pillar_output(c(""), width = 5, filename = "spaces0.txt") - expect_pillar_output(c(" "), width = 5, filename = "spaces.txt") - expect_pillar_output(c(" a"), width = 5, filename = "spaces2.txt") - expect_pillar_output(c("a "), width = 5, filename = "spaces3.txt") - expect_pillar_output(c("a b"), width = 5, filename = "spaces4.txt") - - skip_on_os("windows") - expect_pillar_output("\u6210\u4ea4\u65e5", title = "\u6210\u4ea4", filename = "deal1.txt") - expect_pillar_output("\u6210\u4ea4", title = "\u6210\u4ea4\u65e5", filename = "deal2.txt") - expect_pillar_output(1L, title = "\u6210\u4ea4\u65e5", filename = "deal3.txt") - - # Spurious warnings on Windows - suppressWarnings( - expect_pillar_output(xf = colonnade(chartype_frame()), width = 50, filename = "utf8.txt") - ) - }) -}) # withr::with_options(list(pillar.bold = TRUE), { +chartype_frame <- function() { + chars <- character() + desc <- character() + + chars[1] <- "\u0001\u001f" + desc[1] <- "C0 control code" + + chars[2] <- "\a\b\f\n\r\t" + desc[2] <- "Named control code" + + chars[3] <- "abcdefuvwxyz" + desc[3] <- "ASCII" + + chars[4] <- "\u0080\u009f" + desc[4] <- "C1 control code" + + chars[5] <- paste0( + "\u00a0\u00a1\u00a2\u00a3\u00a4\u00a5", + "\u00fa\u00fb\u00fc\u00fd\u00fe\u00ff" + ) + desc[5] <- "Latin-1" + + chars[6] <- paste0( + "\u0100\u0101\u0102\u0103\u0104\u0105", + "\u0106\u0107\u0108\u0109\u010a\u010b" + ) + desc[6] <- "Unicode" + + chars[7] <- "\uff01\uff02\uff03\uff04\uff05\uff06" + desc[7] <- "Unicode wide" + + chars[8] <- "\ue00\u2029" + desc[8] <- "Unicode control" + + chars[9] <- paste0( + "x\u00adx\u200bx\u200cx\u200dx\u200ex\u200f", + "x\u034fx\ufeffx", intToUtf8(0xE0001), "x", + intToUtf8(0xE0020), "x", intToUtf8(0xE01EF), "x" + ) + desc[9] <- "Unicode ignorable" + + chars[10] <- paste0( + "a\u0300a\u0301a\u0302a\u0303a\u0304a\u0305", + "a\u0306a\u0307a\u0308a\u0309a\u030aa\u030b" + ) + desc[10] <- "Unicode mark" + + chars[11] <- paste0( + intToUtf8(0x1F600), intToUtf8(0x1F601), + intToUtf8(0x1F602), intToUtf8(0x1F603), + intToUtf8(0x1F604), intToUtf8(0x1F483) + ) + desc[11] <- "Emoji" + + chars[12] <- paste0("x", intToUtf8(0x10ffff), "x") + desc[12] <- "Unassigned" + + chars[13] <- "\xfd\xfe\xff" + desc[13] <- "Invalid" + + chars[14] <- "\\" + desc[14] <- "Backslash" + + chars[15] <- '"' + desc[15] <- "Quote" + + Encoding(chars) <- "UTF-8" + + data.frame(chars, desc, stringsAsFactors = FALSE) +} + +test_that("output test", { + expect_pillar_output(letters[1:5], filename = "letters.txt") + expect_pillar_output(paste(letters, collapse = ""), filename = "letters-long.txt") + expect_pillar_output(paste(letters, collapse = ""), width = 10, filename = "letters-long-10.txt") + expect_pillar_output(paste(letters, collapse = ""), width = 3, filename = "letters-long-03.txt") + expect_pillar_output(c(""), width = 5, filename = "spaces0.txt") + expect_pillar_output(c(" "), width = 5, filename = "spaces.txt") + expect_pillar_output(c(" a"), width = 5, filename = "spaces2.txt") + expect_pillar_output(c("a "), width = 5, filename = "spaces3.txt") + expect_pillar_output(c("a b"), width = 5, filename = "spaces4.txt") + + skip_on_os("windows") + expect_pillar_output("\u6210\u4ea4\u65e5", title = "\u6210\u4ea4", filename = "deal1.txt") + expect_pillar_output("\u6210\u4ea4", title = "\u6210\u4ea4\u65e5", filename = "deal2.txt") + expect_pillar_output(1L, title = "\u6210\u4ea4\u65e5", filename = "deal3.txt") + + # Spurious warnings on Windows + suppressWarnings( + expect_pillar_output(xf = colonnade(chartype_frame()), width = 50, filename = "utf8.txt") + ) +}) diff --git a/tests/testthat/test-format_multi.R b/tests/testthat/test-format_multi.R index 4460d09a5..075fcb5d7 100644 --- a/tests/testthat/test-format_multi.R +++ b/tests/testthat/test-format_multi.R @@ -1,468 +1,464 @@ -context("format_multi") +test_that("output test", { + x <- list(column_zero_one = 1:3 + 0.23, col_02 = letters[1:3], col_03 = factor(letters[1:3]), col_04 = ordered(letters[1:3])) + expect_pillar_output(xf = colonnade(x, width = 4), filename = "multi-04.txt") + expect_pillar_output(xf = colonnade(x, width = 5), filename = "multi-05.txt") + expect_pillar_output(xf = colonnade(x, width = 6), filename = "multi-06.txt") + expect_pillar_output(xf = colonnade(x, width = 7), filename = "multi-07.txt") + expect_pillar_output(xf = colonnade(x, width = 8), filename = "multi-08.txt") + expect_pillar_output(xf = colonnade(x, width = 9), filename = "multi-09.txt") + expect_pillar_output(xf = colonnade(x, width = 10), filename = "multi-10.txt") + expect_pillar_output(xf = colonnade(x, width = 11), filename = "multi-11.txt") + expect_pillar_output(xf = colonnade(x, width = 12), filename = "multi-12.txt") + expect_pillar_output(xf = colonnade(x, width = 13), filename = "multi-13.txt") + expect_pillar_output(xf = colonnade(x, width = 14), filename = "multi-14.txt") + expect_pillar_output(xf = colonnade(x, width = 15), filename = "multi-15.txt") + expect_pillar_output(xf = colonnade(x, width = 16), filename = "multi-16.txt") + expect_pillar_output(xf = colonnade(x, width = 17), filename = "multi-17.txt") + expect_pillar_output(xf = colonnade(x, width = 18), filename = "multi-18.txt") + expect_pillar_output(xf = colonnade(x, width = 19), filename = "multi-19.txt") + expect_pillar_output(xf = colonnade(x, width = 20), filename = "multi-20.txt") + expect_pillar_output(xf = colonnade(x, width = 21), filename = "multi-21.txt") + expect_pillar_output(xf = colonnade(x, width = 22), filename = "multi-22.txt") + expect_pillar_output(xf = colonnade(x, width = 23), filename = "multi-23.txt") + expect_pillar_output(xf = colonnade(x, width = 24), filename = "multi-24.txt") + expect_pillar_output(xf = colonnade(x, width = 25), filename = "multi-25.txt") + expect_pillar_output(xf = colonnade(x, width = 26), filename = "multi-26.txt") + expect_pillar_output(xf = colonnade(x, width = 27), filename = "multi-27.txt") + expect_pillar_output(xf = colonnade(x, width = 28), filename = "multi-28.txt") + expect_pillar_output(xf = colonnade(x, width = 29), filename = "multi-29.txt") + expect_pillar_output(xf = colonnade(x, width = 30), filename = "multi-30.txt") + expect_pillar_output(xf = colonnade(x, width = 31), filename = "multi-31.txt") + expect_pillar_output(xf = colonnade(x, width = 32), filename = "multi-32.txt") + expect_pillar_output(xf = colonnade(x, width = 33), filename = "multi-33.txt") + expect_pillar_output(xf = colonnade(x, width = 34), filename = "multi-34.txt") + expect_pillar_output(xf = colonnade(x, width = 35), filename = "multi-35.txt") + expect_pillar_output(xf = colonnade(x, width = 36), filename = "multi-36.txt") + expect_pillar_output(xf = colonnade(x, width = 37), filename = "multi-37.txt") + expect_pillar_output(xf = colonnade(x, width = 38), filename = "multi-38.txt") + expect_pillar_output(xf = colonnade(x, width = 39), filename = "multi-39.txt") + expect_pillar_output(xf = colonnade(x, width = Inf), filename = "multi-inf.txt") -withr::with_options(list(pillar.bold = TRUE), { - test_that("output test", { - x <- list(column_zero_one = 1:3 + 0.23, col_02 = letters[1:3], col_03 = factor(letters[1:3]), col_04 = ordered(letters[1:3])) - expect_pillar_output(xf = colonnade(x, width = 4), filename = "multi-04.txt") - expect_pillar_output(xf = colonnade(x, width = 5), filename = "multi-05.txt") - expect_pillar_output(xf = colonnade(x, width = 6), filename = "multi-06.txt") - expect_pillar_output(xf = colonnade(x, width = 7), filename = "multi-07.txt") - expect_pillar_output(xf = colonnade(x, width = 8), filename = "multi-08.txt") - expect_pillar_output(xf = colonnade(x, width = 9), filename = "multi-09.txt") - expect_pillar_output(xf = colonnade(x, width = 10), filename = "multi-10.txt") - expect_pillar_output(xf = colonnade(x, width = 11), filename = "multi-11.txt") - expect_pillar_output(xf = colonnade(x, width = 12), filename = "multi-12.txt") - expect_pillar_output(xf = colonnade(x, width = 13), filename = "multi-13.txt") - expect_pillar_output(xf = colonnade(x, width = 14), filename = "multi-14.txt") - expect_pillar_output(xf = colonnade(x, width = 15), filename = "multi-15.txt") - expect_pillar_output(xf = colonnade(x, width = 16), filename = "multi-16.txt") - expect_pillar_output(xf = colonnade(x, width = 17), filename = "multi-17.txt") - expect_pillar_output(xf = colonnade(x, width = 18), filename = "multi-18.txt") - expect_pillar_output(xf = colonnade(x, width = 19), filename = "multi-19.txt") - expect_pillar_output(xf = colonnade(x, width = 20), filename = "multi-20.txt") - expect_pillar_output(xf = colonnade(x, width = 21), filename = "multi-21.txt") - expect_pillar_output(xf = colonnade(x, width = 22), filename = "multi-22.txt") - expect_pillar_output(xf = colonnade(x, width = 23), filename = "multi-23.txt") - expect_pillar_output(xf = colonnade(x, width = 24), filename = "multi-24.txt") - expect_pillar_output(xf = colonnade(x, width = 25), filename = "multi-25.txt") - expect_pillar_output(xf = colonnade(x, width = 26), filename = "multi-26.txt") - expect_pillar_output(xf = colonnade(x, width = 27), filename = "multi-27.txt") - expect_pillar_output(xf = colonnade(x, width = 28), filename = "multi-28.txt") - expect_pillar_output(xf = colonnade(x, width = 29), filename = "multi-29.txt") - expect_pillar_output(xf = colonnade(x, width = 30), filename = "multi-30.txt") - expect_pillar_output(xf = colonnade(x, width = 31), filename = "multi-31.txt") - expect_pillar_output(xf = colonnade(x, width = 32), filename = "multi-32.txt") - expect_pillar_output(xf = colonnade(x, width = 33), filename = "multi-33.txt") - expect_pillar_output(xf = colonnade(x, width = 34), filename = "multi-34.txt") - expect_pillar_output(xf = colonnade(x, width = 35), filename = "multi-35.txt") - expect_pillar_output(xf = colonnade(x, width = 36), filename = "multi-36.txt") - expect_pillar_output(xf = colonnade(x, width = 37), filename = "multi-37.txt") - expect_pillar_output(xf = colonnade(x, width = 38), filename = "multi-38.txt") - expect_pillar_output(xf = colonnade(x, width = 39), filename = "multi-39.txt") - expect_pillar_output(xf = colonnade(x, width = Inf), filename = "multi-inf.txt") + expect_pillar_output( + xf = colonnade( + rep(list(paste(letters, collapse = " ")), 4), + width = Inf + ), + filename = "letters-inf.txt" + ) + # Spurious warnings on Windows + suppressWarnings( expect_pillar_output( - xf = colonnade( - rep(list(paste(letters, collapse = " ")), 4), - width = Inf - ), - filename = "letters-inf.txt" + xf = new_vertical(extra_cols_impl(squeeze_impl(colonnade(x), width = 10))), + filename = "multi-extra-10.txt" ) + ) - # Spurious warnings on Windows - suppressWarnings( - expect_pillar_output( - xf = new_vertical(extra_cols_impl(squeeze_impl(colonnade(x), width = 10))), - filename = "multi-extra-10.txt" - ) + suppressWarnings( + expect_pillar_output( + xf = new_vertical(extra_cols_impl(squeeze_impl(colonnade(x), width = 20))), + filename = "multi-extra-20.txt" ) + ) - suppressWarnings( - expect_pillar_output( - xf = new_vertical(extra_cols_impl(squeeze_impl(colonnade(x), width = 20))), - filename = "multi-extra-20.txt" - ) + suppressWarnings( + expect_pillar_output( + xf = new_vertical(extra_cols_impl(squeeze_impl(colonnade(x), width = 30))), + filename = "multi-extra-30.txt" ) + ) - suppressWarnings( - expect_pillar_output( - xf = new_vertical(extra_cols_impl(squeeze_impl(colonnade(x), width = 30))), - filename = "multi-extra-30.txt" - ) + suppressWarnings( + expect_pillar_output( + xf = new_vertical(extra_cols_impl(squeeze_impl(colonnade(x), width = 35))), + filename = "multi-extra-35.txt" ) + ) - suppressWarnings( - expect_pillar_output( - xf = new_vertical(extra_cols_impl(squeeze_impl(colonnade(x), width = 35))), - filename = "multi-extra-35.txt" - ) - ) + expect_pillar_output( + xf = new_vertical(extra_cols_impl(squeeze_impl(colonnade(x), width = 40))), + filename = "multi-extra-40.txt" + ) +}) - expect_pillar_output( - xf = new_vertical(extra_cols_impl(squeeze_impl(colonnade(x), width = 40))), - filename = "multi-extra-40.txt" - ) - }) +test_that("tests from tibble", { + expect_pillar_output( + crayon = FALSE, + xf = colonnade(mtcars[1:8, ], has_row_id = "*", width = 30), + filename = "tibble-mtcars-8-30.txt" + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(iris[1:5, ], width = 30), + filename = "tibble-iris-5-30.txt" + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(iris[1:3, ], width = 20), + filename = "tibble-iris-3-20.txt" + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(df_all, width = 30), + filename = "tibble-all--30.txt" + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(df_all, width = 300), + filename = "tibble-all--300.txt" + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(df_all, width = 300), + output_width = 70L, + filename = "tibble-all--300-70.txt" + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(df_all, width = 300), + output_width = 60L, + filename = "tibble-all--300-60.txt" + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(df_all, width = 300), + output_width = 50L, + filename = "tibble-all--300-50.txt" + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(df_all, width = 300), + output_width = 40L, + filename = "tibble-all--300-40.txt" + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(df_all, width = 300), + output_width = 30L, + filename = "tibble-all--300-30.txt" + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(df_all, width = 300), + output_width = 20L, + filename = "tibble-all--300-20.txt" + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(list(`\n` = c("\n", '"'), `\r` = factor("\n")), width = 30), + filename = "tibble-newline.txt" + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(list(a = c("", " ", "a ", " a")), width = 30), + filename = "tibble-space.txt" + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(list("mean(x)" = 5, "var(x)" = 3), width = 30), + filename = "tibble-non-syntactic.txt" + ) +}) - test_that("tests from tibble", { - expect_pillar_output( - crayon = FALSE, - xf = colonnade(mtcars[1:8, ], has_row_id = "*", width = 30), - filename = "tibble-mtcars-8-30.txt" - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(iris[1:5, ], width = 30), - filename = "tibble-iris-5-30.txt" - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(iris[1:3, ], width = 20), - filename = "tibble-iris-3-20.txt" - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(df_all, width = 30), - filename = "tibble-all--30.txt" - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(df_all, width = 300), - filename = "tibble-all--300.txt" - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(df_all, width = 300), - output_width = 70L, - filename = "tibble-all--300-70.txt" - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(df_all, width = 300), - output_width = 60L, - filename = "tibble-all--300-60.txt" - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(df_all, width = 300), - output_width = 50L, - filename = "tibble-all--300-50.txt" - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(df_all, width = 300), - output_width = 40L, - filename = "tibble-all--300-40.txt" - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(df_all, width = 300), - output_width = 30L, - filename = "tibble-all--300-30.txt" - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(df_all, width = 300), - output_width = 20L, - filename = "tibble-all--300-20.txt" - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(list(`\n` = c("\n", '"'), `\r` = factor("\n")), width = 30), - filename = "tibble-newline.txt" - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(list(a = c("", " ", "a ", " a")), width = 30), - filename = "tibble-space.txt" - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(list("mean(x)" = 5, "var(x)" = 3), width = 30), - filename = "tibble-non-syntactic.txt" - ) - }) +test_that("strings with varying widths", { + # Generated by data-raw/create-chr-tests.R + expect_pillar_output( + xf = colonnade(df_str[c(12L, 33L, 36L, 7L, 41L, 3L, 18L, 23L, 13L, 44L, 14L, 16L, 25L, 21L, 19L, 45L, 43L, 29L, 1L, 30L, 22L, 27L, 15L, 47L, 28L, 31L, 10L, 50L, 4L, 40L, 42L, 8L, 6L, 9L, 24L, 48L, 38L, 37L, 34L, 49L, 46L, 2L, 32L, 35L, 39L, 11L, 17L, 5L, 26L, 20L)], width = 1382), + output_width = 59, + filename = "str-01-1382-59.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(40L, 28L, 7L, 16L, 48L, 6L, 21L, 1L, 20L, 17L, 47L, 45L, 29L, 41L, 49L, 34L, 4L, 39L, 18L, 36L, 26L, 38L, 10L, 8L, 5L, 15L, 44L, 24L, 46L, 14L, 25L, 27L, 3L, 37L, 35L, 12L, 9L, 13L, 22L, 33L, 42L, 11L, 19L, 50L, 23L, 30L, 32L, 2L, 43L, 31L)], width = 837), + output_width = 54, + filename = "str-02-837-54.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(47L, 42L, 4L, 46L, 9L, 34L, 19L, 39L, 8L, 32L, 36L, 12L, 29L, 5L, 15L, 11L, 31L, 27L, 33L, 28L, 43L, 6L, 13L, 22L, 14L, 16L, 35L, 50L, 38L, 7L, 23L, 45L, 40L, 3L, 2L, 24L, 41L, 10L, 30L, 25L, 17L, 26L, 48L, 37L, 49L, 1L, 18L, 21L, 44L, 20L)], width = 455), + output_width = 32, + filename = "str-03-455-32.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(41L, 4L, 25L, 31L, 8L, 22L, 19L, 10L, 29L, 21L, 34L, 5L, 26L, 36L, 47L, 46L, 2L, 24L, 27L, 39L, 28L, 43L, 32L, 30L, 48L, 44L, 6L, 20L, 13L, 15L, 18L, 42L, 9L, 12L, 37L, 45L, 16L, 40L, 11L, 14L, 38L, 1L, 7L, 3L, 23L, 35L, 50L, 17L, 49L, 33L)], width = 855), + output_width = 55, + filename = "str-04-855-55.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(27L, 22L, 9L, 23L, 16L, 19L, 25L, 31L, 44L, 1L, 28L, 46L, 12L, 20L, 43L, 37L, 5L, 2L, 18L, 41L, 26L, 33L, 11L, 49L, 24L, 35L, 4L, 47L, 30L, 7L, 34L, 3L, 32L, 42L, 10L, 45L, 38L, 39L, 48L, 14L, 6L, 17L, 36L, 50L, 40L, 13L, 8L, 21L, 15L, 29L)], width = 552), + output_width = 54, + filename = "str-05-552-54.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(32L, 24L, 18L, 25L, 26L, 13L, 33L, 2L, 50L, 38L, 37L, 16L, 27L, 9L, 28L, 49L, 34L, 15L, 17L, 35L, 22L, 47L, 3L, 21L, 23L, 41L, 5L, 1L, 14L, 46L, 30L, 31L, 44L, 4L, 7L, 40L, 43L, 12L, 29L, 8L, 36L, 45L, 11L, 20L, 10L, 6L, 19L, 48L, 39L, 42L)], width = 1031), + output_width = 49, + filename = "str-06-1031-49.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(44L, 34L, 49L, 9L, 15L, 16L, 1L, 10L, 40L, 29L, 26L, 22L, 4L, 43L, 20L, 17L, 46L, 33L, 35L, 32L, 2L, 12L, 8L, 37L, 23L, 39L, 7L, 18L, 36L, 42L, 6L, 30L, 19L, 25L, 5L, 21L, 47L, 50L, 28L, 11L, 31L, 14L, 24L, 27L, 45L, 41L, 38L, 3L, 13L, 48L)], width = 429), + output_width = 38, + filename = "str-07-429-38.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(21L, 26L, 8L, 22L, 41L, 24L, 13L, 5L, 47L, 37L, 4L, 42L, 19L, 34L, 11L, 43L, 38L, 3L, 33L, 20L, 31L, 2L, 18L, 48L, 27L, 44L, 9L, 35L, 30L, 6L, 49L, 10L, 1L, 16L, 46L, 29L, 12L, 14L, 45L, 36L, 15L, 39L, 50L, 23L, 17L, 28L, 7L, 32L, 40L, 25L)], width = 633), + output_width = 54, + filename = "str-08-633-54.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(23L, 49L, 13L, 37L, 3L, 25L, 36L, 4L, 9L, 7L, 27L, 48L, 12L, 10L, 50L, 14L, 38L, 39L, 46L, 22L, 28L, 8L, 21L, 44L, 32L, 40L, 31L, 1L, 29L, 34L, 35L, 33L, 19L, 15L, 41L, 20L, 47L, 18L, 16L, 45L, 6L, 5L, 24L, 26L, 43L, 11L, 42L, 30L, 17L, 2L)], width = 1496), + output_width = 39, + filename = "str-09-1496-39.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(45L, 14L, 49L, 24L, 22L, 31L, 42L, 18L, 16L, 47L, 25L, 4L, 37L, 8L, 26L, 21L, 50L, 5L, 41L, 30L, 2L, 33L, 34L, 3L, 44L, 19L, 43L, 6L, 32L, 29L, 20L, 1L, 13L, 11L, 40L, 12L, 48L, 23L, 9L, 15L, 46L, 36L, 27L, 35L, 28L, 10L, 7L, 39L, 17L, 38L)], width = 493), + output_width = 31, + filename = "str-10-493-31.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(38L, 46L, 17L, 11L, 24L, 18L, 16L, 39L, 50L, 42L, 6L, 13L, 37L, 29L, 41L, 47L, 9L, 33L, 44L, 31L, 45L, 36L, 28L, 5L, 10L, 30L, 20L, 1L, 14L, 43L, 49L, 23L, 26L, 21L, 32L, 19L, 34L, 15L, 48L, 4L, 7L, 35L, 40L, 8L, 22L, 3L, 25L, 12L, 27L, 2L)], width = 1130), + output_width = 52, + filename = "str-11-1130-52.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(17L, 28L, 29L, 27L, 20L, 31L, 43L, 30L, 32L, 48L, 10L, 50L, 13L, 12L, 36L, 21L, 46L, 33L, 25L, 35L, 1L, 5L, 16L, 34L, 18L, 42L, 3L, 11L, 40L, 26L, 37L, 7L, 39L, 6L, 4L, 19L, 8L, 45L, 14L, 24L, 23L, 2L, 47L, 9L, 49L, 41L, 38L, 22L, 44L, 15L)], width = 1310), + output_width = 58, + filename = "str-12-1310-58.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(1L, 26L, 20L, 12L, 49L, 16L, 24L, 4L, 15L, 47L, 8L, 11L, 14L, 50L, 17L, 2L, 44L, 30L, 36L, 45L, 25L, 38L, 18L, 29L, 5L, 13L, 3L, 23L, 48L, 40L, 34L, 22L, 39L, 33L, 27L, 7L, 19L, 10L, 37L, 6L, 35L, 46L, 31L, 41L, 43L, 28L, 42L, 32L, 21L, 9L)], width = 484), + output_width = 47, + filename = "str-13-484-47.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(6L, 49L, 26L, 45L, 25L, 15L, 31L, 20L, 21L, 44L, 23L, 48L, 37L, 36L, 5L, 43L, 11L, 14L, 13L, 39L, 16L, 12L, 4L, 18L, 42L, 3L, 10L, 28L, 40L, 24L, 29L, 17L, 35L, 47L, 2L, 38L, 34L, 9L, 7L, 8L, 50L, 33L, 32L, 27L, 46L, 19L, 22L, 41L, 30L, 1L)], width = 779), + output_width = 55, + filename = "str-14-779-55.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(38L, 42L, 41L, 10L, 40L, 11L, 27L, 9L, 17L, 37L, 46L, 13L, 36L, 18L, 31L, 20L, 39L, 12L, 44L, 33L, 50L, 34L, 26L, 32L, 23L, 30L, 29L, 21L, 4L, 49L, 19L, 25L, 3L, 6L, 15L, 14L, 43L, 48L, 8L, 22L, 1L, 2L, 45L, 35L, 16L, 5L, 47L, 28L, 24L, 7L)], width = 694), + output_width = 46, + filename = "str-15-694-46.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(28L, 34L, 16L, 29L, 47L, 25L, 42L, 27L, 44L, 20L, 14L, 36L, 43L, 41L, 26L, 45L, 22L, 9L, 13L, 32L, 31L, 12L, 19L, 48L, 49L, 35L, 3L, 11L, 23L, 24L, 40L, 15L, 38L, 10L, 46L, 5L, 50L, 18L, 21L, 6L, 30L, 2L, 7L, 1L, 4L, 8L, 17L, 33L, 39L, 37L)], width = 516), + output_width = 54, + filename = "str-16-516-54.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(28L, 41L, 12L, 29L, 13L, 43L, 24L, 50L, 48L, 35L, 44L, 21L, 33L, 45L, 47L, 34L, 25L, 14L, 18L, 23L, 7L, 3L, 42L, 36L, 11L, 2L, 20L, 31L, 1L, 4L, 38L, 9L, 27L, 40L, 32L, 17L, 6L, 49L, 16L, 19L, 15L, 22L, 39L, 10L, 46L, 5L, 30L, 8L, 26L, 37L)], width = 1365), + output_width = 42, + filename = "str-17-1365-42.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(40L, 17L, 13L, 23L, 22L, 2L, 18L, 3L, 29L, 45L, 14L, 19L, 33L, 37L, 47L, 43L, 44L, 10L, 31L, 27L, 34L, 35L, 41L, 21L, 4L, 25L, 38L, 48L, 9L, 24L, 26L, 39L, 20L, 36L, 42L, 16L, 6L, 11L, 7L, 12L, 1L, 46L, 15L, 5L, 8L, 50L, 32L, 30L, 49L, 28L)], width = 934), + output_width = 39, + filename = "str-18-934-39.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(11L, 36L, 17L, 14L, 31L, 35L, 23L, 13L, 6L, 44L, 45L, 22L, 21L, 18L, 33L, 10L, 43L, 2L, 46L, 34L, 3L, 19L, 1L, 38L, 9L, 37L, 5L, 8L, 25L, 49L, 27L, 29L, 15L, 39L, 24L, 40L, 48L, 26L, 47L, 42L, 41L, 12L, 28L, 30L, 7L, 16L, 4L, 50L, 20L, 32L)], width = 565), + output_width = 32, + filename = "str-19-565-32.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(18L, 46L, 11L, 43L, 31L, 47L, 48L, 44L, 50L, 15L, 28L, 33L, 13L, 4L, 22L, 3L, 37L, 32L, 40L, 9L, 25L, 16L, 45L, 23L, 21L, 6L, 49L, 36L, 27L, 38L, 14L, 34L, 8L, 24L, 29L, 1L, 12L, 2L, 20L, 17L, 35L, 5L, 19L, 30L, 7L, 26L, 42L, 41L, 39L, 10L)], width = 1121), + output_width = 35, + filename = "str-20-1121-35.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(43L, 1L, 3L, 15L, 28L, 12L, 46L, 34L, 31L, 7L, 11L, 4L, 44L, 8L, 9L, 5L, 36L, 22L, 17L, 39L, 18L, 45L, 37L, 13L, 29L, 6L, 30L, 16L, 20L, 10L, 19L, 26L, 33L, 40L, 35L, 48L, 38L, 25L, 2L, 47L, 42L, 41L, 27L, 14L, 21L, 24L, 50L, 49L, 23L, 32L)], width = 446), + output_width = 32, + filename = "str-21-446-32.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(37L, 46L, 21L, 3L, 16L, 39L, 34L, 33L, 10L, 17L, 19L, 36L, 45L, 49L, 11L, 50L, 14L, 29L, 44L, 13L, 30L, 38L, 32L, 40L, 42L, 1L, 31L, 41L, 7L, 23L, 35L, 28L, 6L, 25L, 2L, 9L, 12L, 15L, 5L, 18L, 20L, 27L, 43L, 8L, 47L, 4L, 48L, 24L, 26L, 22L)], width = 1166), + output_width = 31, + filename = "str-22-1166-31.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(31L, 39L, 40L, 30L, 10L, 21L, 9L, 16L, 46L, 25L, 15L, 24L, 3L, 50L, 35L, 1L, 12L, 34L, 48L, 4L, 29L, 23L, 37L, 36L, 28L, 43L, 11L, 17L, 32L, 8L, 41L, 13L, 44L, 7L, 38L, 26L, 33L, 20L, 19L, 2L, 18L, 49L, 27L, 47L, 22L, 14L, 6L, 5L, 45L, 42L)], width = 546), + output_width = 58, + filename = "str-23-546-58.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(43L, 21L, 41L, 48L, 22L, 25L, 2L, 8L, 1L, 24L, 6L, 39L, 38L, 20L, 49L, 45L, 47L, 12L, 9L, 13L, 36L, 26L, 44L, 11L, 46L, 28L, 7L, 18L, 50L, 16L, 29L, 30L, 4L, 23L, 17L, 40L, 33L, 14L, 27L, 19L, 34L, 32L, 3L, 37L, 15L, 10L, 5L, 35L, 31L, 42L)], width = 1035), + output_width = 57, + filename = "str-24-1035-57.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(40L, 6L, 25L, 5L, 26L, 17L, 19L, 2L, 11L, 34L, 45L, 24L, 22L, 44L, 35L, 7L, 4L, 49L, 1L, 36L, 12L, 41L, 39L, 13L, 48L, 27L, 18L, 30L, 42L, 28L, 3L, 46L, 21L, 20L, 16L, 29L, 50L, 10L, 9L, 8L, 47L, 31L, 14L, 38L, 33L, 32L, 43L, 23L, 15L, 37L)], width = 1217), + output_width = 33, + filename = "str-25-1217-33.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(43L, 23L, 22L, 11L, 6L, 26L, 48L, 17L, 7L, 42L, 36L, 21L, 35L, 50L, 13L, 19L, 29L, 8L, 15L, 4L, 2L, 27L, 49L, 47L, 30L, 31L, 25L, 28L, 46L, 12L, 32L, 39L, 24L, 10L, 45L, 5L, 37L, 14L, 40L, 20L, 41L, 44L, 33L, 18L, 38L, 3L, 1L, 34L, 16L, 9L)], width = 770), + output_width = 32, + filename = "str-26-770-32.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(5L, 24L, 43L, 46L, 35L, 39L, 18L, 26L, 8L, 27L, 2L, 50L, 6L, 14L, 29L, 47L, 9L, 16L, 36L, 4L, 13L, 41L, 3L, 28L, 37L, 33L, 38L, 31L, 34L, 19L, 42L, 32L, 1L, 45L, 15L, 7L, 11L, 49L, 23L, 12L, 48L, 20L, 21L, 44L, 25L, 10L, 22L, 30L, 40L, 17L)], width = 1439), + output_width = 46, + filename = "str-27-1439-46.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(7L, 44L, 19L, 21L, 18L, 35L, 23L, 50L, 33L, 37L, 25L, 26L, 10L, 39L, 2L, 47L, 42L, 14L, 9L, 41L, 45L, 6L, 4L, 11L, 24L, 43L, 32L, 3L, 38L, 5L, 49L, 27L, 17L, 8L, 22L, 40L, 12L, 15L, 1L, 28L, 31L, 29L, 13L, 48L, 34L, 36L, 30L, 20L, 16L, 46L)], width = 1065), + output_width = 52, + filename = "str-28-1065-52.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(38L, 18L, 23L, 36L, 35L, 20L, 44L, 19L, 13L, 41L, 31L, 7L, 11L, 29L, 2L, 14L, 26L, 46L, 40L, 45L, 9L, 34L, 33L, 22L, 1L, 17L, 28L, 10L, 21L, 30L, 47L, 49L, 6L, 12L, 4L, 25L, 32L, 15L, 43L, 24L, 48L, 3L, 37L, 50L, 42L, 39L, 16L, 8L, 27L, 5L)], width = 393), + output_width = 35, + filename = "str-29-393-35.txt" + ) + expect_pillar_output( + xf = colonnade(df_str[c(22L, 9L, 11L, 26L, 19L, 16L, 32L, 25L, 1L, 30L, 31L, 6L, 24L, 10L, 39L, 21L, 50L, 7L, 29L, 12L, 46L, 43L, 15L, 35L, 20L, 40L, 49L, 38L, 36L, 48L, 34L, 3L, 8L, 4L, 27L, 42L, 44L, 33L, 45L, 18L, 5L, 2L, 13L, 47L, 28L, 17L, 37L, 14L, 41L, 23L)], width = 999), + output_width = 41, + filename = "str-30-999-41.txt" + ) +}) - test_that("strings with varying widths", { - # Generated by data-raw/create-chr-tests.R - expect_pillar_output( - xf = colonnade(df_str[c(12L, 33L, 36L, 7L, 41L, 3L, 18L, 23L, 13L, 44L, 14L, 16L, 25L, 21L, 19L, 45L, 43L, 29L, 1L, 30L, 22L, 27L, 15L, 47L, 28L, 31L, 10L, 50L, 4L, 40L, 42L, 8L, 6L, 9L, 24L, 48L, 38L, 37L, 34L, 49L, 46L, 2L, 32L, 35L, 39L, 11L, 17L, 5L, 26L, 20L)], width = 1382), - output_width = 59, - filename = "str-01-1382-59.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(40L, 28L, 7L, 16L, 48L, 6L, 21L, 1L, 20L, 17L, 47L, 45L, 29L, 41L, 49L, 34L, 4L, 39L, 18L, 36L, 26L, 38L, 10L, 8L, 5L, 15L, 44L, 24L, 46L, 14L, 25L, 27L, 3L, 37L, 35L, 12L, 9L, 13L, 22L, 33L, 42L, 11L, 19L, 50L, 23L, 30L, 32L, 2L, 43L, 31L)], width = 837), - output_width = 54, - filename = "str-02-837-54.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(47L, 42L, 4L, 46L, 9L, 34L, 19L, 39L, 8L, 32L, 36L, 12L, 29L, 5L, 15L, 11L, 31L, 27L, 33L, 28L, 43L, 6L, 13L, 22L, 14L, 16L, 35L, 50L, 38L, 7L, 23L, 45L, 40L, 3L, 2L, 24L, 41L, 10L, 30L, 25L, 17L, 26L, 48L, 37L, 49L, 1L, 18L, 21L, 44L, 20L)], width = 455), - output_width = 32, - filename = "str-03-455-32.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(41L, 4L, 25L, 31L, 8L, 22L, 19L, 10L, 29L, 21L, 34L, 5L, 26L, 36L, 47L, 46L, 2L, 24L, 27L, 39L, 28L, 43L, 32L, 30L, 48L, 44L, 6L, 20L, 13L, 15L, 18L, 42L, 9L, 12L, 37L, 45L, 16L, 40L, 11L, 14L, 38L, 1L, 7L, 3L, 23L, 35L, 50L, 17L, 49L, 33L)], width = 855), - output_width = 55, - filename = "str-04-855-55.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(27L, 22L, 9L, 23L, 16L, 19L, 25L, 31L, 44L, 1L, 28L, 46L, 12L, 20L, 43L, 37L, 5L, 2L, 18L, 41L, 26L, 33L, 11L, 49L, 24L, 35L, 4L, 47L, 30L, 7L, 34L, 3L, 32L, 42L, 10L, 45L, 38L, 39L, 48L, 14L, 6L, 17L, 36L, 50L, 40L, 13L, 8L, 21L, 15L, 29L)], width = 552), - output_width = 54, - filename = "str-05-552-54.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(32L, 24L, 18L, 25L, 26L, 13L, 33L, 2L, 50L, 38L, 37L, 16L, 27L, 9L, 28L, 49L, 34L, 15L, 17L, 35L, 22L, 47L, 3L, 21L, 23L, 41L, 5L, 1L, 14L, 46L, 30L, 31L, 44L, 4L, 7L, 40L, 43L, 12L, 29L, 8L, 36L, 45L, 11L, 20L, 10L, 6L, 19L, 48L, 39L, 42L)], width = 1031), - output_width = 49, - filename = "str-06-1031-49.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(44L, 34L, 49L, 9L, 15L, 16L, 1L, 10L, 40L, 29L, 26L, 22L, 4L, 43L, 20L, 17L, 46L, 33L, 35L, 32L, 2L, 12L, 8L, 37L, 23L, 39L, 7L, 18L, 36L, 42L, 6L, 30L, 19L, 25L, 5L, 21L, 47L, 50L, 28L, 11L, 31L, 14L, 24L, 27L, 45L, 41L, 38L, 3L, 13L, 48L)], width = 429), - output_width = 38, - filename = "str-07-429-38.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(21L, 26L, 8L, 22L, 41L, 24L, 13L, 5L, 47L, 37L, 4L, 42L, 19L, 34L, 11L, 43L, 38L, 3L, 33L, 20L, 31L, 2L, 18L, 48L, 27L, 44L, 9L, 35L, 30L, 6L, 49L, 10L, 1L, 16L, 46L, 29L, 12L, 14L, 45L, 36L, 15L, 39L, 50L, 23L, 17L, 28L, 7L, 32L, 40L, 25L)], width = 633), - output_width = 54, - filename = "str-08-633-54.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(23L, 49L, 13L, 37L, 3L, 25L, 36L, 4L, 9L, 7L, 27L, 48L, 12L, 10L, 50L, 14L, 38L, 39L, 46L, 22L, 28L, 8L, 21L, 44L, 32L, 40L, 31L, 1L, 29L, 34L, 35L, 33L, 19L, 15L, 41L, 20L, 47L, 18L, 16L, 45L, 6L, 5L, 24L, 26L, 43L, 11L, 42L, 30L, 17L, 2L)], width = 1496), - output_width = 39, - filename = "str-09-1496-39.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(45L, 14L, 49L, 24L, 22L, 31L, 42L, 18L, 16L, 47L, 25L, 4L, 37L, 8L, 26L, 21L, 50L, 5L, 41L, 30L, 2L, 33L, 34L, 3L, 44L, 19L, 43L, 6L, 32L, 29L, 20L, 1L, 13L, 11L, 40L, 12L, 48L, 23L, 9L, 15L, 46L, 36L, 27L, 35L, 28L, 10L, 7L, 39L, 17L, 38L)], width = 493), - output_width = 31, - filename = "str-10-493-31.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(38L, 46L, 17L, 11L, 24L, 18L, 16L, 39L, 50L, 42L, 6L, 13L, 37L, 29L, 41L, 47L, 9L, 33L, 44L, 31L, 45L, 36L, 28L, 5L, 10L, 30L, 20L, 1L, 14L, 43L, 49L, 23L, 26L, 21L, 32L, 19L, 34L, 15L, 48L, 4L, 7L, 35L, 40L, 8L, 22L, 3L, 25L, 12L, 27L, 2L)], width = 1130), - output_width = 52, - filename = "str-11-1130-52.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(17L, 28L, 29L, 27L, 20L, 31L, 43L, 30L, 32L, 48L, 10L, 50L, 13L, 12L, 36L, 21L, 46L, 33L, 25L, 35L, 1L, 5L, 16L, 34L, 18L, 42L, 3L, 11L, 40L, 26L, 37L, 7L, 39L, 6L, 4L, 19L, 8L, 45L, 14L, 24L, 23L, 2L, 47L, 9L, 49L, 41L, 38L, 22L, 44L, 15L)], width = 1310), - output_width = 58, - filename = "str-12-1310-58.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(1L, 26L, 20L, 12L, 49L, 16L, 24L, 4L, 15L, 47L, 8L, 11L, 14L, 50L, 17L, 2L, 44L, 30L, 36L, 45L, 25L, 38L, 18L, 29L, 5L, 13L, 3L, 23L, 48L, 40L, 34L, 22L, 39L, 33L, 27L, 7L, 19L, 10L, 37L, 6L, 35L, 46L, 31L, 41L, 43L, 28L, 42L, 32L, 21L, 9L)], width = 484), - output_width = 47, - filename = "str-13-484-47.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(6L, 49L, 26L, 45L, 25L, 15L, 31L, 20L, 21L, 44L, 23L, 48L, 37L, 36L, 5L, 43L, 11L, 14L, 13L, 39L, 16L, 12L, 4L, 18L, 42L, 3L, 10L, 28L, 40L, 24L, 29L, 17L, 35L, 47L, 2L, 38L, 34L, 9L, 7L, 8L, 50L, 33L, 32L, 27L, 46L, 19L, 22L, 41L, 30L, 1L)], width = 779), - output_width = 55, - filename = "str-14-779-55.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(38L, 42L, 41L, 10L, 40L, 11L, 27L, 9L, 17L, 37L, 46L, 13L, 36L, 18L, 31L, 20L, 39L, 12L, 44L, 33L, 50L, 34L, 26L, 32L, 23L, 30L, 29L, 21L, 4L, 49L, 19L, 25L, 3L, 6L, 15L, 14L, 43L, 48L, 8L, 22L, 1L, 2L, 45L, 35L, 16L, 5L, 47L, 28L, 24L, 7L)], width = 694), - output_width = 46, - filename = "str-15-694-46.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(28L, 34L, 16L, 29L, 47L, 25L, 42L, 27L, 44L, 20L, 14L, 36L, 43L, 41L, 26L, 45L, 22L, 9L, 13L, 32L, 31L, 12L, 19L, 48L, 49L, 35L, 3L, 11L, 23L, 24L, 40L, 15L, 38L, 10L, 46L, 5L, 50L, 18L, 21L, 6L, 30L, 2L, 7L, 1L, 4L, 8L, 17L, 33L, 39L, 37L)], width = 516), - output_width = 54, - filename = "str-16-516-54.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(28L, 41L, 12L, 29L, 13L, 43L, 24L, 50L, 48L, 35L, 44L, 21L, 33L, 45L, 47L, 34L, 25L, 14L, 18L, 23L, 7L, 3L, 42L, 36L, 11L, 2L, 20L, 31L, 1L, 4L, 38L, 9L, 27L, 40L, 32L, 17L, 6L, 49L, 16L, 19L, 15L, 22L, 39L, 10L, 46L, 5L, 30L, 8L, 26L, 37L)], width = 1365), - output_width = 42, - filename = "str-17-1365-42.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(40L, 17L, 13L, 23L, 22L, 2L, 18L, 3L, 29L, 45L, 14L, 19L, 33L, 37L, 47L, 43L, 44L, 10L, 31L, 27L, 34L, 35L, 41L, 21L, 4L, 25L, 38L, 48L, 9L, 24L, 26L, 39L, 20L, 36L, 42L, 16L, 6L, 11L, 7L, 12L, 1L, 46L, 15L, 5L, 8L, 50L, 32L, 30L, 49L, 28L)], width = 934), - output_width = 39, - filename = "str-18-934-39.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(11L, 36L, 17L, 14L, 31L, 35L, 23L, 13L, 6L, 44L, 45L, 22L, 21L, 18L, 33L, 10L, 43L, 2L, 46L, 34L, 3L, 19L, 1L, 38L, 9L, 37L, 5L, 8L, 25L, 49L, 27L, 29L, 15L, 39L, 24L, 40L, 48L, 26L, 47L, 42L, 41L, 12L, 28L, 30L, 7L, 16L, 4L, 50L, 20L, 32L)], width = 565), - output_width = 32, - filename = "str-19-565-32.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(18L, 46L, 11L, 43L, 31L, 47L, 48L, 44L, 50L, 15L, 28L, 33L, 13L, 4L, 22L, 3L, 37L, 32L, 40L, 9L, 25L, 16L, 45L, 23L, 21L, 6L, 49L, 36L, 27L, 38L, 14L, 34L, 8L, 24L, 29L, 1L, 12L, 2L, 20L, 17L, 35L, 5L, 19L, 30L, 7L, 26L, 42L, 41L, 39L, 10L)], width = 1121), - output_width = 35, - filename = "str-20-1121-35.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(43L, 1L, 3L, 15L, 28L, 12L, 46L, 34L, 31L, 7L, 11L, 4L, 44L, 8L, 9L, 5L, 36L, 22L, 17L, 39L, 18L, 45L, 37L, 13L, 29L, 6L, 30L, 16L, 20L, 10L, 19L, 26L, 33L, 40L, 35L, 48L, 38L, 25L, 2L, 47L, 42L, 41L, 27L, 14L, 21L, 24L, 50L, 49L, 23L, 32L)], width = 446), - output_width = 32, - filename = "str-21-446-32.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(37L, 46L, 21L, 3L, 16L, 39L, 34L, 33L, 10L, 17L, 19L, 36L, 45L, 49L, 11L, 50L, 14L, 29L, 44L, 13L, 30L, 38L, 32L, 40L, 42L, 1L, 31L, 41L, 7L, 23L, 35L, 28L, 6L, 25L, 2L, 9L, 12L, 15L, 5L, 18L, 20L, 27L, 43L, 8L, 47L, 4L, 48L, 24L, 26L, 22L)], width = 1166), - output_width = 31, - filename = "str-22-1166-31.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(31L, 39L, 40L, 30L, 10L, 21L, 9L, 16L, 46L, 25L, 15L, 24L, 3L, 50L, 35L, 1L, 12L, 34L, 48L, 4L, 29L, 23L, 37L, 36L, 28L, 43L, 11L, 17L, 32L, 8L, 41L, 13L, 44L, 7L, 38L, 26L, 33L, 20L, 19L, 2L, 18L, 49L, 27L, 47L, 22L, 14L, 6L, 5L, 45L, 42L)], width = 546), - output_width = 58, - filename = "str-23-546-58.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(43L, 21L, 41L, 48L, 22L, 25L, 2L, 8L, 1L, 24L, 6L, 39L, 38L, 20L, 49L, 45L, 47L, 12L, 9L, 13L, 36L, 26L, 44L, 11L, 46L, 28L, 7L, 18L, 50L, 16L, 29L, 30L, 4L, 23L, 17L, 40L, 33L, 14L, 27L, 19L, 34L, 32L, 3L, 37L, 15L, 10L, 5L, 35L, 31L, 42L)], width = 1035), - output_width = 57, - filename = "str-24-1035-57.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(40L, 6L, 25L, 5L, 26L, 17L, 19L, 2L, 11L, 34L, 45L, 24L, 22L, 44L, 35L, 7L, 4L, 49L, 1L, 36L, 12L, 41L, 39L, 13L, 48L, 27L, 18L, 30L, 42L, 28L, 3L, 46L, 21L, 20L, 16L, 29L, 50L, 10L, 9L, 8L, 47L, 31L, 14L, 38L, 33L, 32L, 43L, 23L, 15L, 37L)], width = 1217), - output_width = 33, - filename = "str-25-1217-33.txt" - ) - expect_pillar_output( - xf = colonnade(df_str[c(43L, 23L, 22L, 11L, 6L, 26L, 48L, 17L, 7L, 42L, 36L, 21L, 35L, 50L, 13L, 19L, 29L, 8L, 15L, 4L, 2L, 27L, 49L, 47L, 30L, 31L, 25L, 28L, 46L, 12L, 32L, 39L, 24L, 10L, 45L, 5L, 37L, 14L, 40L, 20L, 41L, 44L, 33L, 18L, 38L, 3L, 1L, 34L, 16L, 9L)], width = 770), - output_width = 32, - filename = "str-26-770-32.txt" - ) +test_that("empty", { + expect_equal( + format(colonnade(list(a = character(), b = logical()), width = 30)), + structure(character(), class = "pillar_vertical") + ) + expect_equal( + format(colonnade(iris[1:5, character()], width = 30)), + structure(character(), class = "pillar_vertical") + ) +}) + +test_that("NA names", { + x <- list(`NA` = 1:3, set_to_NA = 4:6) + names(x)[[2]] <- NA_character_ + expect_pillar_output( + crayon = FALSE, + xf = colonnade(x, width = 30), + filename = "na-names.txt" + ) +}) + +test_that("sep argument", { + x <- list(sep = 1:3) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(x, width = 30), + filename = "sep.txt" + ) +}) + +test_that("without styling", { + xf <- colonnade(list(x = (10^(-3:4)) * c(-1, 1))) + + withr::with_options( + list(), expect_pillar_output( - xf = colonnade(df_str[c(5L, 24L, 43L, 46L, 35L, 39L, 18L, 26L, 8L, 27L, 2L, 50L, 6L, 14L, 29L, 47L, 9L, 16L, 36L, 4L, 13L, 41L, 3L, 28L, 37L, 33L, 38L, 31L, 34L, 19L, 42L, 32L, 1L, 45L, 15L, 7L, 11L, 49L, 23L, 12L, 48L, 20L, 21L, 44L, 25L, 10L, 22L, 30L, 40L, 17L)], width = 1439), - output_width = 46, - filename = "str-27-1439-46.txt" + xf = xf, + filename = "style-regular.txt" ) + ) + withr::with_options( + list(pillar.subtle_num = TRUE), expect_pillar_output( - xf = colonnade(df_str[c(7L, 44L, 19L, 21L, 18L, 35L, 23L, 50L, 33L, 37L, 25L, 26L, 10L, 39L, 2L, 47L, 42L, 14L, 9L, 41L, 45L, 6L, 4L, 11L, 24L, 43L, 32L, 3L, 38L, 5L, 49L, 27L, 17L, 8L, 22L, 40L, 12L, 15L, 1L, 28L, 31L, 29L, 13L, 48L, 34L, 36L, 30L, 20L, 16L, 46L)], width = 1065), - output_width = 52, - filename = "str-28-1065-52.txt" + xf = xf, + filename = "style-subtle-num-true.txt" ) + ) + withr::with_options( + list(pillar.subtle = FALSE), expect_pillar_output( - xf = colonnade(df_str[c(38L, 18L, 23L, 36L, 35L, 20L, 44L, 19L, 13L, 41L, 31L, 7L, 11L, 29L, 2L, 14L, 26L, 46L, 40L, 45L, 9L, 34L, 33L, 22L, 1L, 17L, 28L, 10L, 21L, 30L, 47L, 49L, 6L, 12L, 4L, 25L, 32L, 15L, 43L, 24L, 48L, 3L, 37L, 50L, 42L, 39L, 16L, 8L, 27L, 5L)], width = 393), - output_width = 35, - filename = "str-29-393-35.txt" + xf = xf, + filename = "style-subtle-false.txt" ) + ) + withr::with_options( + list(pillar.neg = FALSE), expect_pillar_output( - xf = colonnade(df_str[c(22L, 9L, 11L, 26L, 19L, 16L, 32L, 25L, 1L, 30L, 31L, 6L, 24L, 10L, 39L, 21L, 50L, 7L, 29L, 12L, 46L, 43L, 15L, 35L, 20L, 40L, 49L, 38L, 36L, 48L, 34L, 3L, 8L, 4L, 27L, 42L, 44L, 33L, 45L, 18L, 5L, 2L, 13L, 47L, 28L, 17L, 37L, 14L, 41L, 23L)], width = 999), - output_width = 41, - filename = "str-30-999-41.txt" - ) - }) - - test_that("empty", { - expect_equal( - format(colonnade(list(a = character(), b = logical()), width = 30)), - structure(character(), class = "pillar_vertical") - ) - expect_equal( - format(colonnade(iris[1:5, character()], width = 30)), - structure(character(), class = "pillar_vertical") + xf = xf, + filename = "style-neg-false.txt" ) - }) - - test_that("NA names", { - x <- list(`NA` = 1:3, set_to_NA = 4:6) - names(x)[[2]] <- NA_character_ + ) + withr::with_options( + list(pillar.subtle = FALSE, pillar.neg = FALSE), expect_pillar_output( - crayon = FALSE, - xf = colonnade(x, width = 30), - filename = "na-names.txt" + xf = xf, + filename = "style-subtle-neg-false.txt" ) - }) - - test_that("sep argument", { - x <- list(sep = 1:3) + ) + withr::with_options( + list(pillar.bold = FALSE), expect_pillar_output( - crayon = FALSE, - xf = colonnade(x, width = 30), - filename = "sep.txt" + xf = xf, + filename = "style-bold-false.txt" ) - }) + ) +}) - test_that("without styling", { - xf <- colonnade(list(x = (10^(-3:4)) * c(-1, 1))) - - withr::with_options( - list(), - expect_pillar_output( - xf = xf, - filename = "style-regular.txt" - ) - ) - withr::with_options( - list(pillar.subtle_num = TRUE), - expect_pillar_output( - xf = xf, - filename = "style-subtle-num-true.txt" - ) - ) - withr::with_options( - list(pillar.subtle = FALSE), - expect_pillar_output( - xf = xf, - filename = "style-subtle-false.txt" - ) - ) - withr::with_options( - list(pillar.neg = FALSE), - expect_pillar_output( - xf = xf, - filename = "style-neg-false.txt" - ) - ) - withr::with_options( - list(pillar.subtle = FALSE, pillar.neg = FALSE), - expect_pillar_output( - xf = xf, - filename = "style-subtle-neg-false.txt" - ) - ) - withr::with_options( - list(pillar.bold = FALSE), - expect_pillar_output( - xf = xf, - filename = "style-bold-false.txt" - ) - ) - }) - - test_that("tibble columns", { - x <- list(a = 1:3, b = data.frame(c = 4:6, d = 7:9)) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(x, width = 30), - filename = "tibble-col.txt" - ) - }) +test_that("tibble columns", { + x <- list(a = 1:3, b = data.frame(c = 4:6, d = 7:9)) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(x, width = 30), + filename = "tibble-col.txt" + ) +}) - test_that("tibble columns (nested)", { - x <- list( - a = 1:3, - b = structure( - list( - c = 4:6, d = 7:9, - e = data.frame(f = 10:12, g = 13:15) - ), - class = "data.frame" - ) - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(x, width = 40), - filename = "tibble-col-nested.txt" - ) - }) +test_that("tibble columns (nested)", { + x <- list( + a = 1:3, + b = structure( + list( + c = 4:6, d = 7:9, + e = data.frame(f = 10:12, g = 13:15) + ), + class = "data.frame" + ) + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(x, width = 40), + filename = "tibble-col-nested.txt" + ) +}) - test_that("tibble columns (empty)", { - x <- list( - a = 1:3, - b = structure( - list( - c = 4:6, d = 7:9, - e = data.frame(f = 10:12)[, 0] - ), - class = "data.frame" - ) - ) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(x, width = 40), - filename = "tibble-col-empty.txt" - ) - }) +test_that("tibble columns (empty)", { + x <- list( + a = 1:3, + b = structure( + list( + c = 4:6, d = 7:9, + e = data.frame(f = 10:12)[, 0] + ), + class = "data.frame" + ) + ) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(x, width = 40), + filename = "tibble-col-empty.txt" + ) +}) - test_that("matrix columns (unnamed)", { - x <- list(a = 1:3, b = matrix(4:9, ncol = 2)) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(x, width = 30), - filename = "matrix-col.txt" - ) - }) +test_that("matrix columns (unnamed)", { + x <- list(a = 1:3, b = matrix(4:9, ncol = 2)) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(x, width = 30), + filename = "matrix-col.txt" + ) +}) - test_that("matrix columns (named)", { - x <- list(a = 1:3, b = matrix(4:9, ncol = 2, dimnames = list(NULL, c("c", "d")))) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(x, width = 30), - filename = "matrix-col-named.txt" - ) - }) +test_that("matrix columns (named)", { + x <- list(a = 1:3, b = matrix(4:9, ncol = 2, dimnames = list(NULL, c("c", "d")))) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(x, width = 30), + filename = "matrix-col-named.txt" + ) +}) - test_that("matrix columns (empty)", { - x <- list(a = 1:3, b = matrix(4:6, ncol = 1)[, 0]) - expect_pillar_output( - crayon = FALSE, - xf = colonnade(x, width = 30), - filename = "matrix-col-empty.txt" - ) - }) -}) # withr::with_options(list(pillar.bold = TRUE), +test_that("matrix columns (empty)", { + x <- list(a = 1:3, b = matrix(4:6, ncol = 1)[, 0]) + expect_pillar_output( + crayon = FALSE, + xf = colonnade(x, width = 30), + filename = "matrix-col-empty.txt" + ) +}) diff --git a/tests/testthat/test-title.R b/tests/testthat/test-title.R index b8c1f97c4..087ffb1f6 100644 --- a/tests/testthat/test-title.R +++ b/tests/testthat/test-title.R @@ -1,13 +1,8 @@ -context("title") - -withr::with_options(list(pillar.bold = TRUE), { - - test_that("with and without title", { - expect_pillar_output(10^(1:6), filename = "title-none.txt", crayon = FALSE) - expect_pillar_output(10^(1:6), title = "crayon", filename = "title-crayon.txt") - expect_pillar_output(10^(1:6), title = "short", filename = "title-short.txt", crayon = FALSE) - expect_pillar_output(10^(1:6), title = "somewhat_wider", filename = "title-longer.txt", crayon = FALSE) - expect_pillar_output(10^(1:6), title = "exactly_fifteen", filename = "title-fifteen.txt", crayon = FALSE) - expect_pillar_output(10^(1:6), title = "absolutely_breaking_all_sensible_boundaries", width = 18, filename = "title-too-long.txt", crayon = FALSE) - }) -}) # withr::with_options(list(pillar.bold = TRUE), { +test_that("with and without title", { + expect_pillar_output(10^(1:6), filename = "title-none.txt", crayon = FALSE) + expect_pillar_output(10^(1:6), title = "crayon", filename = "title-crayon.txt") + expect_pillar_output(10^(1:6), title = "short", filename = "title-short.txt", crayon = FALSE) + expect_pillar_output(10^(1:6), title = "somewhat_wider", filename = "title-longer.txt", crayon = FALSE) + expect_pillar_output(10^(1:6), title = "exactly_fifteen", filename = "title-fifteen.txt", crayon = FALSE) + expect_pillar_output(10^(1:6), title = "absolutely_breaking_all_sensible_boundaries", width = 18, filename = "title-too-long.txt", crayon = FALSE) +})