Skip to content

Commit

Permalink
Coverallllllllllllllls
Browse files Browse the repository at this point in the history
  • Loading branch information
1beb committed Sep 10, 2020
1 parent f0f4196 commit dcb6bd6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
13 changes: 7 additions & 6 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
## crunchtabs 1.2.9

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

## crunchtabs 1.2.8

Expand Down
8 changes: 8 additions & 0 deletions tests/testthat/test-codeBookItemTxtDescription.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,12 @@ with_api_fixture("fixtures-1-2-5", {
)
})

test_that("codebookItemTxtDescription notes", {
res = with_mock(codeBookItemTxtDescription(ds$q1), "crunch::notes" = function(x) "This is a note!")
expect_equal(
res,
"\\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")

})

})

0 comments on commit dcb6bd6

Please sign in to comment.