]> 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)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 15 Mar 2019 12:27:44 +0000 (12:27 +0000)
commit865f9a165d5d5e025737324843eccb5c39a74efb
tree0e47996ba0387fd292ae15a46512afaab92eb73f
parent6c86de628d5873b88a7d6d2d676ecd7b98345aa7
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>
t/db_dependent/Tags.t