Skip to main content
Glama
emicklei

melrōse musical expression player

by emicklei
interval_test.go952 B
package core import ( "testing" ) func TestInterval_Value(t *testing.T) { i := NewInterval(On(0), On(1), On(1), RepeatFromTo) if got, want := i.Value(), 0; got != want { t.Errorf("got [%v] want [%v]", got, want) } i.Next() if got, want := i.Value(), 1; got != want { t.Errorf("got [%v] want [%v]", got, want) } i.Next() if got, want := i.Value(), 0; got != want { t.Errorf("got [%v] want [%v]", got, want) } } func TestInterval_Value_Backwards(t *testing.T) { i := NewInterval(On(0), On(1), On(-1), RepeatFromTo) if got, want := i.Value(), 0; got != want { t.Errorf("got [%v] want [%v]", got, want) } i.Next() if got, want := i.Value(), 1; got != want { t.Errorf("got [%v] want [%v]", got, want) } } func TestInterval_Value_Storex(t *testing.T) { i := NewInterval(On(0), On(1), On(-1), RepeatFromTo) if got, want := i.Storex(), "interval(0,1,-1,'repeat')"; got != want { t.Errorf("got [%v] want [%v]", got, want) } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/emicklei/melrose'

If you have feedback or need assistance with the MCP directory API, please join our Discord server