Skip to content

test() doesn't distinguish plain NA_real_, NaN #7853

Description

@MichaelChirico
# no error
data.table:::test(1, NA_real_, NaN)
# but it's not totally NA-NaN-unaware
data.table:::test(1, list(NA_real_), list(NaN))
# Test 1 ran without errors but failed check that x equals y:
# > x = list(NA_real_) 
# First 1 of 1 (type 'list'): 
# [[1]]
# [1] NA

# > y = list(NaN) 
# First 1 of 1 (type 'list'): 
# [[1]]
# [1] NaN

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions