fedilogue/fedilogger/config_test.go

15 lines
357 B
Go
Raw Normal View History

2021-09-29 06:43:06 +00:00
package main
import (
"testing"
)
func TestStringexists(t *testing.T) {
var empty_strings = []string {}
var three_strings = []string {"first", "second", "third"}
AssertEqual(t, stringexists("amything", empty_strings), false)
AssertEqual(t, stringexists("second", three_strings), true)
AssertEqual(t, stringexists("fourth", three_strings), false)
}