Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertions.assertEquals fails when comparing cdata: NULL to ffi.NULL #402

Open
Duckwhale opened this issue Jan 9, 2024 · 0 comments
Open

Comments

@Duckwhale
Copy link
Member

Duckwhale commented Jan 9, 2024

As a workaround I used this in the Labsound tests:

local config = ffi.new("audio_stream_config_t")
assert(labsound.bindings.labsound_device_create(config, nil) == ffi.NULL)
assert(labsound.bindings.labsound_device_create(nil, config) == ffi.NULL)
assert(labsound.bindings.labsound_device_create(nil, nil) == ffi.NULL)

Should be easy enough to fix, even if it's a niche use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Soon™
Development

No branches or pull requests

1 participant