Skip to content

Commit

Permalink
Bip39TrezorTest fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
DmRomantsov committed Feb 24, 2016
1 parent 5304236 commit 76f8162
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ public void bip39TrezorTest () throws IOException, JSONException, ValidationExce
{
JSONObject testData = readObject (TESTS);
JSONArray english = testData.getJSONArray ("english");
for ( int i = 0; i < testData.length (); ++i )
for ( int i = 0; i < english.length (); ++i )
{
JSONArray test = english.getJSONArray (i);
String m = BIP39.getMnemonic (ByteUtils.fromHex (test.getString (i)));
assertTrue (m.equals (test.getString (i + 1)));
String m = BIP39.getMnemonic(ByteUtils.fromHex(test.getString(0)));
assertTrue (m.equals (test.getString (1)));
}
}

Expand Down

0 comments on commit 76f8162

Please sign in to comment.