mirror of
https://github.com/hamburghammer/gstat.git
synced 2024-05-25 08:00:38 +02:00
15 lines
231 B
Go
15 lines
231 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
func TestFormatToJSON(t *testing.T) {
|
|
strings := []string{"foo", "bar"}
|
|
|
|
got := formatToJSON(strings)
|
|
want := "{foo,bar}"
|
|
|
|
if got != want {
|
|
t.Errorf("Want: '%s' but got: '%s'", want, got)
|
|
}
|
|
}
|