Skip to content

Commit 1a43cbe

Browse files
committed
sign function test
1 parent 770ce86 commit 1a43cbe

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.cyrus.vmp
2+
3+
4+
import org.junit.Test
5+
import org.junit.Assert.*
6+
7+
/**
8+
* Example local unit test, which will execute on the development machine (host).
9+
*
10+
* See [testing documentation](http://d.android.com/tools/testing).
11+
*/
12+
class SignUtilTest {
13+
@Test
14+
fun sign() {
15+
val input = "example"
16+
val signed = SignUtil.sign(input)
17+
println("Input: $input")
18+
println("Signed: $signed")
19+
20+
assertEquals("UNhY4JhezH9gQYqvDMWrWH9CwlcKiECVqejMrND2VFw=", signed)
21+
}
22+
}

0 commit comments

Comments
 (0)