Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
e74b5b33
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
1 年多 前同步成功
通知
0
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e74b5b33
编写于
5月 02, 2011
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[test/unicode] Test Unicode 5.2+ but don't fail
上级
c763aa42
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
2 deletion
+19
-2
test/test-unicode.c
test/test-unicode.c
+19
-2
未找到文件。
test/test-unicode.c
浏览文件 @
e74b5b33
...
...
@@ -419,6 +419,7 @@ test_unicode_properties (gconstpointer user_data)
{
hb_unicode_funcs_t
*
uf
=
(
hb_unicode_funcs_t
*
)
user_data
;
unsigned
int
i
,
j
;
gboolean
failed
=
TRUE
;
g_assert
(
hb_unicode_funcs_is_immutable
(
uf
));
...
...
@@ -432,7 +433,20 @@ test_unicode_properties (gconstpointer user_data)
g_test_message
(
"Test %s #%d: U+%04X"
,
p
->
name
,
j
,
tests
[
j
].
unicode
);
g_assert_cmphex
(
p
->
getter
(
uf
,
tests
[
j
].
unicode
),
==
,
tests
[
j
].
value
);
}
/* These tests are from Unicode 5.2 onward and older glib/ICU
* don't get them right. Just warn instead of assert. */
tests
=
p
->
tests_more
;
for
(
j
=
0
;
j
<
p
->
num_tests_more
;
j
++
)
{
g_test_message
(
"Test %s more #%d: U+%04X"
,
p
->
name
,
j
,
tests
[
j
].
unicode
);
if
(
p
->
getter
(
uf
,
tests
[
j
].
unicode
)
!=
tests
[
j
].
value
)
{
g_test_message
(
"Soft fail: Received %x, expected %x"
,
p
->
getter
(
uf
,
tests
[
j
].
unicode
),
tests
[
j
].
value
);
failed
=
TRUE
;
}
}
}
if
(
failed
)
g_message
(
"Some property tests failed. You probably have an old version of one of the libraries used. Rerun with --verbose for details"
);
}
static
hb_codepoint_t
...
...
@@ -459,6 +473,11 @@ test_unicode_properties_nil (void)
g_test_message
(
"Test %s #%d: U+%04X"
,
p
->
name
,
j
,
tests
[
j
].
unicode
);
g_assert_cmphex
(
p
->
getter
(
uf
,
tests
[
j
].
unicode
),
==
,
default_value
(
p
->
default_value
,
tests
[
j
].
unicode
));
}
tests
=
p
->
tests_more
;
for
(
j
=
0
;
j
<
p
->
num_tests_more
;
j
++
)
{
g_test_message
(
"Test %s more #%d: U+%04X"
,
p
->
name
,
j
,
tests
[
j
].
unicode
);
g_assert_cmphex
(
p
->
getter
(
uf
,
tests
[
j
].
unicode
),
==
,
default_value
(
p
->
default_value
,
tests
[
j
].
unicode
));
}
}
hb_unicode_funcs_destroy
(
uf
);
...
...
@@ -647,8 +666,6 @@ main (int argc, char **argv)
hb_test_add_fixture
(
data_fixture
,
NULL
,
test_unicode_subclassing_default
);
hb_test_add_fixture
(
data_fixture
,
NULL
,
test_unicode_subclassing_deep
);
/* XXX test icu ufuncs */
/* XXX test _more tests (warn?) */
/* XXX test chainup */
/* XXX test glib & icu two-way script conversion */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录