Skip to content

Commit 3a7eaf4

Browse files
authored
Apply suggestions from code review
1 parent 7a43e83 commit 3a7eaf4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

R-package/tests/testthat/test_Predictor.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,11 @@ test_that("Feature contribution predictions do not take non-general CSR or CSC i
189189

190190
expect_error(
191191
predict(bst, SmatC, type = "contrib")
192-
, regexp = "Predictions on sparse inputs are only allowed for 'dsparseVector', 'dgRMatrix', 'dgCMatrix' - got: dsCMatrix" # nolint: line_length
192+
, regexp = "Predictions on sparse inputs are only allowed for 'dsparseVector', 'dgRMatrix', 'dgCMatrix' - got: dsCMatrix" # nolint: line_length.
193193
)
194194
expect_error(
195195
predict(bst, SmatR, type = "contrib"),
196-
, regexp = "Predictions on sparse inputs are only allowed for 'dsparseVector', 'dgRMatrix', 'dgCMatrix' - got: dsRMatrix" # nolint: line_length
196+
, regexp = "Predictions on sparse inputs are only allowed for 'dsparseVector', 'dgRMatrix', 'dgCMatrix' - got: dsRMatrix" # nolint: line_length.
197197
)
198198
})
199199

R-package/tests/testthat/test_dataset.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ test_that("lgb.Dataset: get_field & set_field", {
4848
# any other label should error
4949
expect_error(
5050
set_field(dtest, "asdf", test_label)
51-
, regexp = "Dataset$set_field(): field_name must be one of the following: 'label', 'weight', 'init_score', 'group'", # nolint: line_length
51+
, regexp = "Dataset$set_field(): field_name must be one of the following: 'label', 'weight', 'init_score', 'group'", # nolint: line_length.
5252
, fixed = TRUE
5353
)
5454
})

0 commit comments

Comments
 (0)