Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make large numbers more readable. #973

Merged
merged 2 commits into from
Nov 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NumericUnderscores #-}
{-# LANGUAGE OverloadedLabels #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ScopedTypeVariables #-}
Expand Down Expand Up @@ -279,8 +280,8 @@ spec = do
-- genesis file.
--
-- Out of these 500 coins, 100 of them are of 1 Lovelace and are
-- expected to be treated as dust. The rest are all worth: 10000000000
-- lovelace.
-- expected to be treated as dust. The rest are all worth:
-- 10,000,000,000 lovelace.
let mnemonics =
["collect", "fold", "file", "clown"
, "injury", "sun", "brass", "diet"
Expand Down Expand Up @@ -339,7 +340,9 @@ spec = do
request @ApiUtxoStatistics ctx (getWalletUtxoEp wNew)
Default
Empty >>= flip verify
[ expectFieldSatisfy #distribution ((== (Just 400)). Map.lookup 10000000000)
[ expectFieldSatisfy
#distribution
((== (Just 400)) . Map.lookup 10_000_000_000)
]

it "BYRON_MIGRATE_08 - fails with a wrong passphrase" $ \ctx -> do
Expand Down