Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
d0089510
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
d0089510
编写于
5月 03, 2018
作者:
K
Kevin Heifner
提交者:
GitHub
5月 03, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2741 from EOSIO/slim-fix-currency-tests
Fix eosio_token_tests/transfer_tests and auth_tests/link_then_update_auth
上级
45ad6f94
36e0ccf3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
8 deletion
+5
-8
unittests/CMakeLists.txt
unittests/CMakeLists.txt
+1
-1
unittests/auth_tests.cpp
unittests/auth_tests.cpp
+3
-1
unittests/currency_tests.cpp
unittests/currency_tests.cpp
+0
-5
unittests/eosio.token_tests.cpp
unittests/eosio.token_tests.cpp
+1
-1
未找到文件。
unittests/CMakeLists.txt
浏览文件 @
d0089510
...
...
@@ -31,7 +31,7 @@ add_dependencies(unit_test asserter test_api test_api_mem test_api_db test_api_m
#Manually run unit_test for all supported runtimes
#To run unit_test with all log from blockchain displayed, put --verbose after --, i.e. unit_test -- --verbose
add_test
(
NAME unit_test_binaryen COMMAND unit_test
add_test
(
NAME unit_test_binaryen COMMAND unit_test
-t \!eosio_system_tests/*
-t \!delay_tests/*
-t \!currency_tests/test_deferred_failure
...
...
unittests/auth_tests.cpp
浏览文件 @
d0089510
...
...
@@ -282,7 +282,9 @@ BOOST_AUTO_TEST_CASE(link_then_update_auth) { try {
chain
.
link_authority
(
"alice"
,
"eosio"
,
"first"
,
"reqauth"
);
chain
.
push_reqauth
(
"alice"
,
{
permission_level
{
N
(
alice
),
"first"
}
},
{
first_priv_key
});
chain
.
produce_blocks
(
13
);
// Wait at least 6 seconds for first push_reqauth transaction to expire.
// Update "first" auth public key
chain
.
set_authority
(
"alice"
,
"first"
,
second_pub_key
,
"active"
);
// Authority updated, using previous "first" auth should fail on linked auth
...
...
unittests/currency_tests.cpp
浏览文件 @
d0089510
...
...
@@ -571,11 +571,6 @@ BOOST_FIXTURE_TEST_CASE( test_input_quantity, currency_tester ) try {
eosio_assert_message_is
(
"asset symbol has higher precision than expected"
)
);
}
// transfer using different symbol name fails
{
BOOST_REQUIRE_THROW
(
transfer
(
N
(
alice
),
N
(
carl
),
"20.50 USD"
),
fc
::
assert_exception
);
}
}
FC_LOG_AND_RETHROW
()
/// test_currency
BOOST_AUTO_TEST_SUITE_END
()
unittests/eosio.token_tests.cpp
浏览文件 @
d0089510
...
...
@@ -299,7 +299,7 @@ BOOST_FIXTURE_TEST_CASE( transfer_tests, eosio_token_tester ) try {
transfer
(
N
(
alice
),
N
(
bob
),
asset
::
from_string
(
"-1000 CERO"
),
"hola"
)
);
BOOST_REQUIRE_EQUAL
(
error
(
"condition: assertion failed: a
ttempt to subtract asset with different symbol
"
),
BOOST_REQUIRE_EQUAL
(
error
(
"condition: assertion failed: a
sset symbol has higher precision than expected
"
),
transfer
(
N
(
alice
),
N
(
bob
),
asset
::
from_string
(
"1.0 CERO"
),
"hola"
)
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录