Skip to main content
Glama
emicklei

melrōse musical expression player

by emicklei
var_test.go846 B
package dsl import ( "testing" ) func Test_variable_Sub(t *testing.T) { s := NewVariableStore() s.Put("a", 1) a := s.getVariable("a") if got, want := a.dispatchAdd(1), 2; got != want { t.Errorf("got [%v:%T] want [%v:%T]", got, got, want, want) } if got, want := a.dispatchAdd(a), 2; got != want { t.Errorf("got [%v:%T] want [%v:%T]", got, got, want, want) } if got, want := a.dispatchSub(1), 0; got != want { t.Errorf("got [%v:%T] want [%v:%T]", got, got, want, want) } if got, want := a.dispatchSub(a), 0; got != want { t.Errorf("got [%v:%T] want [%v:%T]", got, got, want, want) } if got, want := a.dispatchSubFrom(2), 1; got != want { t.Errorf("got [%v:%T] want [%v:%T]", got, got, want, want) } if got, want := a.dispatchSubFrom(a), 0; got != want { t.Errorf("got [%v:%T] want [%v:%T]", got, got, want, 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