Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit86e3631

Browse files
committed
remove tests for xfun::with_ext()
1 parenta76858e commit86e3631

File tree

3 files changed

+5
-27
lines changed

3 files changed

+5
-27
lines changed

‎DESCRIPTION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: bookdown
22
Type: Package
33
Title: Authoring Books and Technical Documents with R Markdown
4-
Version: 0.45.1
4+
Version: 0.45.2
55
Authors@R: c(
66
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
77
person("Christophe", "Dervieux", , "cderv@posit.co", role = c("ctb"),

‎NEWS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#CHANGES IN bookdown VERSION 0.46
22

3+
- Removed tests for`xfun::with_ext()` that don't belong to this package.
34

45
#CHANGES IN bookdown VERSION 0.45
56

‎tests/testit/test-utils.R‎

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,8 @@
11
library(testit)
22

3-
1 %==%1
4-
5-
assert(
6-
'next_nearest() works',
7-
next_nearest(c(1,4,8),1:9) %==% c(2L,5L,9L)
8-
)
9-
10-
assert(
11-
'with_ext() works',
12-
with_ext(NULL,'a') %==%NULL,
13-
with_ext('a',NULL) %==%'a',
14-
with_ext('a','bcd') %==%'a.bcd',
15-
with_ext('a.html','') %==%'a',
16-
with_ext('a.html','tex') %==%'a.tex',
17-
with_ext('a.html','.tex') %==%'a.tex',
18-
with_ext(c('a','b','c'),'css') %==% c('a.css','b.css','c.css'),
19-
with_ext(c('a.html','b','c.js'),'css') %==% c('a.css','b.css','c.css'),
20-
with_ext(c('a.html','b','c'),'.css') %==% c('a.css','b.css','c.css'),
21-
with_ext('a', c('css','.html')) %==% c('a.css','a.html'),
22-
with_ext(c('a.doc','b.gz','c'), c('css','.tar','.png')) %==% c('a.css','b.tar','c.png')
23-
)
24-
25-
assert(
26-
'with_ext() signals an error when length(x) != length(ext)',
27-
has_error(with_ext(c('a','b.css'), c('foo','bar','ham')))
28-
)
3+
assert('next_nearest() works', {
4+
(next_nearest(c(1,4,8),1:9) %==% c(2L,5L,9L))
5+
})
296

307
assert('clean_meta_tags() cleans HTML inside <meta>', {
318
(clean_meta_tags('<meta name="foo" content="hi text">') %==%

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp