]> git.koha-community.org Git - koha.git/commit
Bug 21846: Regression tests for add_tag_approval
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Nov 2018 18:30:52 +0000 (15:30 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 19 Mar 2019 09:57:25 +0000 (09:57 +0000)
commit4b8bad7710418b5033b32e94a677abd3ac4f289a
treec0a1f31c6fe6b8a5d8856da2523af7e700c44348
parent2ab1ec967bea11c39795d0b77d40845d3f6fb0a5
Bug 21846: Regression tests for add_tag_approval

Due to collation issues, add_tag_approval wrongly calculates
the weight for strings including extended UNICODE characters.

This patch introduces a test for this situation.

To test:
- Apply this patch on master
- Run:
  $ kshell
 k$ prove t/db_dependent/Tags.t
=> FAIL: Tests fail because all extended characters match the same

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 865f9a165d5d5e025737324843eccb5c39a74efb)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Tags.t