Merge pull request #1071 from kekkyojin/sha256-unittest
Add unit test for Helper.SHA256(String)
This commit is contained in:
commit
ae62dba0a6
1 changed files with 11 additions and 0 deletions
11
app/src/test/java/io/lbry/browser/utils/HelperTest.java
Normal file
11
app/src/test/java/io/lbry/browser/utils/HelperTest.java
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
package io.lbry.browser.utils;
|
||||||
|
|
||||||
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
|
public class HelperTest extends TestCase {
|
||||||
|
|
||||||
|
public void testSHA256() {
|
||||||
|
// Using a fake user id, which is a long.
|
||||||
|
assertEquals("de9edb2044d012f04553e49b04d54cbec8e8a46a40ad5a19bc5dcce1da00ecfd", Helper.SHA256(String.valueOf(12345678912345L)));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue