1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Make non-numeric delta comparison case insensitive

Fixes #239.
This commit is contained in:
Virgil Dupras
2013-11-23 15:31:20 -05:00
parent 0e542577b0
commit c34c9562d3
4 changed files with 32 additions and 11 deletions

View File

@@ -44,3 +44,13 @@ def test_delta_flags_delta_mode_on_non_delta_columns():
assert not app.rtable[3].is_cell_delta('name')
# "ibabtu" == "ibabtu", flag off
assert not app.rtable[4].is_cell_delta('name')
def test_delta_flags_delta_mode_on_non_delta_columns_case_insensitive():
# Comparison that occurs for non-numeric columns to check whether they're delta is case
# insensitive
app = app_with_results()
app.app.results.groups[1].ref.name = "ibAbtu"
app.app.results.groups[1].dupes[0].name = "IBaBTU"
app.rtable.delta_values = True
# "ibAbtu" == "IBaBTU", flag off
assert not app.rtable[4].is_cell_delta('name')