mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-10 16:04:04 +00:00
12 lines
411 B
Go
12 lines
411 B
Go
package store
|
|
|
|
import "testing"
|
|
|
|
func TestRankedProfileQueryProjectsOnlyTheActiveRankedSeason(t *testing.T) {
|
|
for _, fragment := range []string{"playlist = 'ranked'", "starts_at <= CURRENT_TIMESTAMP", "ends_at > CURRENT_TIMESTAMP", "ORDER BY starts_at DESC", "LIMIT 1", "TIMESTAMP 'epoch'"} {
|
|
if !contains(RankedProfileSelectSQL, fragment) {
|
|
t.Fatalf("ranked profile query missing %q", fragment)
|
|
}
|
|
}
|
|
}
|