Merge branch 'juliancoffee/fix_localization_tests' into 'master'

Fix off-by-one error in localization tests

See merge request veloren/veloren!2187
This commit is contained in:
Marcel 2021-04-23 11:42:00 +00:00
commit 1489fccbe3

View File

@ -421,8 +421,8 @@ mod tests {
},
};
if line >= e.final_start_line()
&& line < e.final_start_line() + e.lines_in_hunk()
if line + 1 >= e.final_start_line()
&& line + 1 < e.final_start_line() + e.lines_in_hunk()
{
state.chuck_line_range = Some((
e.final_start_line(),