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

Commits on Jul 14, 2023

  1. test_buffer: don't depend on version-dependent default values of 'def…

    …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 <[email protected]>
    michel-slm committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    0734690 View commit details
    Browse the repository at this point in the history