You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
454 B
18 lines
454 B
package tables
|
|
|
|
import (
|
|
"mazeratsgen/internal/dice"
|
|
"testing"
|
|
)
|
|
|
|
func TestMonsterGenMethods(t *testing.T) {
|
|
roller := dice.NewRoller(1)
|
|
table := MonsterTable{Roller: roller}
|
|
table.Weakness(roller.TableRoll())
|
|
table.Personality(roller.TableRoll())
|
|
table.Tactic(roller.TableRoll())
|
|
table.Ability(roller.TableRoll())
|
|
table.Trait(roller.TableRoll())
|
|
table.Feature(roller.TableRoll())
|
|
table.Base(roller.TableRoll()[0]) // TODO: Test all 3 paths
|
|
}
|
|
|