Testing we get the right value back for scaling.
This commit is contained in:
parent
05994b5e59
commit
374ef87113
1 changed files with 9 additions and 0 deletions
|
@ -183,6 +183,15 @@ TEST (client, scaling)
|
|||
ASSERT_EQ (up1 - up2, system.clients [0]->scale);
|
||||
}
|
||||
|
||||
TEST (client, scale_num)
|
||||
{
|
||||
rai::system system (24000, 1);
|
||||
rai::uint128_t num ("0xf0000000000000000000000000000000");
|
||||
auto down (system.clients [0]->scale_down (num));
|
||||
auto up (system.clients [0]->scale_up (down));
|
||||
ASSERT_EQ (num, up);
|
||||
}
|
||||
|
||||
TEST (client, receive_gap)
|
||||
{
|
||||
rai::system system (24000, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue