diff options
author | Daniel Ebert | 2023-09-17 15:34:23 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-12-15 06:59:54 +0000 |
commit | 559bfc1f5ef1bd43fd94325c0363058e32c76df4 (patch) | |
tree | 402696c114b2feee236132d0b5932a5af89f916e /helix-core/tests/indent.rs | |
parent | d29a66f267afd79f83c0ddc2e483bfb407f4ed98 (diff) |
Improve relative indent computation.
Add tests to ensure that relative & absolute indent computation are consistent.
Diffstat (limited to 'helix-core/tests/indent.rs')
-rw-r--r-- | helix-core/tests/indent.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/tests/indent.rs b/helix-core/tests/indent.rs index cd96fcff..faf845c0 100644 --- a/helix-core/tests/indent.rs +++ b/helix-core/tests/indent.rs @@ -218,7 +218,7 @@ fn test_treesitter_indent( false, ) .unwrap() - .to_string(&indent_style); + .to_string(&indent_style, tab_width); assert!( line.get_slice(..pos).map_or(false, |s| s == suggested_indent), "Wrong indentation for file {:?} on line {}:\n\"{}\" (original line)\n\"{}\" (suggested indentation)\n", |