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.
package document
import "testing"
func TestSortedIDsNeverReturnsNil(t *testing.T) {
for _, input := range [][]string{nil, {}} {
if got := sortedIDs(input); got == nil {
t.Fatalf("sortedIDs(%#v) = nil; pgx would write NULL into a NOT NULL column", input)
}
}
input := []string{"b", "a"}
if got := sortedIDs(input); got[0] != "a" || got[1] != "b" || input[0] != "b" {
t.Fatalf("sortedIDs sorted %v into %v", input, got)
}
}