Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

489 B
Raw Blame
package collaboration

import (
	"slices"
	"testing"
)

func TestSubtractRoomIDs(t *testing.T) {
	if got := subtractRoomIDs(nil, []string{"a"}); got == nil || len(got) != 0 {
		t.Fatalf("nil ids = %v", got)
	}
	if got := subtractRoomIDs([]string{"a", "b"}, nil); !slices.Equal(got, []string{"a", "b"}) {
		t.Fatalf("no exclude = %v", got)
	}
	if got := subtractRoomIDs([]string{"a", "b", "c"}, []string{"b"}); !slices.Equal(got, []string{"a", "c"}) {
		t.Fatalf("subtract = %v", got)
	}
}