Merge pull request #1071 from kekkyojin/sha256-unittest

Add unit test for Helper.SHA256(String)
This commit is contained in:
Akinwale Ariwodola 2020-12-18 12:21:39 +01:00 committed by GitHub
commit ae62dba0a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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)));
}
}