Skip to content

Instantly share code, notes, and snippets.

package main
import (
"bufio"
"context"
"flag"
"fmt"
"os"
"sort"
"strconv"
package main
import (
"testing"
)
func TestGetScore_EmptyGameStamps(t *testing.T) {
var emptyStamps []ScoreStamp
result := getScore(emptyStamps, 10)
expected := Score{Home: 0, Away: 0}
package main
import (
"fmt"
"math"
"math/rand"
"time"
)
const TIMESTAMPS_COUNT = 50000