Skip to content

test() failure for missed expected warning not ideal #7092

@MichaelChirico

Description

@MichaelChirico

Observed in #7091

data.table:::test(1, {warning('a'); 2}, 2, warning=c('a', 'b'))
# Test 1 produced 1 warnings but expected 2
# Expected: a
# Observed: a
#  Test 1 produced 1 warnings but expected 2
# Expected: b
# Observed: a

In isolation, it's a bit easier to grok, but in the full test log with potentially more errors, it's harder to mentally "mod out" the first one that does match. Ideally, we can simply not produce any warnings that match as intended, or otherwise signal that there's nothing incorrect with the first case] (i.e., you're not going crazy).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions