Package: julia / 0.4.7-6

unicode-test.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fix test in unicode.jl
Origin: comments in https://github.com/JuliaLang/julia/commit/b192bf0e2f0a0c5b232c3352c6e996e5f11053f2
Forwarded: no
Reviewed-by: Sébastien Villemot <sebastien@debian.org>
Last-Update: 2015-11-17
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/test/unicode/utf8proc.jl
+++ b/test/unicode/utf8proc.jl
@@ -260,7 +260,8 @@
 
 # handling of embedded NUL chars (#10958)
 @test length("\0w") == length("\0α") == 2
-@test strwidth("\0w") == strwidth("\0α") == 1
+@test strwidth("\0w") == charwidth('\0') + charwidth('w')
+@test strwidth("\0α") == charwidth('\0') + charwidth('α')
 @test normalize_string("\0W", casefold=true) == "\0w"
 
 # Make sure AbstractString case is covered (for utf8proc_map)