added unit test
This commit is contained in:
parent
39179a9721
commit
3f669c3d19
|
@ -8,3 +8,4 @@ lwd-api.html
|
||||||
*.orig
|
*.orig
|
||||||
__debug_bin
|
__debug_bin
|
||||||
.vscode
|
.vscode
|
||||||
|
frontend/unittestcache/
|
||||||
|
|
|
@ -191,6 +191,9 @@ func TestGetLatestBlock(t *testing.T) {
|
||||||
if blockID.Height != 380640 {
|
if blockID.Height != 380640 {
|
||||||
t.Fatal("unexpected blockID.height")
|
t.Fatal("unexpected blockID.height")
|
||||||
}
|
}
|
||||||
|
if string(blockID.Hash) != string(block.Hash) {
|
||||||
|
t.Fatal("unexpected blockID.hash")
|
||||||
|
}
|
||||||
step = 0
|
step = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue