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

test_buffer: don't depend on version-dependent default values of 'define' #531

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

michel-slm
Copy link
Contributor

@michel-slm michel-slm commented Jul 14, 2023

test_options has an assertion that tests whether setting a local value modifies the global value, but tests it against a hardcoded constant.

This constant changed in neovim/neovim@fcfe535

and
82a2e14 fixes it by using the new constant instead, but this causes tests to fail against even the latest released version of neovim.

To make this version-agnostic, save the old global value, and assert that the new value is equal after setting the local value.

@michel-slm michel-slm changed the title test_buffer: don't depend on version-dependent default values of test_buffer: don't depend on version-dependent default values of 'define' Jul 14, 2023
…ine'

`test_options` has an assertion that tests whether setting a local value
modifies the global value, but tests it against a hardcoded constant.

This constant changed in neovim/neovim@fcfe535

and
neovim@82a2e14
fixes it by using the new constant instead, but this causes tests to
fail against even the latest released version of neovim.

To make this version-agnostic, save the old global value, and assert
that the new value is equal after setting the local value.

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
@justinmk justinmk merged commit 5be54e2 into neovim:master Jul 14, 2023
4 of 6 checks passed
@michel-slm michel-slm deleted the fix-test_buffer branch July 14, 2023 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants