Skip to content

Commit dcb6bd6

Browse files
committed
Coverallllllllllllllls
1 parent f0f4196 commit dcb6bd6

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

NEWS.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
## crunchtabs 1.2.9
22

3-
- Codebook question descriptions now appropriately escape special characters
4-
- Added option enforce_onehundred which allows one to avoid rounding errors in totals rows
5-
- Codebook table of contents overruns, cutting text and adding "..."
6-
- Codebook generation now supports a filepath
7-
- Added vertical space before append_text
8-
- Bugfix: append_text that is multiple lines du0lpicated vertical space. Collapsing.
3+
- Codebook question descriptions now appropriately escape special characters (#187)
4+
- Added option enforce_onehundred which allows one to avoid rounding errors in totals rows (#189)
5+
- Codebook table of contents overruns, cutting text and adding "..." (#186)
6+
- Codebook generation now supports a filepath (#185)
7+
- Added vertical space before append_text (#182)
8+
- Bugfix: append_text that is multiple lines du0lpicated vertical space. Collapsing. (#191)
9+
- Remove requirement for dev version of kableExtra (#184)
910

1011
## crunchtabs 1.2.8
1112

tests/testthat/test-codeBookItemTxtDescription.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,12 @@ with_api_fixture("fixtures-1-2-5", {
5151
)
5252
})
5353

54+
test_that("codebookItemTxtDescription notes", {
55+
res = with_mock(codeBookItemTxtDescription(ds$q1), "crunch::notes" = function(x) "This is a note!")
56+
expect_equal(
57+
res,
58+
"\\vskip 0.10in\nWhat is your favorite pet?\n\\addcontentsline{lot}{table}{\\parbox{1.8in}{\\ttfamily{q1}} Pet}\n\\vskip 0.10in\n\\emph{This is a note!}\n\\vskip 0.10in")
59+
60+
})
61+
5462
})

0 commit comments

Comments
 (0)