Publish current app and server
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package api
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestRequestMatchScorePrefersTheSpecificTitle(t *testing.T) {
|
||||
if requestMatchScore("the office", "The Office") >=
|
||||
requestMatchScore("the office", "The Office Christmas Special") {
|
||||
t.Fatal("exact title should rank ahead of a prefix match")
|
||||
}
|
||||
if requestMatchScore("arrival", "Arrival") >= requestMatchScore("arrival", "The Arrival") {
|
||||
t.Fatal("exact title should rank ahead of a contained match")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user