added unit test

This commit is contained in:
Larry Ruane 2021-07-26 23:14:05 -06:00
parent 09511d2c8d
commit ebbc346c87
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
}