Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
81aee733
提交
81aee733
authored
7 年前
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix tests of degrees() and radians() for Java 9
上级
a318cf11
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
16 行增加
和
14 行删除
+16
-14
degrees.sql
...rc/test/org/h2/test/scripts/functions/numeric/degrees.sql
+8
-7
radians.sql
...rc/test/org/h2/test/scripts/functions/numeric/radians.sql
+8
-7
没有找到文件。
h2/src/test/org/h2/test/scripts/functions/numeric/degrees.sql
浏览文件 @
81aee733
...
...
@@ -9,11 +9,12 @@ create memory table test(id int primary key, name varchar(255));
insert
into
test
values
(
1
,
'Hello'
);
>
update
count
:
1
select
degrees
(
null
)
vn
,
degrees
(
1
)
v1
,
degrees
(
1
.
1
)
v2
,
degrees
(
-
1
.
1
)
v3
,
degrees
(
1
.
9
)
v4
,
degrees
(
-
1
.
9
)
v5
from
test
;
>
VN
V1
V2
V3
V4
V5
>
---- ----------------- ----------------- ------------------ ------------------ -------------------
>
null
57
.
29577951308232
63
.
02535746439057
-
63
.
02535746439057
108
.
86198107485642
-
108
.
86198107485642
-- Truncate least significant digits because implementations returns slightly
-- different results depending on Java version
select
degrees
(
null
)
vn
,
truncate
(
degrees
(
1
),
10
)
v1
,
truncate
(
degrees
(
1
.
1
),
10
)
v2
,
truncate
(
degrees
(
-
1
.
1
),
10
)
v3
,
truncate
(
degrees
(
1
.
9
),
10
)
v4
,
truncate
(
degrees
(
-
1
.
9
),
10
)
v5
from
test
;
>
VN
V1
V2
V3
V4
V5
>
---- ------------ ------------- -------------- -------------- ---------------
>
null
57
.
295779513
63
.
0253574643
-
63
.
0253574643
108
.
8619810748
-
108
.
8619810748
>
rows
:
1
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/scripts/functions/numeric/radians.sql
浏览文件 @
81aee733
...
...
@@ -9,11 +9,12 @@ create memory table test(id int primary key, name varchar(255));
insert
into
test
values
(
1
,
'Hello'
);
>
update
count
:
1
select
radians
(
null
)
vn
,
radians
(
1
)
v1
,
radians
(
1
.
1
)
v2
,
radians
(
-
1
.
1
)
v3
,
radians
(
1
.
9
)
v4
,
radians
(
-
1
.
9
)
v5
from
test
;
>
VN
V1
V2
V3
V4
V5
>
---- -------------------- -------------------- --------------------- ------------------- --------------------
>
null
0
.
017453292519943295
0
.
019198621771937624
-
0
.
019198621771937624
0
.
03316125578789226
-
0
.
03316125578789226
-- Truncate least significant digits because implementations returns slightly
-- different results depending on Java version
select
radians
(
null
)
vn
,
truncate
(
radians
(
1
),
10
)
v1
,
truncate
(
radians
(
1
.
1
),
10
)
v2
,
truncate
(
radians
(
-
1
.
1
),
10
)
v3
,
truncate
(
radians
(
1
.
9
),
10
)
v4
,
truncate
(
radians
(
-
1
.
9
),
10
)
v5
from
test
;
>
VN
V1
V2
V3
V4
V5
>
---- ------------ ------------ ------------- ------------ -------------
>
null
0
.
0174532925
0
.
0191986217
-
0
.
0191986217
0
.
0331612557
-
0
.
0331612557
>
rows
:
1
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论