1 package db 2 3 import ( 4 "testing" 5 6 "github.com/letsencrypt/boulder/test" 7 ) 8 9 func TestQuestionMarks(t *testing.T) { 10 test.AssertEquals(t, QuestionMarks(1), "?") 11 test.AssertEquals(t, QuestionMarks(2), "?,?") 12 test.AssertEquals(t, QuestionMarks(3), "?,?,?") 13 } 14 15 func TestQuestionMarksPanic(t *testing.T) { 16 defer func() { _ = recover() }() 17 QuestionMarks(0) 18 t.Errorf("calling QuestionMarks(0) did not panic as expected") 19 } 20