added unit test

This commit is contained in:
Larry Ruane 2021-07-26 23:14:05 -06:00 committed by Larry Ruane
parent 39179a9721
commit 3f669c3d19
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ lwd-api.html
*.orig
__debug_bin
.vscode
frontend/unittestcache/

View File

@ -191,6 +191,9 @@ func TestGetLatestBlock(t *testing.T) {
if blockID.Height != 380640 {
t.Fatal("unexpected blockID.height")
}
if string(blockID.Hash) != string(block.Hash) {
t.Fatal("unexpected blockID.hash")
}
step = 0
}