Skip to content

testunit fails #1924

Open
Open
@nunotexbsd

Description

@nunotexbsd

testthat 3.2.1 / R 4.3.2

Any hints on how to run this test without failing?
Isn't this test to be bypassed when LANG=C on #1689 ?

Thanks

== Failed tests ================================================================
-- Failure ('test-capture-output.R:6:3'): multiplication works -----------------
capture_output_lines(cat(latin1)) (`actual`) not equal to `utf8` (`expected`).

`Encoding(actual)`:   "unknown"
`Encoding(expected)`: "UTF-8"

`actual`:   "M?chler"
`expected`: "M\u00e4chler"
-- Failure ('test-local.R:24:3'): local context is 'as promised' inside test_that() --
Sys.getenv("LANGUAGE") (`actual`) not equal to "en" (`expected`).

`actual`:   "C"
`expected`: "en"

[ FAIL 2 | WARN 12 | SKIP 123 | PASS 828 ]
Deleting unused snapshots:
* R4.0/snapshot-file/version.txt
* R4.1/snapshot-file/version.txt
* R4.2/snapshot-file/version.txt
* R4.3/snapshot-file/version.txt
* snapshot-file/a.txt
* snapshot-file/foo.csv
* snapshot-file/foo.png
* snapshot-file/foo.r
* snapshot-file/secret.txt
Error: Test failures
Execution halted

Metadata

Metadata

Assignees

No one assigned

    Labels

    upkeepmaintenance, infrastructure, and similar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions