From 9f79f553127ccfcc92277ad9d579856d95a282cc Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Tue, 29 Aug 2023 09:55:22 -0500 Subject: [PATCH] change fix_options -> dot_names in tests --- tests/testit/test-utils.R | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/testit/test-utils.R b/tests/testit/test-utils.R index 3a58b25353..61c5747377 100644 --- a/tests/testit/test-utils.R +++ b/tests/testit/test-utils.R @@ -241,18 +241,18 @@ assert('remove_urls() removes the link', { assert('options using `-` are converted to `.` and default value replaced', { opts = opts_chunk$merge(list('fig-cap' = 'caption', 'out-width' = 300)) - (is.null(fix_options(opts)[['fig-cap']])) - (is.null(fix_options(opts)[['out-width']])) - (fix_options(opts)[['fig.cap']] %==% 'caption') - (fix_options(opts)[['out.width']] %==% 300) + (is.null(dot_names(opts)[['fig-cap']])) + (is.null(dot_names(opts)[['out-width']])) + (dot_names(opts)[['fig.cap']] %==% 'caption') + (dot_names(opts)[['out.width']] %==% 300) rm(opts) }) assert('fig.format and fig.dpi', { opts = opts_chunk$merge(list('fig-format' = 'svg', 'fig-dpi' = 750)) - (is.null(fix_options(opts)[['fig-format']])) - (is.null(fix_options(opts)[['fig-dpi']])) - (fix_options(opts)[['dev']] %==% 'svg') - (fix_options(opts)[['dpi']] %==% 750) + (is.null(dot_names(opts)[['fig-format']])) + (is.null(dot_names(opts)[['fig-dpi']])) + (dot_names(opts)[['dev']] %==% 'svg') + (dot_names(opts)[['dpi']] %==% 750) rm(opts) })