(t *testing.T)
| 421 | } |
| 422 | |
| 423 | func TestRevTreeIsLeaf(t *testing.T) { |
| 424 | assert.True(t, branchymap.isLeaf("3-three"), "isLeaf failed on 3-three") |
| 425 | assert.True(t, branchymap.isLeaf("3-drei"), "isLeaf failed on 3-drei") |
| 426 | assert.False(t, branchymap.isLeaf("2-two"), "isLeaf failed on 2-two") |
| 427 | assert.False(t, branchymap.isLeaf("bogus"), "isLeaf failed on 'bogus") |
| 428 | assert.False(t, branchymap.isLeaf(""), "isLeaf failed on ''") |
| 429 | } |
| 430 | |
| 431 | func TestRevTreeWinningRev(t *testing.T) { |
| 432 | ctx := base.TestCtx(t) |