MCPcopy Create free account
hub / github.com/egonelbre/exp / TestShift2Model

Function TestShift2Model

coder/arith/models_test.go:39–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

37}
38
39func TestShift2Model(t *testing.T) {
40 ModelTest(t, 3, func() Model { return &Shift2{Prob(0.5), 3, Prob(0.1), 1} })
41 ModelTest(t, 21, func() Model { return &Shift2{Prob(0.25), 2, Prob(0.25), 1} })
42 ModelTest(t, 312532, func() Model { return &Shift2{Prob(0.9), 1, Prob(0.5), 1} })
43}
44
45func TestTreeModel(t *testing.T) {
46 B := func() Model { return &Shift{Prob(0.43), 3} }

Callers

nothing calls this directly

Calls 2

ModelTestFunction · 0.85
ProbFunction · 0.85

Tested by

no test coverage detected