diff --git a/go.mod b/go.mod index 78dbe0c..1f5fe97 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module gitlab.com/slon/shad-go go 1.13 require ( + github.com/go-resty/resty/v2 v2.1.0 github.com/spf13/cobra v0.0.5 github.com/stretchr/testify v1.4.0 go.uber.org/goleak v1.0.0 diff --git a/go.sum b/go.sum index 25e688a..a48ef17 100644 --- a/go.sum +++ b/go.sum @@ -8,11 +8,15 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/go-resty/resty/v2 v2.1.0 h1:Z6IefCpUMfnvItVJaJXWv/pMiiD11So35QgwEELsldE= +github.com/go-resty/resty/v2 v2.1.0/go.mod h1:dZGr0i9PLlaaTD4H/hoZIDjQ+r6xq8mgbRzHZf7f2J8= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= @@ -47,6 +51,8 @@ golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzB golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7 h1:rTIdg5QFRR7XCaK4LCjBiPbx8j4DQRpdYMnGn/bJUEU= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -62,6 +68,7 @@ golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbO golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/olympics/README.md b/olympics/README.md index d850f12..d146032 100644 --- a/olympics/README.md +++ b/olympics/README.md @@ -6,23 +6,24 @@ -> вернуть информацию по атлету с именем: откуда, сколько каких медалей выиграл всего и по годам -* /top-athletes-in-sport?sport=SSSS&limit=main_test.goK +* GET /top-athletes-in-sport?sport=SSSS&limit=main_test.goK - -> вернуть top-K (default=3) спортсменов по абсолютному числу медалей в их спортивной карьере в указанном виде спорта + -> вернуть top-K (default=3) спортсменов по абсолютному числу медалей в их спортивной карьере в указанном виде спорта + (сортируем по золотым, потом по серебрянным, потом по бронзе, потом лексикографически по имени спортсмена) -* /top-countries-in-year?year=YYYY&limit=K +* GET /top-countries-in-year?year=YYYY&limit=K -> вернуть top-K (default=3) стран в порядке медального зачета (сортируем по золотым, потом по серебрянным, потом по бронзе, потом лексикографически по стране) используя данные о победителях и призёрах олимпийских игр из [./testdata/olympicWInners.json](./testdata/olympicWinners.json). -Сервер должен слушать порт, переданный через аргумент `--port`. +Сервер должен слушать порт, переданный через аргумент `-port`. Путь к json'у с данными передаётся через флаг `-data`. ### Примеры Запуск: ``` -$ olympics -port 6029 +$ olympics -port 6029 -data ./olympics/testdata/olympicWinners.json ``` #### athlete-info diff --git a/olympics/main_test.go b/olympics/main_test.go new file mode 100644 index 0000000..b3360ea --- /dev/null +++ b/olympics/main_test.go @@ -0,0 +1,184 @@ +package main + +import ( + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "os" + "os/exec" + "path" + "strconv" + "testing" + "time" + + "github.com/go-resty/resty/v2" + "github.com/stretchr/testify/require" + "gitlab.com/slon/shad-go/tools/testtool" +) + +const importPath = "gitlab.com/slon/shad-go/olympics" + +var binCache testtool.BinCache + +func TestMain(m *testing.M) { + os.Exit(func() int { + var teardown testtool.CloseFunc + binCache, teardown = testtool.NewBinCache() + defer teardown() + + return m.Run() + }()) +} + +func startServer(t *testing.T) (port string, stop func()) { + binary, err := binCache.GetBinary(importPath) + require.NoError(t, err) + + port, err = testtool.GetFreePort() + require.NoError(t, err, "unable to get free port") + + cmd := exec.Command(binary, "-port", port, "-data", "./testdata/olympicWinners.json") + cmd.Stdout = nil + cmd.Stderr = os.Stderr + + require.NoError(t, cmd.Start()) + + done := make(chan error) + go func() { + done <- cmd.Wait() + }() + + stop = func() { + _ = cmd.Process.Kill() + <-done + } + + if err = testtool.WaitForPort(t, time.Second*5, port); err != nil { + stop() + } + + require.NoError(t, err) + return +} + +func TestServer_valid(t *testing.T) { + port, stop := startServer(t) + defer stop() + + c := resty.New().SetTimeout(time.Second) + + for _, e := range []string{"athlete-info", "top-athletes-in-sport", "top-countries-in-year"} { + t.Run(e, func(t *testing.T) { + testDir := path.Join("./testdata", "tests", e) + files, err := ioutil.ReadDir(testDir) + if err != nil { + require.NoError(t, err) + } + + for _, f := range files { + if !f.IsDir() { + continue + } + if _, err := strconv.Atoi(f.Name()); err != nil { + continue + } + + t.Run(f.Name(), func(t *testing.T) { + in, err := ioutil.ReadFile(path.Join(testDir, f.Name(), "in.json")) + require.NoError(t, err) + + out, err := ioutil.ReadFile(path.Join(testDir, f.Name(), "out.json")) + require.NoError(t, err) + + var values map[string]interface{} + require.NoError(t, json.Unmarshal(in, &values)) + + resp, err := c.R(). + SetQueryParams(toURLValues(values)). + Get(fmt.Sprintf("http://localhost:%s/%s", port, e)) + + require.NoError(t, err) + require.Equal(t, http.StatusOK, resp.StatusCode()) + require.Contains(t, resp.Header().Get("Content-Type"), "application/json") + + require.JSONEq(t, string(out), resp.String()) + }) + } + }) + } +} + +func TestServer_invalid(t *testing.T) { + port, stop := startServer(t) + defer stop() + + c := resty.New().SetTimeout(time.Second) + + for _, tc := range []struct { + endpoint string + description string + queryParams map[string]string + expectedCode int + }{ + { + endpoint: "athlete-info", + description: "name-not-found", + queryParams: map[string]string{ + "name": "AB", + }, + expectedCode: http.StatusNotFound, + }, + { + endpoint: "top-athletes-in-sport", + description: "sport-not-found", + queryParams: map[string]string{ + "sport": "chess", + }, + expectedCode: http.StatusNotFound, + }, + { + endpoint: "top-athletes-in-sport", + description: "invalid-limit", + queryParams: map[string]string{ + "sport": "Canoeing", + "limit": "2.5", + }, + expectedCode: http.StatusBadRequest, + }, + { + endpoint: "top-countries-in-year", + description: "year-not-found", + queryParams: map[string]string{ + "year": "2009", + }, + expectedCode: http.StatusNotFound, + }, + { + endpoint: "top-countries-in-year", + description: "invalid-limit", + queryParams: map[string]string{ + "year": "2012", + "limit": "2.5", + }, + expectedCode: http.StatusBadRequest, + }, + } { + t.Run(tc.endpoint+"-"+tc.description, func(t *testing.T) { + resp, err := c.R(). + SetQueryParams(tc.queryParams). + Get(fmt.Sprintf("http://localhost:%s/%s", port, tc.endpoint)) + + require.NoError(t, err) + require.Equal(t, tc.expectedCode, resp.StatusCode()) + }) + } +} + +func toURLValues(in map[string]interface{}) map[string]string { + out := make(map[string]string) + for k, v := range in { + out[k] = fmt.Sprintf("%v", v) + } + return out +} diff --git a/olympics/testdata/tests/athlete-info/0_in.json b/olympics/testdata/tests/athlete-info/0/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/0_in.json rename to olympics/testdata/tests/athlete-info/0/in.json diff --git a/olympics/testdata/tests/athlete-info/0_out.json b/olympics/testdata/tests/athlete-info/0/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/0_out.json rename to olympics/testdata/tests/athlete-info/0/out.json diff --git a/olympics/testdata/tests/athlete-info/1_in.json b/olympics/testdata/tests/athlete-info/1/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/1_in.json rename to olympics/testdata/tests/athlete-info/1/in.json diff --git a/olympics/testdata/tests/athlete-info/1_out.json b/olympics/testdata/tests/athlete-info/1/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/1_out.json rename to olympics/testdata/tests/athlete-info/1/out.json diff --git a/olympics/testdata/tests/athlete-info/10_in.json b/olympics/testdata/tests/athlete-info/10/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/10_in.json rename to olympics/testdata/tests/athlete-info/10/in.json diff --git a/olympics/testdata/tests/athlete-info/10_out.json b/olympics/testdata/tests/athlete-info/10/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/10_out.json rename to olympics/testdata/tests/athlete-info/10/out.json diff --git a/olympics/testdata/tests/athlete-info/11_in.json b/olympics/testdata/tests/athlete-info/11/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/11_in.json rename to olympics/testdata/tests/athlete-info/11/in.json diff --git a/olympics/testdata/tests/athlete-info/11_out.json b/olympics/testdata/tests/athlete-info/11/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/11_out.json rename to olympics/testdata/tests/athlete-info/11/out.json diff --git a/olympics/testdata/tests/athlete-info/12_in.json b/olympics/testdata/tests/athlete-info/12/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/12_in.json rename to olympics/testdata/tests/athlete-info/12/in.json diff --git a/olympics/testdata/tests/athlete-info/12_out.json b/olympics/testdata/tests/athlete-info/12/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/12_out.json rename to olympics/testdata/tests/athlete-info/12/out.json diff --git a/olympics/testdata/tests/athlete-info/13_in.json b/olympics/testdata/tests/athlete-info/13/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/13_in.json rename to olympics/testdata/tests/athlete-info/13/in.json diff --git a/olympics/testdata/tests/athlete-info/13_out.json b/olympics/testdata/tests/athlete-info/13/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/13_out.json rename to olympics/testdata/tests/athlete-info/13/out.json diff --git a/olympics/testdata/tests/athlete-info/14_in.json b/olympics/testdata/tests/athlete-info/14/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/14_in.json rename to olympics/testdata/tests/athlete-info/14/in.json diff --git a/olympics/testdata/tests/athlete-info/14_out.json b/olympics/testdata/tests/athlete-info/14/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/14_out.json rename to olympics/testdata/tests/athlete-info/14/out.json diff --git a/olympics/testdata/tests/athlete-info/15_in.json b/olympics/testdata/tests/athlete-info/15/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/15_in.json rename to olympics/testdata/tests/athlete-info/15/in.json diff --git a/olympics/testdata/tests/athlete-info/15_out.json b/olympics/testdata/tests/athlete-info/15/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/15_out.json rename to olympics/testdata/tests/athlete-info/15/out.json diff --git a/olympics/testdata/tests/athlete-info/16_in.json b/olympics/testdata/tests/athlete-info/16/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/16_in.json rename to olympics/testdata/tests/athlete-info/16/in.json diff --git a/olympics/testdata/tests/athlete-info/16_out.json b/olympics/testdata/tests/athlete-info/16/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/16_out.json rename to olympics/testdata/tests/athlete-info/16/out.json diff --git a/olympics/testdata/tests/athlete-info/17_in.json b/olympics/testdata/tests/athlete-info/17/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/17_in.json rename to olympics/testdata/tests/athlete-info/17/in.json diff --git a/olympics/testdata/tests/athlete-info/17_out.json b/olympics/testdata/tests/athlete-info/17/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/17_out.json rename to olympics/testdata/tests/athlete-info/17/out.json diff --git a/olympics/testdata/tests/athlete-info/18_in.json b/olympics/testdata/tests/athlete-info/18/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/18_in.json rename to olympics/testdata/tests/athlete-info/18/in.json diff --git a/olympics/testdata/tests/athlete-info/18_out.json b/olympics/testdata/tests/athlete-info/18/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/18_out.json rename to olympics/testdata/tests/athlete-info/18/out.json diff --git a/olympics/testdata/tests/athlete-info/19_in.json b/olympics/testdata/tests/athlete-info/19/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/19_in.json rename to olympics/testdata/tests/athlete-info/19/in.json diff --git a/olympics/testdata/tests/athlete-info/19_out.json b/olympics/testdata/tests/athlete-info/19/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/19_out.json rename to olympics/testdata/tests/athlete-info/19/out.json diff --git a/olympics/testdata/tests/athlete-info/2_in.json b/olympics/testdata/tests/athlete-info/2/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/2_in.json rename to olympics/testdata/tests/athlete-info/2/in.json diff --git a/olympics/testdata/tests/athlete-info/2_out.json b/olympics/testdata/tests/athlete-info/2/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/2_out.json rename to olympics/testdata/tests/athlete-info/2/out.json diff --git a/olympics/testdata/tests/athlete-info/20_in.json b/olympics/testdata/tests/athlete-info/20/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/20_in.json rename to olympics/testdata/tests/athlete-info/20/in.json diff --git a/olympics/testdata/tests/athlete-info/20_out.json b/olympics/testdata/tests/athlete-info/20/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/20_out.json rename to olympics/testdata/tests/athlete-info/20/out.json diff --git a/olympics/testdata/tests/athlete-info/21_in.json b/olympics/testdata/tests/athlete-info/21/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/21_in.json rename to olympics/testdata/tests/athlete-info/21/in.json diff --git a/olympics/testdata/tests/athlete-info/21_out.json b/olympics/testdata/tests/athlete-info/21/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/21_out.json rename to olympics/testdata/tests/athlete-info/21/out.json diff --git a/olympics/testdata/tests/athlete-info/22_in.json b/olympics/testdata/tests/athlete-info/22/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/22_in.json rename to olympics/testdata/tests/athlete-info/22/in.json diff --git a/olympics/testdata/tests/athlete-info/22_out.json b/olympics/testdata/tests/athlete-info/22/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/22_out.json rename to olympics/testdata/tests/athlete-info/22/out.json diff --git a/olympics/testdata/tests/athlete-info/23_in.json b/olympics/testdata/tests/athlete-info/23/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/23_in.json rename to olympics/testdata/tests/athlete-info/23/in.json diff --git a/olympics/testdata/tests/athlete-info/23_out.json b/olympics/testdata/tests/athlete-info/23/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/23_out.json rename to olympics/testdata/tests/athlete-info/23/out.json diff --git a/olympics/testdata/tests/athlete-info/24_in.json b/olympics/testdata/tests/athlete-info/24/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/24_in.json rename to olympics/testdata/tests/athlete-info/24/in.json diff --git a/olympics/testdata/tests/athlete-info/24_out.json b/olympics/testdata/tests/athlete-info/24/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/24_out.json rename to olympics/testdata/tests/athlete-info/24/out.json diff --git a/olympics/testdata/tests/athlete-info/25_in.json b/olympics/testdata/tests/athlete-info/25/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/25_in.json rename to olympics/testdata/tests/athlete-info/25/in.json diff --git a/olympics/testdata/tests/athlete-info/25_out.json b/olympics/testdata/tests/athlete-info/25/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/25_out.json rename to olympics/testdata/tests/athlete-info/25/out.json diff --git a/olympics/testdata/tests/athlete-info/26_in.json b/olympics/testdata/tests/athlete-info/26/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/26_in.json rename to olympics/testdata/tests/athlete-info/26/in.json diff --git a/olympics/testdata/tests/athlete-info/26_out.json b/olympics/testdata/tests/athlete-info/26/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/26_out.json rename to olympics/testdata/tests/athlete-info/26/out.json diff --git a/olympics/testdata/tests/athlete-info/27_in.json b/olympics/testdata/tests/athlete-info/27/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/27_in.json rename to olympics/testdata/tests/athlete-info/27/in.json diff --git a/olympics/testdata/tests/athlete-info/27_out.json b/olympics/testdata/tests/athlete-info/27/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/27_out.json rename to olympics/testdata/tests/athlete-info/27/out.json diff --git a/olympics/testdata/tests/athlete-info/28_in.json b/olympics/testdata/tests/athlete-info/28/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/28_in.json rename to olympics/testdata/tests/athlete-info/28/in.json diff --git a/olympics/testdata/tests/athlete-info/28_out.json b/olympics/testdata/tests/athlete-info/28/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/28_out.json rename to olympics/testdata/tests/athlete-info/28/out.json diff --git a/olympics/testdata/tests/athlete-info/29_in.json b/olympics/testdata/tests/athlete-info/29/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/29_in.json rename to olympics/testdata/tests/athlete-info/29/in.json diff --git a/olympics/testdata/tests/athlete-info/29_out.json b/olympics/testdata/tests/athlete-info/29/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/29_out.json rename to olympics/testdata/tests/athlete-info/29/out.json diff --git a/olympics/testdata/tests/athlete-info/3_in.json b/olympics/testdata/tests/athlete-info/3/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/3_in.json rename to olympics/testdata/tests/athlete-info/3/in.json diff --git a/olympics/testdata/tests/athlete-info/3_out.json b/olympics/testdata/tests/athlete-info/3/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/3_out.json rename to olympics/testdata/tests/athlete-info/3/out.json diff --git a/olympics/testdata/tests/athlete-info/4_in.json b/olympics/testdata/tests/athlete-info/4/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/4_in.json rename to olympics/testdata/tests/athlete-info/4/in.json diff --git a/olympics/testdata/tests/athlete-info/4_out.json b/olympics/testdata/tests/athlete-info/4/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/4_out.json rename to olympics/testdata/tests/athlete-info/4/out.json diff --git a/olympics/testdata/tests/athlete-info/5_in.json b/olympics/testdata/tests/athlete-info/5/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/5_in.json rename to olympics/testdata/tests/athlete-info/5/in.json diff --git a/olympics/testdata/tests/athlete-info/5_out.json b/olympics/testdata/tests/athlete-info/5/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/5_out.json rename to olympics/testdata/tests/athlete-info/5/out.json diff --git a/olympics/testdata/tests/athlete-info/6_in.json b/olympics/testdata/tests/athlete-info/6/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/6_in.json rename to olympics/testdata/tests/athlete-info/6/in.json diff --git a/olympics/testdata/tests/athlete-info/6_out.json b/olympics/testdata/tests/athlete-info/6/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/6_out.json rename to olympics/testdata/tests/athlete-info/6/out.json diff --git a/olympics/testdata/tests/athlete-info/7_in.json b/olympics/testdata/tests/athlete-info/7/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/7_in.json rename to olympics/testdata/tests/athlete-info/7/in.json diff --git a/olympics/testdata/tests/athlete-info/7_out.json b/olympics/testdata/tests/athlete-info/7/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/7_out.json rename to olympics/testdata/tests/athlete-info/7/out.json diff --git a/olympics/testdata/tests/athlete-info/8_in.json b/olympics/testdata/tests/athlete-info/8/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/8_in.json rename to olympics/testdata/tests/athlete-info/8/in.json diff --git a/olympics/testdata/tests/athlete-info/8_out.json b/olympics/testdata/tests/athlete-info/8/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/8_out.json rename to olympics/testdata/tests/athlete-info/8/out.json diff --git a/olympics/testdata/tests/athlete-info/9_in.json b/olympics/testdata/tests/athlete-info/9/in.json similarity index 100% rename from olympics/testdata/tests/athlete-info/9_in.json rename to olympics/testdata/tests/athlete-info/9/in.json diff --git a/olympics/testdata/tests/athlete-info/9_out.json b/olympics/testdata/tests/athlete-info/9/out.json similarity index 100% rename from olympics/testdata/tests/athlete-info/9_out.json rename to olympics/testdata/tests/athlete-info/9/out.json diff --git a/olympics/testdata/tests/top-athletes-in-sport/0/in.json b/olympics/testdata/tests/top-athletes-in-sport/0/in.json new file mode 100644 index 0000000..58bc335 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/0/in.json @@ -0,0 +1 @@ +{"sport": "Nordic Combined", "limit": 3} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/0/out.json b/olympics/testdata/tests/top-athletes-in-sport/0/out.json new file mode 100644 index 0000000..a62f1be --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/0/out.json @@ -0,0 +1 @@ +[{"athlete":"Felix Gottwald","country":"Austria","medals":{"gold":3,"silver":1,"bronze":3,"total":7},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":3,"total":3},"2006":{"gold":2,"silver":1,"bronze":0,"total":3},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Samppa Lajunen","country":"Finland","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2002":{"gold":3,"silver":0,"bronze":0,"total":3}}},{"athlete":"Mario Stecher","country":"Austria","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/0_in.json b/olympics/testdata/tests/top-athletes-in-sport/0_in.json deleted file mode 100644 index 5077324..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/0_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Speed Skating", "limit": 2} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/0_out.json b/olympics/testdata/tests/top-athletes-in-sport/0_out.json deleted file mode 100644 index 68ec604..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/0_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Claudia Pechstein","country":"Germany","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2002":{"gold":2,"silver":0,"bronze":0,"total":2},"2006":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Anni Friesinger-Postma","country":"Germany","medals":{"gold":3,"silver":0,"bronze":1,"total":4},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":1,"total":2},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/1/in.json b/olympics/testdata/tests/top-athletes-in-sport/1/in.json new file mode 100644 index 0000000..64a996b --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/1/in.json @@ -0,0 +1 @@ +{"sport": "Table Tennis", "limit": 16} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/11_out.json b/olympics/testdata/tests/top-athletes-in-sport/1/out.json similarity index 54% rename from olympics/testdata/tests/top-athletes-in-sport/11_out.json rename to olympics/testdata/tests/top-athletes-in-sport/1/out.json index c1c848e..3541fd7 100644 --- a/olympics/testdata/tests/top-athletes-in-sport/11_out.json +++ b/olympics/testdata/tests/top-athletes-in-sport/1/out.json @@ -1 +1 @@ -[{"athlete":"Wang Nan","country":"China","medals":{"gold":4,"silver":1,"bronze":0,"total":5},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Zhang Yining","country":"China","medals":{"gold":4,"silver":0,"bronze":0,"total":4},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Ma Lin","country":"China","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Wang Hao","country":"China","medals":{"gold":2,"silver":3,"bronze":0,"total":5},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Guo Yue","country":"China","medals":{"gold":2,"silver":0,"bronze":2,"total":4},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Wang Liqin","country":"China","medals":{"gold":2,"silver":0,"bronze":2,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2}}},{"athlete":"Li Xiaoxia","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Zhang Jike","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}}] \ No newline at end of file +[{"athlete":"Wang Nan","country":"China","medals":{"gold":4,"silver":1,"bronze":0,"total":5},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Zhang Yining","country":"China","medals":{"gold":4,"silver":0,"bronze":0,"total":4},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Ma Lin","country":"China","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Wang Hao","country":"China","medals":{"gold":2,"silver":3,"bronze":0,"total":5},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Guo Yue","country":"China","medals":{"gold":2,"silver":0,"bronze":2,"total":4},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Wang Liqin","country":"China","medals":{"gold":2,"silver":0,"bronze":2,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2}}},{"athlete":"Li Xiaoxia","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Zhang Jike","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Yu Seung-Min","country":"South Korea","medals":{"gold":1,"silver":1,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Ding Ning","country":"China","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Kong Linghui","country":"China","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Li Ju","country":"China","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Chen Qi","country":"China","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Ma Long","country":"China","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Yan Sen","country":"China","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Dmitrij Ovtcharov","country":"Germany","medals":{"gold":0,"silver":1,"bronze":2,"total":3},"medals_by_year":{"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":0,"silver":0,"bronze":2,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/10/in.json b/olympics/testdata/tests/top-athletes-in-sport/10/in.json new file mode 100644 index 0000000..8828b49 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/10/in.json @@ -0,0 +1 @@ +{"sport": "Archery", "limit": 9} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/10/out.json b/olympics/testdata/tests/top-athletes-in-sport/10/out.json new file mode 100644 index 0000000..2f5c707 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/10/out.json @@ -0,0 +1 @@ +[{"athlete":"Park Seong-Hyeon","country":"South Korea","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Yun Mi-Jin","country":"South Korea","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Lee Seong-Jin","country":"South Korea","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Marco Galiazzo","country":"Italy","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Park Gyeong-Mo","country":"South Korea","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Im Dong-Hyeon","country":"South Korea","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Jang Yong-Ho","country":"South Korea","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Ki Bo-Bae","country":"South Korea","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Zhang Juanjuan","country":"China","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/10_in.json b/olympics/testdata/tests/top-athletes-in-sport/10_in.json deleted file mode 100644 index 6331a21..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/10_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Alpine Skiing", "limit": 3} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/10_out.json b/olympics/testdata/tests/top-athletes-in-sport/10_out.json deleted file mode 100644 index 68f4592..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/10_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Janica Kostelic","country":"Croatia","medals":{"gold":4,"silver":2,"bronze":0,"total":6},"medals_by_year":{"2002":{"gold":3,"silver":1,"bronze":0,"total":4},"2006":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Kjetil André Aamodt","country":"Norway","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2002":{"gold":2,"silver":0,"bronze":0,"total":2},"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Benjamin Raich","country":"Austria","medals":{"gold":2,"silver":0,"bronze":2,"total":4},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":2,"total":2},"2006":{"gold":2,"silver":0,"bronze":0,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/11/in.json b/olympics/testdata/tests/top-athletes-in-sport/11/in.json new file mode 100644 index 0000000..05ccb91 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/11/in.json @@ -0,0 +1 @@ +{"sport": "Volleyball", "limit": 8} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/11/out.json b/olympics/testdata/tests/top-athletes-in-sport/11/out.json new file mode 100644 index 0000000..e8bd956 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/11/out.json @@ -0,0 +1 @@ +[{"athlete":"Fabi","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Fabiana","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Paula","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Pereira de Carvalho Endres Jaque","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Sheilla","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Thaísa","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Dante","country":"Brazil","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Giba","country":"Brazil","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/11_in.json b/olympics/testdata/tests/top-athletes-in-sport/11_in.json deleted file mode 100644 index 8f7aecd..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/11_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Table Tennis", "limit": 8} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/12/in.json b/olympics/testdata/tests/top-athletes-in-sport/12/in.json new file mode 100644 index 0000000..511315a --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/12/in.json @@ -0,0 +1 @@ +{"sport": "Diving", "limit": 8} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/12/out.json b/olympics/testdata/tests/top-athletes-in-sport/12/out.json new file mode 100644 index 0000000..9c35eec --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/12/out.json @@ -0,0 +1 @@ +[{"athlete":"Guo Jingjing","country":"China","medals":{"gold":4,"silver":2,"bronze":0,"total":6},"medals_by_year":{"2000":{"gold":0,"silver":2,"bronze":0,"total":2},"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Wu Minxia","country":"China","medals":{"gold":4,"silver":1,"bronze":1,"total":6},"medals_by_year":{"2004":{"gold":1,"silver":1,"bronze":0,"total":2},"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Chen Ruolin","country":"China","medals":{"gold":4,"silver":0,"bronze":0,"total":4},"medals_by_year":{"2008":{"gold":2,"silver":0,"bronze":0,"total":2},"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Qin Kai","country":"China","medals":{"gold":2,"silver":1,"bronze":1,"total":4},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Tian Liang","country":"China","medals":{"gold":2,"silver":1,"bronze":1,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":1,"total":2}}},{"athlete":"Xiong Ni","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Yuliya Pakhalina","country":"Russia","medals":{"gold":1,"silver":3,"bronze":1,"total":5},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":0,"silver":1,"bronze":1,"total":2},"2008":{"gold":0,"silver":2,"bronze":0,"total":2}}},{"athlete":"Dmitry Sautin","country":"Russia","medals":{"gold":1,"silver":2,"bronze":3,"total":6},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":2,"total":4},"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/12_in.json b/olympics/testdata/tests/top-athletes-in-sport/12_in.json deleted file mode 100644 index cdbd30f..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/12_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Cross Country", "limit": 7} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/12_out.json b/olympics/testdata/tests/top-athletes-in-sport/12_out.json deleted file mode 100644 index 64e2c16..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/12_out.json +++ /dev/null @@ -1 +0,0 @@ -sport 'Cross Country' not found diff --git a/olympics/testdata/tests/top-athletes-in-sport/13/in.json b/olympics/testdata/tests/top-athletes-in-sport/13/in.json new file mode 100644 index 0000000..eef3f4c --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/13/in.json @@ -0,0 +1 @@ +{"sport": "Badminton", "limit": 1} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/13/out.json b/olympics/testdata/tests/top-athletes-in-sport/13/out.json new file mode 100644 index 0000000..3ca3abb --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/13/out.json @@ -0,0 +1 @@ +[{"athlete":"Gao Ling","country":"China","medals":{"gold":2,"silver":1,"bronze":1,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":1,"total":2},"2004":{"gold":1,"silver":1,"bronze":0,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/13_in.json b/olympics/testdata/tests/top-athletes-in-sport/13_in.json deleted file mode 100644 index 4c1c9c9..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/13_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Weightlifting", "limit": 7} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/13_out.json b/olympics/testdata/tests/top-athletes-in-sport/13_out.json deleted file mode 100644 index 83e534a..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/13_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Chen Yanqing","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Liu Chunhong","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Hossein Reza Zadeh","country":"Iran","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Ilya Ilyin","country":"Kazakhstan","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Halil Mutlu","country":"Turkey","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Jang Mi-Ran","country":"South Korea","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Zhang Xiangxiang","country":"China","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2000":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/14/in.json b/olympics/testdata/tests/top-athletes-in-sport/14/in.json new file mode 100644 index 0000000..ab3e94d --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/14/in.json @@ -0,0 +1 @@ +{"sport": "Taekwondo", "limit": 10} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/14/out.json b/olympics/testdata/tests/top-athletes-in-sport/14/out.json new file mode 100644 index 0000000..a7676d7 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/14/out.json @@ -0,0 +1 @@ +[{"athlete":"Hadi Saei","country":"Iran","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2000":{"gold":0,"silver":0,"bronze":1,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Hwang Gyeong-Seon","country":"South Korea","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Steven Lopez","country":"United States","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Chen Zhong","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Wu Jingyu","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Chu Mu-Yen","country":"Chinese Taipei","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"María Espinoza","country":"Mexico","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Servet Tazegül","country":"Turkey","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2008":{"gold":0,"silver":0,"bronze":1,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Carlo Molfetta","country":"Italy","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Chen Shih-Hsien","country":"Chinese Taipei","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/14_in.json b/olympics/testdata/tests/top-athletes-in-sport/14_in.json deleted file mode 100644 index b9b8254..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/14_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Bobsleigh", "limit": 0} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/14_out.json b/olympics/testdata/tests/top-athletes-in-sport/14_out.json deleted file mode 100644 index ec747fa..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/14_out.json +++ /dev/null @@ -1 +0,0 @@ -null \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/15/in.json b/olympics/testdata/tests/top-athletes-in-sport/15/in.json new file mode 100644 index 0000000..19be251 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/15/in.json @@ -0,0 +1 @@ +{"sport": "Figure Skating", "limit": 5} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/15/out.json b/olympics/testdata/tests/top-athletes-in-sport/15/out.json new file mode 100644 index 0000000..17c9095 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/15/out.json @@ -0,0 +1 @@ +[{"athlete":"Yevgeny Plyushchenko","country":"Russia","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2002":{"gold":0,"silver":1,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Shen Xue","country":"China","medals":{"gold":1,"silver":0,"bronze":2,"total":3},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2006":{"gold":0,"silver":0,"bronze":1,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Zhao Hongbo","country":"China","medals":{"gold":1,"silver":0,"bronze":2,"total":3},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2006":{"gold":0,"silver":0,"bronze":1,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Aleksey Yagudin","country":"Russia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Anton Sikharulidze","country":"Russia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/15_in.json b/olympics/testdata/tests/top-athletes-in-sport/15_in.json deleted file mode 100644 index 3b7673f..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/15_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Triathlon", "limit": 9} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/15_out.json b/olympics/testdata/tests/top-athletes-in-sport/15_out.json deleted file mode 100644 index a5cf125..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/15_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Simon Whitfield","country":"Canada","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Emma Snowsill","country":"Australia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Kate Allen","country":"Austria","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Jan Frodeno","country":"Germany","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Alistair Brownlee","country":"Great Britain","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Hamish Carter","country":"New Zealand","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Brigitte McMahon","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Nicola Spirig","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Bevan Docherty","country":"New Zealand","medals":{"gold":0,"silver":1,"bronze":1,"total":2},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/16/in.json b/olympics/testdata/tests/top-athletes-in-sport/16/in.json new file mode 100644 index 0000000..d75e48c --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/16/in.json @@ -0,0 +1 @@ +{"sport": "Triathlon", "limit": 11} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/16/out.json b/olympics/testdata/tests/top-athletes-in-sport/16/out.json new file mode 100644 index 0000000..accf6db --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/16/out.json @@ -0,0 +1 @@ +[{"athlete":"Simon Whitfield","country":"Canada","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Alistair Brownlee","country":"Great Britain","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Brigitte McMahon","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Emma Snowsill","country":"Australia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Hamish Carter","country":"New Zealand","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Jan Frodeno","country":"Germany","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Kate Allen","country":"Austria","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Nicola Spirig","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Bevan Docherty","country":"New Zealand","medals":{"gold":0,"silver":1,"bronze":1,"total":2},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Javier Gómez","country":"Spain","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Lisa Nordén","country":"Sweden","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/16_in.json b/olympics/testdata/tests/top-athletes-in-sport/16_in.json deleted file mode 100644 index 216d202..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/16_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Equestrian", "limit": 4} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/16_out.json b/olympics/testdata/tests/top-athletes-in-sport/16_out.json deleted file mode 100644 index deeca5e..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/16_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Anky van Grunsven","country":"Netherlands","medals":{"gold":3,"silver":2,"bronze":1,"total":6},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Isabell Werth","country":"Germany","medals":{"gold":2,"silver":2,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":0,"total":2},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Ulla Salzgeber","country":"Germany","medals":{"gold":2,"silver":1,"bronze":1,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":1,"total":2},"2004":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Heike Kemmer","country":"Germany","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/17/in.json b/olympics/testdata/tests/top-athletes-in-sport/17/in.json new file mode 100644 index 0000000..010b163 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/17/in.json @@ -0,0 +1 @@ +{"sport": "Swimming", "limit": 15} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/17/out.json b/olympics/testdata/tests/top-athletes-in-sport/17/out.json new file mode 100644 index 0000000..3166fce --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/17/out.json @@ -0,0 +1 @@ +[{"athlete":"Michael Phelps","country":"United States","medals":{"gold":18,"silver":2,"bronze":2,"total":22},"medals_by_year":{"2004":{"gold":6,"silver":0,"bronze":2,"total":8},"2008":{"gold":8,"silver":0,"bronze":0,"total":8},"2012":{"gold":4,"silver":2,"bronze":0,"total":6}}},{"athlete":"Ryan Lochte","country":"United States","medals":{"gold":5,"silver":3,"bronze":3,"total":11},"medals_by_year":{"2004":{"gold":1,"silver":1,"bronze":0,"total":2},"2008":{"gold":2,"silver":0,"bronze":2,"total":4},"2012":{"gold":2,"silver":2,"bronze":1,"total":5}}},{"athlete":"Ian Thorpe","country":"Australia","medals":{"gold":5,"silver":3,"bronze":1,"total":9},"medals_by_year":{"2000":{"gold":3,"silver":2,"bronze":0,"total":5},"2004":{"gold":2,"silver":1,"bronze":1,"total":4}}},{"athlete":"Aaron Peirsol","country":"United States","medals":{"gold":5,"silver":2,"bronze":0,"total":7},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":3,"silver":0,"bronze":0,"total":3},"2008":{"gold":2,"silver":1,"bronze":0,"total":3}}},{"athlete":"Inge de Bruijn","country":"Netherlands","medals":{"gold":4,"silver":2,"bronze":2,"total":8},"medals_by_year":{"2000":{"gold":3,"silver":1,"bronze":0,"total":4},"2004":{"gold":1,"silver":1,"bronze":2,"total":4}}},{"athlete":"Jason Lezak","country":"United States","medals":{"gold":4,"silver":2,"bronze":2,"total":8},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":1,"total":2},"2008":{"gold":2,"silver":0,"bronze":1,"total":3},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Matt Grevers","country":"United States","medals":{"gold":4,"silver":2,"bronze":0,"total":6},"medals_by_year":{"2008":{"gold":2,"silver":1,"bronze":0,"total":3},"2012":{"gold":2,"silver":1,"bronze":0,"total":3}}},{"athlete":"Kosuke Kitajima","country":"Japan","medals":{"gold":4,"silver":1,"bronze":2,"total":7},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":1,"total":3},"2008":{"gold":2,"silver":0,"bronze":1,"total":3},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Libby Lenton-Trickett","country":"Australia","medals":{"gold":4,"silver":1,"bronze":2,"total":7},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":1,"total":2},"2008":{"gold":2,"silver":1,"bronze":1,"total":4},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Yana Klochkova","country":"Ukraine","medals":{"gold":4,"silver":1,"bronze":0,"total":5},"medals_by_year":{"2000":{"gold":2,"silver":1,"bronze":0,"total":3},"2004":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Missy Franklin","country":"United States","medals":{"gold":4,"silver":0,"bronze":1,"total":5},"medals_by_year":{"2012":{"gold":4,"silver":0,"bronze":1,"total":5}}},{"athlete":"Dana Vollmer","country":"United States","medals":{"gold":4,"silver":0,"bronze":0,"total":4},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":3,"silver":0,"bronze":0,"total":3}}},{"athlete":"Lenny Krayzelburg","country":"United States","medals":{"gold":4,"silver":0,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":3,"silver":0,"bronze":0,"total":3},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Leisel Jones","country":"Australia","medals":{"gold":3,"silver":5,"bronze":1,"total":9},"medals_by_year":{"2000":{"gold":0,"silver":2,"bronze":0,"total":2},"2004":{"gold":1,"silver":1,"bronze":1,"total":3},"2008":{"gold":2,"silver":1,"bronze":0,"total":3},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Natalie Coughlin","country":"United States","medals":{"gold":3,"silver":4,"bronze":5,"total":12},"medals_by_year":{"2004":{"gold":2,"silver":2,"bronze":1,"total":5},"2008":{"gold":1,"silver":2,"bronze":3,"total":6},"2012":{"gold":0,"silver":0,"bronze":1,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/17_in.json b/olympics/testdata/tests/top-athletes-in-sport/17_in.json deleted file mode 100644 index 1b87096..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/17_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Boxing", "limit": 10} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/17_out.json b/olympics/testdata/tests/top-athletes-in-sport/17_out.json deleted file mode 100644 index d448e1d..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/17_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Zou Shiming","country":"China","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Mario Kindelán","country":"Cuba","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Guillermo Rigondeaux","country":"Cuba","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Aleksey Tishchenko","country":"Russia","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Vasyl Lomachenko","country":"Ukraine","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Roberto Cammarelle","country":"Italy","medals":{"gold":1,"silver":1,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Gaydarbek Gaydarbekov","country":"Russia","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Manus Boonjumnong","country":"Thailand","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Roniel Iglesias","country":"Cuba","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2008":{"gold":0,"silver":0,"bronze":1,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Oleg Saitov","country":"Russia","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":0,"silver":0,"bronze":1,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/8_in.json b/olympics/testdata/tests/top-athletes-in-sport/18/in.json similarity index 100% rename from olympics/testdata/tests/top-athletes-in-sport/8_in.json rename to olympics/testdata/tests/top-athletes-in-sport/18/in.json diff --git a/olympics/testdata/tests/top-athletes-in-sport/8_out.json b/olympics/testdata/tests/top-athletes-in-sport/18/out.json similarity index 61% rename from olympics/testdata/tests/top-athletes-in-sport/8_out.json rename to olympics/testdata/tests/top-athletes-in-sport/18/out.json index 141a62e..e8cee8b 100644 --- a/olympics/testdata/tests/top-athletes-in-sport/8_out.json +++ b/olympics/testdata/tests/top-athletes-in-sport/18/out.json @@ -1 +1 @@ -[{"athlete":"Zou Shiming","country":"China","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Mario Kindelán","country":"Cuba","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Guillermo Rigondeaux","country":"Cuba","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Aleksey Tishchenko","country":"Russia","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Vasyl Lomachenko","country":"Ukraine","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Roberto Cammarelle","country":"Italy","medals":{"gold":1,"silver":1,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Gaydarbek Gaydarbekov","country":"Russia","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Manus Boonjumnong","country":"Thailand","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Roniel Iglesias","country":"Cuba","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2008":{"gold":0,"silver":0,"bronze":1,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file +[{"athlete":"Zou Shiming","country":"China","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Aleksey Tishchenko","country":"Russia","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Guillermo Rigondeaux","country":"Cuba","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Mario Kindelán","country":"Cuba","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Vasyl Lomachenko","country":"Ukraine","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Roberto Cammarelle","country":"Italy","medals":{"gold":1,"silver":1,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Gaydarbek Gaydarbekov","country":"Russia","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Manus Boonjumnong","country":"Thailand","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Oleg Saitov","country":"Russia","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":0,"silver":0,"bronze":1,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/18_in.json b/olympics/testdata/tests/top-athletes-in-sport/18_in.json deleted file mode 100644 index 10f02e8..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/18_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Modern Pentathlon", "limit": 14} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/18_out.json b/olympics/testdata/tests/top-athletes-in-sport/18_out.json deleted file mode 100644 index b0bf56f..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/18_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Andrey Moiseyev","country":"Russia","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"David Svoboda","country":"Czech Republic","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Lena Schöneborn","country":"Germany","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Steph Cook","country":"Great Britain","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Zsuzsa Voros","country":"Hungary","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Laura Asadauskaite","country":"Lithuania","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Dmitry Svatkovsky","country":"Russia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Andrejus Zadneprovskis","country":"Lithuania","medals":{"gold":0,"silver":1,"bronze":1,"total":2},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Cao Zhongrong","country":"China","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Samantha Murray","country":"Great Britain","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Heather Fell","country":"Great Britain","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Gábor Balogh","country":"Hungary","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Jelena Rublevska","country":"Latvia","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Edvinas Krungolcas","country":"Lithuania","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/19/in.json b/olympics/testdata/tests/top-athletes-in-sport/19/in.json new file mode 100644 index 0000000..fca0cd8 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/19/in.json @@ -0,0 +1 @@ +{"sport": "Snowboarding", "limit": 14} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/19/out.json b/olympics/testdata/tests/top-athletes-in-sport/19/out.json new file mode 100644 index 0000000..1ac562d --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/19/out.json @@ -0,0 +1 @@ +[{"athlete":"Philipp Schoch","country":"Switzerland","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Seth Wescott","country":"United States","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Shaun White","country":"United States","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Hannah Teter","country":"United States","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Kelly Clark","country":"United States","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Daniela Meuli","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Isabelle Blanc","country":"France","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Jasey-Jay Anderson","country":"Canada","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Maëlle Ricker","country":"Canada","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Nicolien Sauerbreij","country":"Netherlands","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Ross Powers","country":"United States","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Tanja Frieden","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Torah Bright","country":"Australia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Danny Kass","country":"United States","medals":{"gold":0,"silver":2,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":0,"silver":1,"bronze":0,"total":1},"2006":{"gold":0,"silver":1,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/19_in.json b/olympics/testdata/tests/top-athletes-in-sport/19_in.json deleted file mode 100644 index 3d95d45..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/19_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Tennis", "limit": 8} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/19_out.json b/olympics/testdata/tests/top-athletes-in-sport/19_out.json deleted file mode 100644 index 4dea2c5..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/19_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Serena Williams","country":"United States","medals":{"gold":4,"silver":0,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Venus Williams","country":"United States","medals":{"gold":4,"silver":0,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Nicolás Massú","country":"Chile","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Fernando González","country":"Chile","medals":{"gold":1,"silver":1,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":1,"total":2},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Andy Murray","country":"Great Britain","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Yelena Dementyeva","country":"Russia","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Roger Federer","country":"Switzerland","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Mike Bryan","country":"United States","medals":{"gold":1,"silver":0,"bronze":2,"total":3},"medals_by_year":{"2008":{"gold":0,"silver":0,"bronze":1,"total":1},"2012":{"gold":1,"silver":0,"bronze":1,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/1_in.json b/olympics/testdata/tests/top-athletes-in-sport/1_in.json deleted file mode 100644 index 8d35f80..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/1_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Volleyball", "limit": 16} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/1_out.json b/olympics/testdata/tests/top-athletes-in-sport/1_out.json deleted file mode 100644 index dbf80a0..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/1_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Sheilla","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Thaísa","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Pereira de Carvalho Endres Jaque","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Fabi","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Paula","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Fabiana","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Giba","country":"Brazil","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Dante","country":"Brazil","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Rodrigão","country":"Brazil","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Sergey Tetyukhin","country":"Russia","medals":{"gold":1,"silver":1,"bronze":2,"total":4},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Gustavo","country":"Brazil","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"André Nascimento","country":"Brazil","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"André Heller","country":"Brazil","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Anderson","country":"Brazil","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Escadinha","country":"Brazil","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Walewska","country":"Brazil","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2000":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/2/in.json b/olympics/testdata/tests/top-athletes-in-sport/2/in.json new file mode 100644 index 0000000..7a5aeaf --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/2/in.json @@ -0,0 +1 @@ +{"sport": "Luge", "limit": 3} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/2/out.json b/olympics/testdata/tests/top-athletes-in-sport/2/out.json new file mode 100644 index 0000000..1f0f732 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/2/out.json @@ -0,0 +1 @@ +[{"athlete":"Armin Zöggeler","country":"Italy","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Andreas Linger","country":"Austria","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Sylke Otto","country":"Germany","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/20/in.json b/olympics/testdata/tests/top-athletes-in-sport/20/in.json new file mode 100644 index 0000000..41ec0b2 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/20/in.json @@ -0,0 +1 @@ +{"sport": "Canoeing", "limit": 6} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/20/out.json b/olympics/testdata/tests/top-athletes-in-sport/20/out.json new file mode 100644 index 0000000..d6a5ae6 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/20/out.json @@ -0,0 +1 @@ +[{"athlete":"Katrin Wagner-Augustin","country":"Germany","medals":{"gold":4,"silver":1,"bronze":1,"total":6},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Katalin Kovács","country":"Hungary","medals":{"gold":3,"silver":5,"bronze":0,"total":8},"medals_by_year":{"2000":{"gold":0,"silver":2,"bronze":0,"total":2},"2004":{"gold":1,"silver":1,"bronze":0,"total":2},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Natasa Douchev-Janics","country":"Hungary","medals":{"gold":3,"silver":2,"bronze":1,"total":6},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":0,"silver":1,"bronze":1,"total":2}}},{"athlete":"Birgit Fischer-Schmidt","country":"Germany","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Zoltán Kammerer","country":"Hungary","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Pavol Hochschorner","country":"Slovakia","medals":{"gold":3,"silver":0,"bronze":1,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":0,"bronze":1,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/20_in.json b/olympics/testdata/tests/top-athletes-in-sport/20_in.json deleted file mode 100644 index 3a8182d..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/20_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Synchronized Swimming", "limit": 13} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/20_out.json b/olympics/testdata/tests/top-athletes-in-sport/20_out.json deleted file mode 100644 index f99f9ec..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/20_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Anastasiya Davydova","country":"Russia","medals":{"gold":5,"silver":0,"bronze":0,"total":5},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":2,"silver":0,"bronze":0,"total":2},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Anastasiya Yermakova","country":"Russia","medals":{"gold":4,"silver":0,"bronze":0,"total":4},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Mariya Kiselyova","country":"Russia","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Nataliya Ishchenko","country":"Russia","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Olga Brusnikina","country":"Russia","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Mariya Gromova","country":"Russia","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Svetlana Romashina","country":"Russia","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Elvira Khasyanova","country":"Russia","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Yelena Azarova","country":"Russia","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Anna Shorina","country":"Russia","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Olga Novokshchenova","country":"Russia","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Olga Vasyukova","country":"Russia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Yuliya Vasilyeva","country":"Russia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/21/in.json b/olympics/testdata/tests/top-athletes-in-sport/21/in.json new file mode 100644 index 0000000..47c5673 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/21/in.json @@ -0,0 +1 @@ +{"sport": "Luge", "limit": 4} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/21/out.json b/olympics/testdata/tests/top-athletes-in-sport/21/out.json new file mode 100644 index 0000000..65f76bf --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/21/out.json @@ -0,0 +1 @@ +[{"athlete":"Armin Zöggeler","country":"Italy","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Andreas Linger","country":"Austria","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Sylke Otto","country":"Germany","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Wolfgang Linger","country":"Austria","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/21_in.json b/olympics/testdata/tests/top-athletes-in-sport/21_in.json deleted file mode 100644 index 4308e43..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/21_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Alpine Skiing", "limit": 5} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/21_out.json b/olympics/testdata/tests/top-athletes-in-sport/21_out.json deleted file mode 100644 index c42922c..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/21_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Janica Kostelic","country":"Croatia","medals":{"gold":4,"silver":2,"bronze":0,"total":6},"medals_by_year":{"2002":{"gold":3,"silver":1,"bronze":0,"total":4},"2006":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Kjetil André Aamodt","country":"Norway","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2002":{"gold":2,"silver":0,"bronze":0,"total":2},"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Benjamin Raich","country":"Austria","medals":{"gold":2,"silver":0,"bronze":2,"total":4},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":2,"total":2},"2006":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Michaela Dorfmeister","country":"Austria","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Maria Riesch","country":"Germany","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2010":{"gold":2,"silver":0,"bronze":0,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/22/in.json b/olympics/testdata/tests/top-athletes-in-sport/22/in.json new file mode 100644 index 0000000..28c2361 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/22/in.json @@ -0,0 +1 @@ +{"sport": "Triathlon", "limit": 5} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/22/out.json b/olympics/testdata/tests/top-athletes-in-sport/22/out.json new file mode 100644 index 0000000..afe1954 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/22/out.json @@ -0,0 +1 @@ +[{"athlete":"Simon Whitfield","country":"Canada","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Alistair Brownlee","country":"Great Britain","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Brigitte McMahon","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Emma Snowsill","country":"Australia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Hamish Carter","country":"New Zealand","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/22_in.json b/olympics/testdata/tests/top-athletes-in-sport/22_in.json deleted file mode 100644 index 0d7ac5b..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/22_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Fencing", "limit": 3} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/22_out.json b/olympics/testdata/tests/top-athletes-in-sport/22_out.json deleted file mode 100644 index cc481e3..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/22_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Valentina Vezzali","country":"Italy","medals":{"gold":5,"silver":0,"bronze":2,"total":7},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":1,"silver":0,"bronze":1,"total":2}}},{"athlete":"Julien Pillet","country":"France","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Fabrice Jeannet","country":"France","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/23/in.json b/olympics/testdata/tests/top-athletes-in-sport/23/in.json new file mode 100644 index 0000000..bb83a2b --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/23/in.json @@ -0,0 +1 @@ +{"sport": "Speed Skating", "limit": 14} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/23/out.json b/olympics/testdata/tests/top-athletes-in-sport/23/out.json new file mode 100644 index 0000000..524d93f --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/23/out.json @@ -0,0 +1 @@ +[{"athlete":"Claudia Pechstein","country":"Germany","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2002":{"gold":2,"silver":0,"bronze":0,"total":2},"2006":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Anni Friesinger-Postma","country":"Germany","medals":{"gold":3,"silver":0,"bronze":1,"total":4},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":1,"total":2},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Shani Davis","country":"United States","medals":{"gold":2,"silver":2,"bronze":0,"total":4},"medals_by_year":{"2006":{"gold":1,"silver":1,"bronze":0,"total":2},"2010":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Jochem Uytdehaage","country":"Netherlands","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2002":{"gold":2,"silver":1,"bronze":0,"total":3}}},{"athlete":"Enrico Fabris","country":"Italy","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2006":{"gold":2,"silver":0,"bronze":1,"total":3}}},{"athlete":"Ireen Wüst","country":"Netherlands","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":1,"total":2},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Martina Sáblíková","country":"Czech Republic","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2010":{"gold":2,"silver":0,"bronze":1,"total":3}}},{"athlete":"Daniela Anschütz-Thoms","country":"Germany","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Cindy Klassen","country":"Canada","medals":{"gold":1,"silver":2,"bronze":3,"total":6},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2006":{"gold":1,"silver":2,"bronze":2,"total":5}}},{"athlete":"Chad Hedrick","country":"United States","medals":{"gold":1,"silver":2,"bronze":2,"total":5},"medals_by_year":{"2006":{"gold":1,"silver":1,"bronze":1,"total":3},"2010":{"gold":0,"silver":1,"bronze":1,"total":2}}},{"athlete":"Sabine Völker","country":"Germany","medals":{"gold":1,"silver":2,"bronze":1,"total":4},"medals_by_year":{"2002":{"gold":0,"silver":2,"bronze":1,"total":3},"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Stephanie Beckert","country":"Germany","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2010":{"gold":1,"silver":2,"bronze":0,"total":3}}},{"athlete":"Clara Hughes","country":"Canada","medals":{"gold":1,"silver":1,"bronze":2,"total":4},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2006":{"gold":1,"silver":1,"bronze":0,"total":2},"2010":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Sven Kramer","country":"Netherlands","medals":{"gold":1,"silver":1,"bronze":2,"total":4},"medals_by_year":{"2006":{"gold":0,"silver":1,"bronze":1,"total":2},"2010":{"gold":1,"silver":0,"bronze":1,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/23_in.json b/olympics/testdata/tests/top-athletes-in-sport/23_in.json deleted file mode 100644 index 1173bbc..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/23_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Boxing", "limit": 4} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/23_out.json b/olympics/testdata/tests/top-athletes-in-sport/23_out.json deleted file mode 100644 index 6d75c79..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/23_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Zou Shiming","country":"China","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Mario Kindelán","country":"Cuba","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Guillermo Rigondeaux","country":"Cuba","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Aleksey Tishchenko","country":"Russia","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/24/in.json b/olympics/testdata/tests/top-athletes-in-sport/24/in.json new file mode 100644 index 0000000..6670e22 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/24/in.json @@ -0,0 +1 @@ +{"sport": "Hockey", "limit": 8} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/3_out.json b/olympics/testdata/tests/top-athletes-in-sport/24/out.json similarity index 59% rename from olympics/testdata/tests/top-athletes-in-sport/3_out.json rename to olympics/testdata/tests/top-athletes-in-sport/24/out.json index 077c3a4..00e01c6 100644 --- a/olympics/testdata/tests/top-athletes-in-sport/3_out.json +++ b/olympics/testdata/tests/top-athletes-in-sport/24/out.json @@ -1 +1 @@ -[{"athlete":"Christopher Zeller","country":"Germany","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Matthias Witthaus","country":"Germany","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Timo Weß","country":"Germany","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Benjamin Weß","country":"Germany","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Max Weinhold","country":"Germany","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Philipp Zeller","country":"Germany","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file +[{"athlete":"Christopher Zeller","country":"Germany","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Matthias Witthaus","country":"Germany","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Timo Weß","country":"Germany","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Benjamin Weß","country":"Germany","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Ellen Hoog","country":"Netherlands","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Eva de Goede","country":"Netherlands","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Lidewij Welten","country":"Netherlands","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Maartje Goderie","country":"Netherlands","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/24_in.json b/olympics/testdata/tests/top-athletes-in-sport/24_in.json deleted file mode 100644 index 92f3cf1..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/24_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Canoeing", "limit": 13} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/24_out.json b/olympics/testdata/tests/top-athletes-in-sport/24_out.json deleted file mode 100644 index ef752cb..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/24_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Katrin Wagner-Augustin","country":"Germany","medals":{"gold":4,"silver":1,"bronze":1,"total":6},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Katalin Kovács","country":"Hungary","medals":{"gold":3,"silver":5,"bronze":0,"total":8},"medals_by_year":{"2000":{"gold":0,"silver":2,"bronze":0,"total":2},"2004":{"gold":1,"silver":1,"bronze":0,"total":2},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Natasa Douchev-Janics","country":"Hungary","medals":{"gold":3,"silver":2,"bronze":1,"total":6},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":0,"silver":1,"bronze":1,"total":2}}},{"athlete":"Birgit Fischer-Schmidt","country":"Germany","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Zoltán Kammerer","country":"Hungary","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Pavol Hochschorner","country":"Slovakia","medals":{"gold":3,"silver":0,"bronze":1,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Peter Hochschorner","country":"Slovakia","medals":{"gold":3,"silver":0,"bronze":1,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Tony Estanguet","country":"France","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Botond Storcz","country":"Hungary","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Andreas Dittmer","country":"Germany","medals":{"gold":2,"silver":1,"bronze":1,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":1,"total":2},"2004":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Eirik Verås Larsen","country":"Norway","medals":{"gold":2,"silver":1,"bronze":1,"total":4},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":1,"total":2},"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Danuta Kozák","country":"Hungary","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Meng Guanliang","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/25/in.json b/olympics/testdata/tests/top-athletes-in-sport/25/in.json new file mode 100644 index 0000000..3f33752 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/25/in.json @@ -0,0 +1 @@ +{"sport": "Biathlon", "limit": 2} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/25/out.json b/olympics/testdata/tests/top-athletes-in-sport/25/out.json new file mode 100644 index 0000000..7e77139 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/25/out.json @@ -0,0 +1 @@ +[{"athlete":"Ole Einar Bjørndalen","country":"Norway","medals":{"gold":5,"silver":3,"bronze":1,"total":9},"medals_by_year":{"2002":{"gold":4,"silver":0,"bronze":0,"total":4},"2006":{"gold":0,"silver":2,"bronze":1,"total":3},"2010":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Kati Wilhelm","country":"Germany","medals":{"gold":3,"silver":3,"bronze":1,"total":7},"medals_by_year":{"2002":{"gold":2,"silver":1,"bronze":0,"total":3},"2006":{"gold":1,"silver":2,"bronze":0,"total":3},"2010":{"gold":0,"silver":0,"bronze":1,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/25_in.json b/olympics/testdata/tests/top-athletes-in-sport/25_in.json deleted file mode 100644 index 94e7e57..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/25_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Rowing", "limit": 7} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/25_out.json b/olympics/testdata/tests/top-athletes-in-sport/25_out.json deleted file mode 100644 index bb54a20..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/25_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Georgeta Damian-Andrunache","country":"Romania","medals":{"gold":5,"silver":0,"bronze":1,"total":6},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":1,"silver":0,"bronze":1,"total":2}}},{"athlete":"Viorica Susanu","country":"Romania","medals":{"gold":4,"silver":0,"bronze":1,"total":5},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":1,"silver":0,"bronze":1,"total":2}}},{"athlete":"Doina Ignat","country":"Romania","medals":{"gold":3,"silver":0,"bronze":1,"total":4},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Drew Ginn","country":"Australia","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Olaf Tufte","country":"Norway","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Caryn Davies","country":"United States","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Mary Whipple","country":"United States","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/26/in.json b/olympics/testdata/tests/top-athletes-in-sport/26/in.json new file mode 100644 index 0000000..848a8ca --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/26/in.json @@ -0,0 +1 @@ +{"sport": "Skeleton", "limit": 7} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/26/out.json b/olympics/testdata/tests/top-athletes-in-sport/26/out.json new file mode 100644 index 0000000..42f5b54 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/26/out.json @@ -0,0 +1 @@ +[{"athlete":"Amy Williams","country":"Great Britain","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Duff Gibson","country":"Canada","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Jim Shea Jr.","country":"United States","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Jon Montgomery","country":"Canada","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Maya Pedersen","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Tristan Gale","country":"United States","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Jeff Pain","country":"Canada","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2006":{"gold":0,"silver":1,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/26_in.json b/olympics/testdata/tests/top-athletes-in-sport/26_in.json deleted file mode 100644 index 44a41ba..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/26_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Luge", "limit": 1} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/26_out.json b/olympics/testdata/tests/top-athletes-in-sport/26_out.json deleted file mode 100644 index 211e32f..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/26_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Armin Zöggeler","country":"Italy","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":0,"bronze":1,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/27/in.json b/olympics/testdata/tests/top-athletes-in-sport/27/in.json new file mode 100644 index 0000000..2a4af56 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/27/in.json @@ -0,0 +1 @@ +{"sport": "Nordic Combined", "limit": 6} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/7_out.json b/olympics/testdata/tests/top-athletes-in-sport/27/out.json similarity index 74% rename from olympics/testdata/tests/top-athletes-in-sport/7_out.json rename to olympics/testdata/tests/top-athletes-in-sport/27/out.json index d20ea35..3642e93 100644 --- a/olympics/testdata/tests/top-athletes-in-sport/7_out.json +++ b/olympics/testdata/tests/top-athletes-in-sport/27/out.json @@ -1 +1 @@ -[{"athlete":"Felix Gottwald","country":"Austria","medals":{"gold":3,"silver":1,"bronze":3,"total":7},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":3,"total":3},"2006":{"gold":2,"silver":1,"bronze":0,"total":3},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Samppa Lajunen","country":"Finland","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2002":{"gold":3,"silver":0,"bronze":0,"total":3}}},{"athlete":"Mario Stecher","country":"Austria","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Georg Hettich","country":"Germany","medals":{"gold":1,"silver":2,"bronze":1,"total":4},"medals_by_year":{"2002":{"gold":0,"silver":1,"bronze":0,"total":1},"2006":{"gold":1,"silver":1,"bronze":1,"total":3}}},{"athlete":"Jaakko Tallus","country":"Finland","medals":{"gold":1,"silver":1,"bronze":1,"total":3},"medals_by_year":{"2002":{"gold":1,"silver":1,"bronze":0,"total":2},"2006":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Bill Demong","country":"United States","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2010":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Bernhard Gruber","country":"Austria","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":1,"total":2}}},{"athlete":"Christoph Bieler","country":"Austria","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file +[{"athlete":"Felix Gottwald","country":"Austria","medals":{"gold":3,"silver":1,"bronze":3,"total":7},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":3,"total":3},"2006":{"gold":2,"silver":1,"bronze":0,"total":3},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Samppa Lajunen","country":"Finland","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2002":{"gold":3,"silver":0,"bronze":0,"total":3}}},{"athlete":"Mario Stecher","country":"Austria","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Georg Hettich","country":"Germany","medals":{"gold":1,"silver":2,"bronze":1,"total":4},"medals_by_year":{"2002":{"gold":0,"silver":1,"bronze":0,"total":1},"2006":{"gold":1,"silver":1,"bronze":1,"total":3}}},{"athlete":"Jaakko Tallus","country":"Finland","medals":{"gold":1,"silver":1,"bronze":1,"total":3},"medals_by_year":{"2002":{"gold":1,"silver":1,"bronze":0,"total":2},"2006":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Bill Demong","country":"United States","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2010":{"gold":1,"silver":1,"bronze":0,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/27_in.json b/olympics/testdata/tests/top-athletes-in-sport/27_in.json deleted file mode 100644 index 1faee9b..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/27_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Ski Jumping", "limit": 6} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/27_out.json b/olympics/testdata/tests/top-athletes-in-sport/27_out.json deleted file mode 100644 index dc10602..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/27_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Simon Ammann","country":"Switzerland","medals":{"gold":4,"silver":0,"bronze":0,"total":4},"medals_by_year":{"2002":{"gold":2,"silver":0,"bronze":0,"total":2},"2010":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Thomas Morgenstern","country":"Austria","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2006":{"gold":2,"silver":0,"bronze":0,"total":2},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Andreas Kofler","country":"Austria","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2006":{"gold":1,"silver":1,"bronze":0,"total":2},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Sven Hannawald","country":"Germany","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Michael Uhrmann","country":"Germany","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Martin Schmitt","country":"Germany","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":1,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/28/in.json b/olympics/testdata/tests/top-athletes-in-sport/28/in.json new file mode 100644 index 0000000..844067a --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/28/in.json @@ -0,0 +1 @@ +{"sport": "Cross Country Skiing", "limit": 3} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/28/out.json b/olympics/testdata/tests/top-athletes-in-sport/28/out.json new file mode 100644 index 0000000..ec3089b --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/28/out.json @@ -0,0 +1 @@ +[{"athlete":"Marit Bjørgen","country":"Norway","medals":{"gold":3,"silver":3,"bronze":1,"total":7},"medals_by_year":{"2002":{"gold":0,"silver":1,"bronze":0,"total":1},"2006":{"gold":0,"silver":1,"bronze":0,"total":1},"2010":{"gold":3,"silver":1,"bronze":1,"total":5}}},{"athlete":"Claudia Künzel-Nystad","country":"Germany","medals":{"gold":2,"silver":3,"bronze":0,"total":5},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":0,"silver":2,"bronze":0,"total":2},"2010":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Evi Sachenbacher-Stehle","country":"Germany","medals":{"gold":2,"silver":3,"bronze":0,"total":5},"medals_by_year":{"2002":{"gold":1,"silver":1,"bronze":0,"total":2},"2006":{"gold":0,"silver":1,"bronze":0,"total":1},"2010":{"gold":1,"silver":1,"bronze":0,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/28_in.json b/olympics/testdata/tests/top-athletes-in-sport/28_in.json deleted file mode 100644 index 72d0be0..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/28_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Speed Skating", "limit": 5} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/28_out.json b/olympics/testdata/tests/top-athletes-in-sport/28_out.json deleted file mode 100644 index f26f14c..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/28_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Claudia Pechstein","country":"Germany","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2002":{"gold":2,"silver":0,"bronze":0,"total":2},"2006":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Anni Friesinger-Postma","country":"Germany","medals":{"gold":3,"silver":0,"bronze":1,"total":4},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":1,"total":2},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Shani Davis","country":"United States","medals":{"gold":2,"silver":2,"bronze":0,"total":4},"medals_by_year":{"2006":{"gold":1,"silver":1,"bronze":0,"total":2},"2010":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Jochem Uytdehaage","country":"Netherlands","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2002":{"gold":2,"silver":1,"bronze":0,"total":3}}},{"athlete":"Martina Sáblíková","country":"Czech Republic","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2010":{"gold":2,"silver":0,"bronze":1,"total":3}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/29/in.json b/olympics/testdata/tests/top-athletes-in-sport/29/in.json new file mode 100644 index 0000000..85e1f51 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/29/in.json @@ -0,0 +1 @@ +{"sport": "Biathlon", "limit": 10} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/29/out.json b/olympics/testdata/tests/top-athletes-in-sport/29/out.json new file mode 100644 index 0000000..a1b3e67 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/29/out.json @@ -0,0 +1 @@ +[{"athlete":"Ole Einar Bjørndalen","country":"Norway","medals":{"gold":5,"silver":3,"bronze":1,"total":9},"medals_by_year":{"2002":{"gold":4,"silver":0,"bronze":0,"total":4},"2006":{"gold":0,"silver":2,"bronze":1,"total":3},"2010":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Kati Wilhelm","country":"Germany","medals":{"gold":3,"silver":3,"bronze":1,"total":7},"medals_by_year":{"2002":{"gold":2,"silver":1,"bronze":0,"total":3},"2006":{"gold":1,"silver":2,"bronze":0,"total":3},"2010":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Michael Greis","country":"Germany","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2006":{"gold":3,"silver":0,"bronze":0,"total":3}}},{"athlete":"Sven Fischer","country":"Germany","medals":{"gold":2,"silver":2,"bronze":1,"total":5},"medals_by_year":{"2002":{"gold":0,"silver":2,"bronze":0,"total":2},"2006":{"gold":2,"silver":0,"bronze":1,"total":3}}},{"athlete":"Andrea Henkel","country":"Germany","medals":{"gold":2,"silver":1,"bronze":1,"total":4},"medals_by_year":{"2002":{"gold":2,"silver":0,"bronze":0,"total":2},"2006":{"gold":0,"silver":1,"bronze":0,"total":1},"2010":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Halvard Hanevold","country":"Norway","medals":{"gold":2,"silver":1,"bronze":1,"total":4},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":0,"silver":1,"bronze":1,"total":2},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Emil Hegle Svendsen","country":"Norway","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2010":{"gold":2,"silver":1,"bronze":0,"total":3}}},{"athlete":"Magdalena Neuner","country":"Germany","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2010":{"gold":2,"silver":1,"bronze":0,"total":3}}},{"athlete":"Olga Zaytseva","country":"Russia","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Olga Pylyova-Medvedtseva","country":"Russia","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":1,"total":2},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/29_in.json b/olympics/testdata/tests/top-athletes-in-sport/29_in.json deleted file mode 100644 index 42dcfdc..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/29_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Cycling", "limit": 2} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/29_out.json b/olympics/testdata/tests/top-athletes-in-sport/29_out.json deleted file mode 100644 index 7495c6b..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/29_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Chris Hoy","country":"Great Britain","medals":{"gold":6,"silver":1,"bronze":0,"total":7},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":3,"silver":0,"bronze":0,"total":3},"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Bradley Wiggins","country":"Great Britain","medals":{"gold":4,"silver":1,"bronze":2,"total":7},"medals_by_year":{"2000":{"gold":0,"silver":0,"bronze":1,"total":1},"2004":{"gold":1,"silver":1,"bronze":1,"total":3},"2008":{"gold":2,"silver":0,"bronze":0,"total":2},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/2_in.json b/olympics/testdata/tests/top-athletes-in-sport/2_in.json deleted file mode 100644 index 3095572..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/2_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Gymnastics", "limit": 12} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/2_out.json b/olympics/testdata/tests/top-athletes-in-sport/2_out.json deleted file mode 100644 index 126f644..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/2_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Zou Kai","country":"China","medals":{"gold":5,"silver":0,"bronze":1,"total":6},"medals_by_year":{"2008":{"gold":3,"silver":0,"bronze":0,"total":3},"2012":{"gold":2,"silver":0,"bronze":1,"total":3}}},{"athlete":"Li Xiaopeng","country":"China","medals":{"gold":4,"silver":0,"bronze":1,"total":5},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Yang Wei","country":"China","medals":{"gold":3,"silver":2,"bronze":0,"total":5},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":0,"total":2},"2008":{"gold":2,"silver":1,"bronze":0,"total":3}}},{"athlete":"Catalina Ponor","country":"Romania","medals":{"gold":3,"silver":1,"bronze":1,"total":5},"medals_by_year":{"2004":{"gold":3,"silver":0,"bronze":0,"total":3},"2012":{"gold":0,"silver":1,"bronze":1,"total":2}}},{"athlete":"Chen Yibing","country":"China","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2008":{"gold":2,"silver":0,"bronze":0,"total":2},"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Aleksey Nemov","country":"Russia","medals":{"gold":2,"silver":1,"bronze":3,"total":6},"medals_by_year":{"2000":{"gold":2,"silver":1,"bronze":3,"total":6}}},{"athlete":"Yelena Zamolodchikova","country":"Russia","medals":{"gold":2,"silver":1,"bronze":1,"total":4},"medals_by_year":{"2000":{"gold":2,"silver":1,"bronze":0,"total":3},"2004":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"He Kexin","country":"China","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2008":{"gold":2,"silver":0,"bronze":0,"total":2},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Gervasio Deferr","country":"Spain","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Sandra Izbasa","country":"Romania","medals":{"gold":2,"silver":0,"bronze":2,"total":4},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":1,"silver":0,"bronze":1,"total":2}}},{"athlete":"Simona Amânar","country":"Romania","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":1,"total":3}}},{"athlete":"Aly Raisman","country":"United States","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2012":{"gold":2,"silver":0,"bronze":1,"total":3}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/3/in.json b/olympics/testdata/tests/top-athletes-in-sport/3/in.json new file mode 100644 index 0000000..acc6f8b --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/3/in.json @@ -0,0 +1 @@ +{"sport": "Cycling", "limit": 8} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/3/out.json b/olympics/testdata/tests/top-athletes-in-sport/3/out.json new file mode 100644 index 0000000..8890452 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/3/out.json @@ -0,0 +1 @@ +[{"athlete":"Chris Hoy","country":"Great Britain","medals":{"gold":6,"silver":1,"bronze":0,"total":7},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":3,"silver":0,"bronze":0,"total":3},"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Bradley Wiggins","country":"Great Britain","medals":{"gold":4,"silver":1,"bronze":2,"total":7},"medals_by_year":{"2000":{"gold":0,"silver":0,"bronze":1,"total":1},"2004":{"gold":1,"silver":1,"bronze":1,"total":3},"2008":{"gold":2,"silver":0,"bronze":0,"total":2},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Leontien Zijlaard-van Moorsel","country":"Netherlands","medals":{"gold":4,"silver":1,"bronze":1,"total":6},"medals_by_year":{"2000":{"gold":3,"silver":1,"bronze":0,"total":4},"2004":{"gold":1,"silver":0,"bronze":1,"total":2}}},{"athlete":"Jason Kenny","country":"Great Britain","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Joan Llaneras","country":"Spain","medals":{"gold":2,"silver":2,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Anna Meares","country":"Australia","medals":{"gold":2,"silver":1,"bronze":2,"total":5},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":1,"total":2},"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":1,"total":2}}},{"athlete":"Florian Rousseau","country":"France","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2000":{"gold":2,"silver":1,"bronze":0,"total":3}}},{"athlete":"Vicki Pendleton","country":"Great Britain","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/3_in.json b/olympics/testdata/tests/top-athletes-in-sport/3_in.json deleted file mode 100644 index f458525..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/3_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Hockey", "limit": 6} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/4/in.json b/olympics/testdata/tests/top-athletes-in-sport/4/in.json new file mode 100644 index 0000000..5c1d870 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/4/in.json @@ -0,0 +1 @@ +{"sport": "Athletics", "limit": 7} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/9_out.json b/olympics/testdata/tests/top-athletes-in-sport/4/out.json similarity index 64% rename from olympics/testdata/tests/top-athletes-in-sport/9_out.json rename to olympics/testdata/tests/top-athletes-in-sport/4/out.json index c17736e..ae8c424 100644 --- a/olympics/testdata/tests/top-athletes-in-sport/9_out.json +++ b/olympics/testdata/tests/top-athletes-in-sport/4/out.json @@ -1 +1 @@ -[{"athlete":"Usain Bolt","country":"Jamaica","medals":{"gold":6,"silver":0,"bronze":0,"total":6},"medals_by_year":{"2008":{"gold":3,"silver":0,"bronze":0,"total":3},"2012":{"gold":3,"silver":0,"bronze":0,"total":3}}},{"athlete":"Allyson Felix","country":"United States","medals":{"gold":4,"silver":2,"bronze":0,"total":6},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":3,"silver":0,"bronze":0,"total":3}}},{"athlete":"Sanya Richards-Ross","country":"United States","medals":{"gold":4,"silver":0,"bronze":1,"total":5},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Veronica Campbell-Brown","country":"Jamaica","medals":{"gold":3,"silver":2,"bronze":2,"total":7},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":2,"silver":0,"bronze":1,"total":3},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":1,"total":2}}},{"athlete":"Kenenisa Bekele","country":"Ethiopia","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2004":{"gold":1,"silver":1,"bronze":0,"total":2},"2008":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Jeremy Wariner","country":"United States","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Angelo Taylor","country":"United States","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":2,"silver":0,"bronze":0,"total":2},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Tirunesh Dibaba","country":"Ethiopia","medals":{"gold":3,"silver":0,"bronze":2,"total":5},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":2,"silver":0,"bronze":0,"total":2},"2012":{"gold":1,"silver":0,"bronze":1,"total":2}}}] \ No newline at end of file +[{"athlete":"Usain Bolt","country":"Jamaica","medals":{"gold":6,"silver":0,"bronze":0,"total":6},"medals_by_year":{"2008":{"gold":3,"silver":0,"bronze":0,"total":3},"2012":{"gold":3,"silver":0,"bronze":0,"total":3}}},{"athlete":"Allyson Felix","country":"United States","medals":{"gold":4,"silver":2,"bronze":0,"total":6},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":3,"silver":0,"bronze":0,"total":3}}},{"athlete":"Sanya Richards-Ross","country":"United States","medals":{"gold":4,"silver":0,"bronze":1,"total":5},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Veronica Campbell-Brown","country":"Jamaica","medals":{"gold":3,"silver":2,"bronze":2,"total":7},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":2,"silver":0,"bronze":1,"total":3},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":1,"total":2}}},{"athlete":"Angelo Taylor","country":"United States","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":2,"silver":0,"bronze":0,"total":2},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Jeremy Wariner","country":"United States","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Kenenisa Bekele","country":"Ethiopia","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2004":{"gold":1,"silver":1,"bronze":0,"total":2},"2008":{"gold":2,"silver":0,"bronze":0,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/4_in.json b/olympics/testdata/tests/top-athletes-in-sport/4_in.json deleted file mode 100644 index 56c64c6..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/4_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Badminton", "limit": 7} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/4_out.json b/olympics/testdata/tests/top-athletes-in-sport/4_out.json deleted file mode 100644 index 9971854..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/4_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Gao Ling","country":"China","medals":{"gold":2,"silver":1,"bronze":1,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":1,"total":2},"2004":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Zhang Jun","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Zhao Yunlei","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Zhang Ning","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Lin Dan","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Cai Yun","country":"China","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Yang Wei","country":"China","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/5/in.json b/olympics/testdata/tests/top-athletes-in-sport/5/in.json new file mode 100644 index 0000000..f9d57fc --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/5/in.json @@ -0,0 +1 @@ +{"sport": "Beach Volleyball", "limit": 3} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/5/out.json b/olympics/testdata/tests/top-athletes-in-sport/5/out.json new file mode 100644 index 0000000..cec4687 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/5/out.json @@ -0,0 +1 @@ +[{"athlete":"Kerri Walsh","country":"United States","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Misty May-Treanor","country":"United States","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Emanuel","country":"Brazil","medals":{"gold":1,"silver":1,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/5_in.json b/olympics/testdata/tests/top-athletes-in-sport/5_in.json deleted file mode 100644 index d62828b..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/5_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Beach Volleyball", "limit": 6} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/5_out.json b/olympics/testdata/tests/top-athletes-in-sport/5_out.json deleted file mode 100644 index 85c157f..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/5_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Misty May-Treanor","country":"United States","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Kerri Walsh","country":"United States","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Ricardo","country":"Brazil","medals":{"gold":1,"silver":1,"bronze":1,"total":3},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Emanuel","country":"Brazil","medals":{"gold":1,"silver":1,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Kerri-Ann Pottharst","country":"Australia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Natalie Cook","country":"Australia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/6/in.json b/olympics/testdata/tests/top-athletes-in-sport/6/in.json new file mode 100644 index 0000000..216adc2 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/6/in.json @@ -0,0 +1 @@ +{"sport": "Curling", "limit": 9} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/6/out.json b/olympics/testdata/tests/top-athletes-in-sport/6/out.json new file mode 100644 index 0000000..4fee5c0 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/6/out.json @@ -0,0 +1 @@ +[{"athlete":"Anette Norberg","country":"Sweden","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Anna Svärd-Le Moine","country":"Sweden","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Cathrine Lindahl","country":"Sweden","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Eva Lund","country":"Sweden","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Kevin Martin","country":"Canada","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":0,"silver":1,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Torger Nergård","country":"Norway","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Adam Enright","country":"Canada","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Ben Hebert","country":"Canada","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Bent Ånund Ramsfjell","country":"Norway","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/6_in.json b/olympics/testdata/tests/top-athletes-in-sport/6_in.json deleted file mode 100644 index ad6d081..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/6_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Judo", "limit": 2} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/6_out.json b/olympics/testdata/tests/top-athletes-in-sport/6_out.json deleted file mode 100644 index 1c7c26a..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/6_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"athlete":"Ryoko Tamura-Tani","country":"Japan","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Xian Dongmei","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/7/in.json b/olympics/testdata/tests/top-athletes-in-sport/7/in.json new file mode 100644 index 0000000..78d4edf --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/7/in.json @@ -0,0 +1 @@ +{"sport": "Triathlon", "limit": 10} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/7/out.json b/olympics/testdata/tests/top-athletes-in-sport/7/out.json new file mode 100644 index 0000000..7a10020 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/7/out.json @@ -0,0 +1 @@ +[{"athlete":"Simon Whitfield","country":"Canada","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Alistair Brownlee","country":"Great Britain","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Brigitte McMahon","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Emma Snowsill","country":"Australia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Hamish Carter","country":"New Zealand","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Jan Frodeno","country":"Germany","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Kate Allen","country":"Austria","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Nicola Spirig","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Bevan Docherty","country":"New Zealand","medals":{"gold":0,"silver":1,"bronze":1,"total":2},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Javier Gómez","country":"Spain","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/7_in.json b/olympics/testdata/tests/top-athletes-in-sport/7_in.json deleted file mode 100644 index f0d300b..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/7_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Nordic Combined", "limit": 8} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/8/in.json b/olympics/testdata/tests/top-athletes-in-sport/8/in.json new file mode 100644 index 0000000..c9426b7 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/8/in.json @@ -0,0 +1 @@ +{"sport": "Freestyle Skiing", "limit": 9} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/8/out.json b/olympics/testdata/tests/top-athletes-in-sport/8/out.json new file mode 100644 index 0000000..6a23014 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/8/out.json @@ -0,0 +1 @@ +[{"athlete":"Dale Begg-Smith","country":"Australia","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Jennifer Heil","country":"Canada","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Kari Traa","country":"Norway","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Aleksey Grishin","country":"Belarus","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Alisa Camplin","country":"Australia","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Alexandre Bilodeau","country":"Canada","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Aleš Valenta","country":"Czech Republic","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Ashleigh McIvor","country":"Canada","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Evelyne Leu","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/9/in.json b/olympics/testdata/tests/top-athletes-in-sport/9/in.json new file mode 100644 index 0000000..334e510 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/9/in.json @@ -0,0 +1 @@ +{"sport": "Canoeing", "limit": 4} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/9/out.json b/olympics/testdata/tests/top-athletes-in-sport/9/out.json new file mode 100644 index 0000000..24149aa --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/9/out.json @@ -0,0 +1 @@ +[{"athlete":"Katrin Wagner-Augustin","country":"Germany","medals":{"gold":4,"silver":1,"bronze":1,"total":6},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Katalin Kovács","country":"Hungary","medals":{"gold":3,"silver":5,"bronze":0,"total":8},"medals_by_year":{"2000":{"gold":0,"silver":2,"bronze":0,"total":2},"2004":{"gold":1,"silver":1,"bronze":0,"total":2},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Natasa Douchev-Janics","country":"Hungary","medals":{"gold":3,"silver":2,"bronze":1,"total":6},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":0,"silver":1,"bronze":1,"total":2}}},{"athlete":"Birgit Fischer-Schmidt","country":"Germany","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":1,"bronze":0,"total":2}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/9_in.json b/olympics/testdata/tests/top-athletes-in-sport/9_in.json deleted file mode 100644 index a54e665..0000000 --- a/olympics/testdata/tests/top-athletes-in-sport/9_in.json +++ /dev/null @@ -1 +0,0 @@ -{"sport": "Athletics", "limit": 8} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/0/in.json b/olympics/testdata/tests/top-countries-in-year/0/in.json new file mode 100644 index 0000000..fe79851 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/0/in.json @@ -0,0 +1 @@ +{"year": 2000, "limit": 104} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/0_out.json b/olympics/testdata/tests/top-countries-in-year/0/out.json similarity index 100% rename from olympics/testdata/tests/top-countries-in-year/0_out.json rename to olympics/testdata/tests/top-countries-in-year/0/out.json diff --git a/olympics/testdata/tests/top-countries-in-year/0_in.json b/olympics/testdata/tests/top-countries-in-year/0_in.json deleted file mode 100644 index 50fd2c3..0000000 --- a/olympics/testdata/tests/top-countries-in-year/0_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2000, "limit": 100} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/1/in.json b/olympics/testdata/tests/top-countries-in-year/1/in.json new file mode 100644 index 0000000..cda8e19 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/1/in.json @@ -0,0 +1 @@ +{"year": 2010, "limit": 103} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/17_out.json b/olympics/testdata/tests/top-countries-in-year/1/out.json similarity index 100% rename from olympics/testdata/tests/top-countries-in-year/17_out.json rename to olympics/testdata/tests/top-countries-in-year/1/out.json diff --git a/olympics/testdata/tests/top-countries-in-year/10/in.json b/olympics/testdata/tests/top-countries-in-year/10/in.json new file mode 100644 index 0000000..06507ae --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/10/in.json @@ -0,0 +1 @@ +{"year": 2004, "limit": 2} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/10/out.json b/olympics/testdata/tests/top-countries-in-year/10/out.json new file mode 100644 index 0000000..fca2485 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/10/out.json @@ -0,0 +1 @@ +[{"country":"United States","gold":118,"silver":75,"bronze":72,"total":265},{"country":"China","gold":52,"silver":27,"bronze":15,"total":94}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/10_in.json b/olympics/testdata/tests/top-countries-in-year/10_in.json deleted file mode 100644 index c1174da..0000000 --- a/olympics/testdata/tests/top-countries-in-year/10_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2000, "limit": 58} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/11/in.json b/olympics/testdata/tests/top-countries-in-year/11/in.json new file mode 100644 index 0000000..495fe0a --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/11/in.json @@ -0,0 +1 @@ +{"year": 2000, "limit": 74} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/24_out.json b/olympics/testdata/tests/top-countries-in-year/11/out.json similarity index 91% rename from olympics/testdata/tests/top-countries-in-year/24_out.json rename to olympics/testdata/tests/top-countries-in-year/11/out.json index 8e5beb0..486f126 100644 --- a/olympics/testdata/tests/top-countries-in-year/24_out.json +++ b/olympics/testdata/tests/top-countries-in-year/11/out.json @@ -1 +1 @@ -[{"country":"United States","gold":130,"silver":61,"bronze":52,"total":243},{"country":"Russia","gold":66,"silver":67,"bronze":54,"total":187},{"country":"Australia","gold":60,"silver":69,"bronze":54,"total":183},{"country":"China","gold":39,"silver":23,"bronze":17,"total":79},{"country":"Germany","gold":31,"silver":23,"bronze":64,"total":118},{"country":"Netherlands","gold":27,"silver":29,"bronze":23,"total":79},{"country":"Romania","gold":27,"silver":6,"bronze":13,"total":46},{"country":"Hungary","gold":25,"silver":24,"bronze":4,"total":53},{"country":"France","gold":22,"silver":30,"bronze":14,"total":66},{"country":"Great Britain","gold":22,"silver":20,"bronze":12,"total":54},{"country":"Italy","gold":22,"silver":14,"bronze":29,"total":65},{"country":"Norway","gold":20,"silver":4,"bronze":19,"total":43},{"country":"Cuba","gold":18,"silver":35,"bronze":12,"total":65},{"country":"Denmark","gold":18,"silver":3,"bronze":4,"total":25},{"country":"Cameroon","gold":18,"silver":0,"bronze":0,"total":18},{"country":"South Korea","gold":12,"silver":26,"bronze":35,"total":73},{"country":"Serbia and Montenegro","gold":11,"silver":1,"bronze":13,"total":25},{"country":"Poland","gold":7,"silver":10,"bronze":7,"total":24},{"country":"Nigeria","gold":6,"silver":2,"bronze":0,"total":8},{"country":"Bahamas","gold":6,"silver":0,"bronze":5,"total":11},{"country":"Japan","gold":5,"silver":31,"bronze":8,"total":44},{"country":"Bulgaria","gold":5,"silver":6,"bronze":2,"total":13},{"country":"Sweden","gold":4,"silver":20,"bronze":8,"total":32},{"country":"Greece","gold":4,"silver":6,"bronze":8,"total":18},{"country":"Canada","gold":4,"silver":4,"bronze":23,"total":31},{"country":"Ethiopia","gold":4,"silver":1,"bronze":3,"total":8},{"country":"Ukraine","gold":3,"silver":20,"bronze":12,"total":35},{"country":"Spain","gold":3,"silver":19,"bronze":20,"total":42},{"country":"Belarus","gold":3,"silver":8,"bronze":11,"total":22},{"country":"Kazakhstan","gold":3,"silver":4,"bronze":0,"total":7},{"country":"Finland","gold":3,"silver":1,"bronze":1,"total":5},{"country":"Austria","gold":3,"silver":1,"bronze":0,"total":4},{"country":"Turkey","gold":3,"silver":0,"bronze":2,"total":5},{"country":"Iran","gold":3,"silver":0,"bronze":1,"total":4},{"country":"Slovenia","gold":3,"silver":0,"bronze":0,"total":3},{"country":"Indonesia","gold":2,"silver":4,"bronze":2,"total":8},{"country":"Czech Republic","gold":2,"silver":3,"bronze":4,"total":9},{"country":"Kenya","gold":2,"silver":3,"bronze":2,"total":7},{"country":"Slovakia","gold":2,"silver":3,"bronze":1,"total":6},{"country":"Lithuania","gold":2,"silver":0,"bronze":15,"total":17},{"country":"Azerbaijan","gold":2,"silver":0,"bronze":1,"total":3},{"country":"Switzerland","gold":1,"silver":11,"bronze":2,"total":14},{"country":"Mexico","gold":1,"silver":2,"bronze":3,"total":6},{"country":"Algeria","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Uzbekistan","gold":1,"silver":1,"bronze":2,"total":4},{"country":"Latvia","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Croatia","gold":1,"silver":0,"bronze":9,"total":10},{"country":"New Zealand","gold":1,"silver":0,"bronze":3,"total":4},{"country":"Estonia","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Thailand","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Colombia","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Mozambique","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Jamaica","gold":0,"silver":20,"bronze":3,"total":23},{"country":"Argentina","gold":0,"silver":17,"bronze":3,"total":20},{"country":"Brazil","gold":0,"silver":12,"bronze":36,"total":48},{"country":"Belgium","gold":0,"silver":3,"bronze":4,"total":7},{"country":"South Africa","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Chinese Taipei","gold":0,"silver":1,"bronze":4,"total":5},{"country":"Morocco","gold":0,"silver":1,"bronze":4,"total":5},{"country":"North Korea","gold":0,"silver":1,"bronze":3,"total":4},{"country":"Moldova","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Saudi Arabia","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Trinidad and Tobago","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Ireland","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Sri Lanka","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Uruguay","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Vietnam","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Chile","gold":0,"silver":0,"bronze":17,"total":17},{"country":"Georgia","gold":0,"silver":0,"bronze":6,"total":6},{"country":"Costa Rica","gold":0,"silver":0,"bronze":2,"total":2},{"country":"Portugal","gold":0,"silver":0,"bronze":2,"total":2},{"country":"Armenia","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Barbados","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Iceland","gold":0,"silver":0,"bronze":1,"total":1},{"country":"India","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Israel","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Kuwait","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Kyrgyzstan","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Macedonia","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Qatar","gold":0,"silver":0,"bronze":1,"total":1}] \ No newline at end of file +[{"country":"United States","gold":130,"silver":61,"bronze":52,"total":243},{"country":"Russia","gold":66,"silver":67,"bronze":54,"total":187},{"country":"Australia","gold":60,"silver":69,"bronze":54,"total":183},{"country":"China","gold":39,"silver":23,"bronze":17,"total":79},{"country":"Germany","gold":31,"silver":23,"bronze":64,"total":118},{"country":"Netherlands","gold":27,"silver":29,"bronze":23,"total":79},{"country":"Romania","gold":27,"silver":6,"bronze":13,"total":46},{"country":"Hungary","gold":25,"silver":24,"bronze":4,"total":53},{"country":"France","gold":22,"silver":30,"bronze":14,"total":66},{"country":"Great Britain","gold":22,"silver":20,"bronze":12,"total":54},{"country":"Italy","gold":22,"silver":14,"bronze":29,"total":65},{"country":"Norway","gold":20,"silver":4,"bronze":19,"total":43},{"country":"Cuba","gold":18,"silver":35,"bronze":12,"total":65},{"country":"Denmark","gold":18,"silver":3,"bronze":4,"total":25},{"country":"Cameroon","gold":18,"silver":0,"bronze":0,"total":18},{"country":"South Korea","gold":12,"silver":26,"bronze":35,"total":73},{"country":"Serbia and Montenegro","gold":11,"silver":1,"bronze":13,"total":25},{"country":"Poland","gold":7,"silver":10,"bronze":7,"total":24},{"country":"Nigeria","gold":6,"silver":2,"bronze":0,"total":8},{"country":"Bahamas","gold":6,"silver":0,"bronze":5,"total":11},{"country":"Japan","gold":5,"silver":31,"bronze":8,"total":44},{"country":"Bulgaria","gold":5,"silver":6,"bronze":2,"total":13},{"country":"Sweden","gold":4,"silver":20,"bronze":8,"total":32},{"country":"Greece","gold":4,"silver":6,"bronze":8,"total":18},{"country":"Canada","gold":4,"silver":4,"bronze":23,"total":31},{"country":"Ethiopia","gold":4,"silver":1,"bronze":3,"total":8},{"country":"Ukraine","gold":3,"silver":20,"bronze":12,"total":35},{"country":"Spain","gold":3,"silver":19,"bronze":20,"total":42},{"country":"Belarus","gold":3,"silver":8,"bronze":11,"total":22},{"country":"Kazakhstan","gold":3,"silver":4,"bronze":0,"total":7},{"country":"Finland","gold":3,"silver":1,"bronze":1,"total":5},{"country":"Austria","gold":3,"silver":1,"bronze":0,"total":4},{"country":"Turkey","gold":3,"silver":0,"bronze":2,"total":5},{"country":"Iran","gold":3,"silver":0,"bronze":1,"total":4},{"country":"Slovenia","gold":3,"silver":0,"bronze":0,"total":3},{"country":"Indonesia","gold":2,"silver":4,"bronze":2,"total":8},{"country":"Czech Republic","gold":2,"silver":3,"bronze":4,"total":9},{"country":"Kenya","gold":2,"silver":3,"bronze":2,"total":7},{"country":"Slovakia","gold":2,"silver":3,"bronze":1,"total":6},{"country":"Lithuania","gold":2,"silver":0,"bronze":15,"total":17},{"country":"Azerbaijan","gold":2,"silver":0,"bronze":1,"total":3},{"country":"Switzerland","gold":1,"silver":11,"bronze":2,"total":14},{"country":"Mexico","gold":1,"silver":2,"bronze":3,"total":6},{"country":"Algeria","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Uzbekistan","gold":1,"silver":1,"bronze":2,"total":4},{"country":"Latvia","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Croatia","gold":1,"silver":0,"bronze":9,"total":10},{"country":"New Zealand","gold":1,"silver":0,"bronze":3,"total":4},{"country":"Estonia","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Thailand","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Colombia","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Mozambique","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Jamaica","gold":0,"silver":20,"bronze":3,"total":23},{"country":"Argentina","gold":0,"silver":17,"bronze":3,"total":20},{"country":"Brazil","gold":0,"silver":12,"bronze":36,"total":48},{"country":"Belgium","gold":0,"silver":3,"bronze":4,"total":7},{"country":"South Africa","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Chinese Taipei","gold":0,"silver":1,"bronze":4,"total":5},{"country":"Morocco","gold":0,"silver":1,"bronze":4,"total":5},{"country":"North Korea","gold":0,"silver":1,"bronze":3,"total":4},{"country":"Moldova","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Saudi Arabia","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Trinidad and Tobago","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Ireland","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Sri Lanka","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Uruguay","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Vietnam","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Chile","gold":0,"silver":0,"bronze":17,"total":17},{"country":"Georgia","gold":0,"silver":0,"bronze":6,"total":6},{"country":"Costa Rica","gold":0,"silver":0,"bronze":2,"total":2},{"country":"Portugal","gold":0,"silver":0,"bronze":2,"total":2},{"country":"Armenia","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Barbados","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Iceland","gold":0,"silver":0,"bronze":1,"total":1}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/11_in.json b/olympics/testdata/tests/top-countries-in-year/11_in.json deleted file mode 100644 index ae7620f..0000000 --- a/olympics/testdata/tests/top-countries-in-year/11_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2008, "limit": 42} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/11_out.json b/olympics/testdata/tests/top-countries-in-year/11_out.json deleted file mode 100644 index 32e0ebb..0000000 --- a/olympics/testdata/tests/top-countries-in-year/11_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"country":"United States","gold":127,"silver":109,"bronze":81,"total":317},{"country":"China","gold":74,"silver":53,"bronze":57,"total":184},{"country":"Russia","gold":43,"silver":46,"bronze":57,"total":146},{"country":"Germany","gold":42,"silver":16,"bronze":41,"total":99},{"country":"South Korea","gold":41,"silver":11,"bronze":26,"total":78},{"country":"Netherlands","gold":39,"silver":18,"bronze":4,"total":61},{"country":"Australia","gold":31,"silver":42,"bronze":76,"total":149},{"country":"Great Britain","gold":31,"silver":25,"bronze":21,"total":77},{"country":"France","gold":25,"silver":24,"bronze":28,"total":77},{"country":"Japan","gold":23,"silver":11,"bronze":17,"total":51},{"country":"Argentina","gold":20,"silver":0,"bronze":31,"total":51},{"country":"Hungary","gold":16,"silver":8,"bronze":3,"total":27},{"country":"Norway","gold":16,"silver":5,"bronze":1,"total":22},{"country":"Brazil","gold":14,"silver":34,"bronze":26,"total":74},{"country":"Canada","gold":11,"silver":13,"bronze":10,"total":34},{"country":"Ukraine","gold":10,"silver":5,"bronze":16,"total":31},{"country":"Jamaica","gold":10,"silver":3,"bronze":6,"total":19},{"country":"Italy","gold":8,"silver":14,"bronze":21,"total":43},{"country":"Belarus","gold":8,"silver":5,"bronze":17,"total":30},{"country":"Spain","gold":7,"silver":47,"bronze":16,"total":70},{"country":"Poland","gold":6,"silver":13,"bronze":1,"total":20},{"country":"Denmark","gold":6,"silver":7,"bronze":6,"total":19},{"country":"Kenya","gold":6,"silver":4,"bronze":4,"total":14},{"country":"Romania","gold":5,"silver":1,"bronze":16,"total":22},{"country":"Slovakia","gold":4,"silver":5,"bronze":1,"total":10},{"country":"New Zealand","gold":4,"silver":2,"bronze":9,"total":15},{"country":"Ethiopia","gold":4,"silver":1,"bronze":2,"total":7},{"country":"Czech Republic","gold":3,"silver":4,"bronze":0,"total":7},{"country":"Switzerland","gold":3,"silver":1,"bronze":7,"total":11},{"country":"Georgia","gold":3,"silver":0,"bronze":3,"total":6},{"country":"Cuba","gold":2,"silver":34,"bronze":11,"total":47},{"country":"Kazakhstan","gold":2,"silver":4,"bronze":7,"total":13},{"country":"Indonesia","gold":2,"silver":2,"bronze":3,"total":7},{"country":"Mongolia","gold":2,"silver":2,"bronze":0,"total":4},{"country":"Thailand","gold":2,"silver":2,"bronze":0,"total":4},{"country":"North Korea","gold":2,"silver":1,"bronze":3,"total":6},{"country":"Mexico","gold":2,"silver":0,"bronze":2,"total":4},{"country":"Turkey","gold":1,"silver":4,"bronze":3,"total":8},{"country":"Belgium","gold":1,"silver":4,"bronze":0,"total":5},{"country":"Zimbabwe","gold":1,"silver":3,"bronze":0,"total":4},{"country":"Azerbaijan","gold":1,"silver":2,"bronze":4,"total":7},{"country":"Uzbekistan","gold":1,"silver":2,"bronze":3,"total":6}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/12/in.json b/olympics/testdata/tests/top-countries-in-year/12/in.json new file mode 100644 index 0000000..4bb5985 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/12/in.json @@ -0,0 +1 @@ +{"year": 2010, "limit": 14} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/16_out.json b/olympics/testdata/tests/top-countries-in-year/12/out.json similarity index 68% rename from olympics/testdata/tests/top-countries-in-year/16_out.json rename to olympics/testdata/tests/top-countries-in-year/12/out.json index 75cb1e2..8287f77 100644 --- a/olympics/testdata/tests/top-countries-in-year/16_out.json +++ b/olympics/testdata/tests/top-countries-in-year/12/out.json @@ -1 +1 @@ -[{"country":"Canada","gold":67,"silver":15,"bronze":8,"total":90},{"country":"Norway","gold":16,"silver":14,"bronze":9,"total":39},{"country":"Germany","gold":15,"silver":24,"bronze":15,"total":54},{"country":"United States","gold":12,"silver":63,"bronze":22,"total":97},{"country":"Austria","gold":11,"silver":9,"bronze":6,"total":26},{"country":"Sweden","gold":11,"silver":3,"bronze":4,"total":18},{"country":"China","gold":9,"silver":3,"bronze":7,"total":19},{"country":"South Korea","gold":6,"silver":10,"bronze":2,"total":18},{"country":"Russia","gold":6,"silver":5,"bronze":14,"total":25},{"country":"Switzerland","gold":6,"silver":0,"bronze":6,"total":12}] \ No newline at end of file +[{"country":"Canada","gold":67,"silver":15,"bronze":8,"total":90},{"country":"Norway","gold":16,"silver":14,"bronze":9,"total":39},{"country":"Germany","gold":15,"silver":24,"bronze":15,"total":54},{"country":"United States","gold":12,"silver":63,"bronze":22,"total":97},{"country":"Austria","gold":11,"silver":9,"bronze":6,"total":26},{"country":"Sweden","gold":11,"silver":3,"bronze":4,"total":18},{"country":"China","gold":9,"silver":3,"bronze":7,"total":19},{"country":"South Korea","gold":6,"silver":10,"bronze":2,"total":18},{"country":"Russia","gold":6,"silver":5,"bronze":14,"total":25},{"country":"Switzerland","gold":6,"silver":0,"bronze":6,"total":12},{"country":"Netherlands","gold":4,"silver":1,"bronze":6,"total":11},{"country":"France","gold":2,"silver":6,"bronze":6,"total":14},{"country":"Australia","gold":2,"silver":1,"bronze":0,"total":3},{"country":"Czech Republic","gold":2,"silver":0,"bronze":7,"total":9}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/12_in.json b/olympics/testdata/tests/top-countries-in-year/12_in.json deleted file mode 100644 index 8b29a5f..0000000 --- a/olympics/testdata/tests/top-countries-in-year/12_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2000, "limit": 9} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/12_out.json b/olympics/testdata/tests/top-countries-in-year/12_out.json deleted file mode 100644 index 9bcdaaf..0000000 --- a/olympics/testdata/tests/top-countries-in-year/12_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"country":"United States","gold":130,"silver":61,"bronze":52,"total":243},{"country":"Russia","gold":66,"silver":67,"bronze":54,"total":187},{"country":"Australia","gold":60,"silver":69,"bronze":54,"total":183},{"country":"China","gold":39,"silver":23,"bronze":17,"total":79},{"country":"Germany","gold":31,"silver":23,"bronze":64,"total":118},{"country":"Netherlands","gold":27,"silver":29,"bronze":23,"total":79},{"country":"Romania","gold":27,"silver":6,"bronze":13,"total":46},{"country":"Hungary","gold":25,"silver":24,"bronze":4,"total":53},{"country":"France","gold":22,"silver":30,"bronze":14,"total":66}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/13/in.json b/olympics/testdata/tests/top-countries-in-year/13/in.json new file mode 100644 index 0000000..1d84f79 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/13/in.json @@ -0,0 +1 @@ +{"year": 2000, "limit": 43} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/10_out.json b/olympics/testdata/tests/top-countries-in-year/13/out.json similarity index 73% rename from olympics/testdata/tests/top-countries-in-year/10_out.json rename to olympics/testdata/tests/top-countries-in-year/13/out.json index cfc6425..d009b52 100644 --- a/olympics/testdata/tests/top-countries-in-year/10_out.json +++ b/olympics/testdata/tests/top-countries-in-year/13/out.json @@ -1 +1 @@ -[{"country":"United States","gold":130,"silver":61,"bronze":52,"total":243},{"country":"Russia","gold":66,"silver":67,"bronze":54,"total":187},{"country":"Australia","gold":60,"silver":69,"bronze":54,"total":183},{"country":"China","gold":39,"silver":23,"bronze":17,"total":79},{"country":"Germany","gold":31,"silver":23,"bronze":64,"total":118},{"country":"Netherlands","gold":27,"silver":29,"bronze":23,"total":79},{"country":"Romania","gold":27,"silver":6,"bronze":13,"total":46},{"country":"Hungary","gold":25,"silver":24,"bronze":4,"total":53},{"country":"France","gold":22,"silver":30,"bronze":14,"total":66},{"country":"Great Britain","gold":22,"silver":20,"bronze":12,"total":54},{"country":"Italy","gold":22,"silver":14,"bronze":29,"total":65},{"country":"Norway","gold":20,"silver":4,"bronze":19,"total":43},{"country":"Cuba","gold":18,"silver":35,"bronze":12,"total":65},{"country":"Denmark","gold":18,"silver":3,"bronze":4,"total":25},{"country":"Cameroon","gold":18,"silver":0,"bronze":0,"total":18},{"country":"South Korea","gold":12,"silver":26,"bronze":35,"total":73},{"country":"Serbia and Montenegro","gold":11,"silver":1,"bronze":13,"total":25},{"country":"Poland","gold":7,"silver":10,"bronze":7,"total":24},{"country":"Nigeria","gold":6,"silver":2,"bronze":0,"total":8},{"country":"Bahamas","gold":6,"silver":0,"bronze":5,"total":11},{"country":"Japan","gold":5,"silver":31,"bronze":8,"total":44},{"country":"Bulgaria","gold":5,"silver":6,"bronze":2,"total":13},{"country":"Sweden","gold":4,"silver":20,"bronze":8,"total":32},{"country":"Greece","gold":4,"silver":6,"bronze":8,"total":18},{"country":"Canada","gold":4,"silver":4,"bronze":23,"total":31},{"country":"Ethiopia","gold":4,"silver":1,"bronze":3,"total":8},{"country":"Ukraine","gold":3,"silver":20,"bronze":12,"total":35},{"country":"Spain","gold":3,"silver":19,"bronze":20,"total":42},{"country":"Belarus","gold":3,"silver":8,"bronze":11,"total":22},{"country":"Kazakhstan","gold":3,"silver":4,"bronze":0,"total":7},{"country":"Finland","gold":3,"silver":1,"bronze":1,"total":5},{"country":"Austria","gold":3,"silver":1,"bronze":0,"total":4},{"country":"Turkey","gold":3,"silver":0,"bronze":2,"total":5},{"country":"Iran","gold":3,"silver":0,"bronze":1,"total":4},{"country":"Slovenia","gold":3,"silver":0,"bronze":0,"total":3},{"country":"Indonesia","gold":2,"silver":4,"bronze":2,"total":8},{"country":"Czech Republic","gold":2,"silver":3,"bronze":4,"total":9},{"country":"Kenya","gold":2,"silver":3,"bronze":2,"total":7},{"country":"Slovakia","gold":2,"silver":3,"bronze":1,"total":6},{"country":"Lithuania","gold":2,"silver":0,"bronze":15,"total":17},{"country":"Azerbaijan","gold":2,"silver":0,"bronze":1,"total":3},{"country":"Switzerland","gold":1,"silver":11,"bronze":2,"total":14},{"country":"Mexico","gold":1,"silver":2,"bronze":3,"total":6},{"country":"Algeria","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Uzbekistan","gold":1,"silver":1,"bronze":2,"total":4},{"country":"Latvia","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Croatia","gold":1,"silver":0,"bronze":9,"total":10},{"country":"New Zealand","gold":1,"silver":0,"bronze":3,"total":4},{"country":"Estonia","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Thailand","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Colombia","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Mozambique","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Jamaica","gold":0,"silver":20,"bronze":3,"total":23},{"country":"Argentina","gold":0,"silver":17,"bronze":3,"total":20},{"country":"Brazil","gold":0,"silver":12,"bronze":36,"total":48},{"country":"Belgium","gold":0,"silver":3,"bronze":4,"total":7},{"country":"South Africa","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Chinese Taipei","gold":0,"silver":1,"bronze":4,"total":5}] \ No newline at end of file +[{"country":"United States","gold":130,"silver":61,"bronze":52,"total":243},{"country":"Russia","gold":66,"silver":67,"bronze":54,"total":187},{"country":"Australia","gold":60,"silver":69,"bronze":54,"total":183},{"country":"China","gold":39,"silver":23,"bronze":17,"total":79},{"country":"Germany","gold":31,"silver":23,"bronze":64,"total":118},{"country":"Netherlands","gold":27,"silver":29,"bronze":23,"total":79},{"country":"Romania","gold":27,"silver":6,"bronze":13,"total":46},{"country":"Hungary","gold":25,"silver":24,"bronze":4,"total":53},{"country":"France","gold":22,"silver":30,"bronze":14,"total":66},{"country":"Great Britain","gold":22,"silver":20,"bronze":12,"total":54},{"country":"Italy","gold":22,"silver":14,"bronze":29,"total":65},{"country":"Norway","gold":20,"silver":4,"bronze":19,"total":43},{"country":"Cuba","gold":18,"silver":35,"bronze":12,"total":65},{"country":"Denmark","gold":18,"silver":3,"bronze":4,"total":25},{"country":"Cameroon","gold":18,"silver":0,"bronze":0,"total":18},{"country":"South Korea","gold":12,"silver":26,"bronze":35,"total":73},{"country":"Serbia and Montenegro","gold":11,"silver":1,"bronze":13,"total":25},{"country":"Poland","gold":7,"silver":10,"bronze":7,"total":24},{"country":"Nigeria","gold":6,"silver":2,"bronze":0,"total":8},{"country":"Bahamas","gold":6,"silver":0,"bronze":5,"total":11},{"country":"Japan","gold":5,"silver":31,"bronze":8,"total":44},{"country":"Bulgaria","gold":5,"silver":6,"bronze":2,"total":13},{"country":"Sweden","gold":4,"silver":20,"bronze":8,"total":32},{"country":"Greece","gold":4,"silver":6,"bronze":8,"total":18},{"country":"Canada","gold":4,"silver":4,"bronze":23,"total":31},{"country":"Ethiopia","gold":4,"silver":1,"bronze":3,"total":8},{"country":"Ukraine","gold":3,"silver":20,"bronze":12,"total":35},{"country":"Spain","gold":3,"silver":19,"bronze":20,"total":42},{"country":"Belarus","gold":3,"silver":8,"bronze":11,"total":22},{"country":"Kazakhstan","gold":3,"silver":4,"bronze":0,"total":7},{"country":"Finland","gold":3,"silver":1,"bronze":1,"total":5},{"country":"Austria","gold":3,"silver":1,"bronze":0,"total":4},{"country":"Turkey","gold":3,"silver":0,"bronze":2,"total":5},{"country":"Iran","gold":3,"silver":0,"bronze":1,"total":4},{"country":"Slovenia","gold":3,"silver":0,"bronze":0,"total":3},{"country":"Indonesia","gold":2,"silver":4,"bronze":2,"total":8},{"country":"Czech Republic","gold":2,"silver":3,"bronze":4,"total":9},{"country":"Kenya","gold":2,"silver":3,"bronze":2,"total":7},{"country":"Slovakia","gold":2,"silver":3,"bronze":1,"total":6},{"country":"Lithuania","gold":2,"silver":0,"bronze":15,"total":17},{"country":"Azerbaijan","gold":2,"silver":0,"bronze":1,"total":3},{"country":"Switzerland","gold":1,"silver":11,"bronze":2,"total":14},{"country":"Mexico","gold":1,"silver":2,"bronze":3,"total":6}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/13_in.json b/olympics/testdata/tests/top-countries-in-year/13_in.json deleted file mode 100644 index ac6c642..0000000 --- a/olympics/testdata/tests/top-countries-in-year/13_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2008, "limit": 95} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/14/in.json b/olympics/testdata/tests/top-countries-in-year/14/in.json new file mode 100644 index 0000000..dc4b675 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/14/in.json @@ -0,0 +1 @@ +{"year": 2004, "limit": 83} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/18_out.json b/olympics/testdata/tests/top-countries-in-year/14/out.json similarity index 100% rename from olympics/testdata/tests/top-countries-in-year/18_out.json rename to olympics/testdata/tests/top-countries-in-year/14/out.json diff --git a/olympics/testdata/tests/top-countries-in-year/14_in.json b/olympics/testdata/tests/top-countries-in-year/14_in.json deleted file mode 100644 index 84bc23a..0000000 --- a/olympics/testdata/tests/top-countries-in-year/14_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2000, "limit": 11} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/14_out.json b/olympics/testdata/tests/top-countries-in-year/14_out.json deleted file mode 100644 index cd82346..0000000 --- a/olympics/testdata/tests/top-countries-in-year/14_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"country":"United States","gold":130,"silver":61,"bronze":52,"total":243},{"country":"Russia","gold":66,"silver":67,"bronze":54,"total":187},{"country":"Australia","gold":60,"silver":69,"bronze":54,"total":183},{"country":"China","gold":39,"silver":23,"bronze":17,"total":79},{"country":"Germany","gold":31,"silver":23,"bronze":64,"total":118},{"country":"Netherlands","gold":27,"silver":29,"bronze":23,"total":79},{"country":"Romania","gold":27,"silver":6,"bronze":13,"total":46},{"country":"Hungary","gold":25,"silver":24,"bronze":4,"total":53},{"country":"France","gold":22,"silver":30,"bronze":14,"total":66},{"country":"Great Britain","gold":22,"silver":20,"bronze":12,"total":54},{"country":"Italy","gold":22,"silver":14,"bronze":29,"total":65}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/24_in.json b/olympics/testdata/tests/top-countries-in-year/15/in.json similarity index 100% rename from olympics/testdata/tests/top-countries-in-year/24_in.json rename to olympics/testdata/tests/top-countries-in-year/15/in.json diff --git a/olympics/testdata/tests/top-countries-in-year/19_out.json b/olympics/testdata/tests/top-countries-in-year/15/out.json similarity index 100% rename from olympics/testdata/tests/top-countries-in-year/19_out.json rename to olympics/testdata/tests/top-countries-in-year/15/out.json diff --git a/olympics/testdata/tests/top-countries-in-year/15_in.json b/olympics/testdata/tests/top-countries-in-year/15_in.json deleted file mode 100644 index 88c9f2d..0000000 --- a/olympics/testdata/tests/top-countries-in-year/15_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2004, "limit": 32} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/16/in.json b/olympics/testdata/tests/top-countries-in-year/16/in.json new file mode 100644 index 0000000..e1a3a29 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/16/in.json @@ -0,0 +1 @@ +{"year": 2012, "limit": 39} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/3_out.json b/olympics/testdata/tests/top-countries-in-year/16/out.json similarity index 96% rename from olympics/testdata/tests/top-countries-in-year/3_out.json rename to olympics/testdata/tests/top-countries-in-year/16/out.json index d6087a5..8cf8b33 100644 --- a/olympics/testdata/tests/top-countries-in-year/3_out.json +++ b/olympics/testdata/tests/top-countries-in-year/16/out.json @@ -1 +1 @@ -[{"country":"United States","gold":145,"silver":63,"bronze":46,"total":254},{"country":"China","gold":56,"silver":40,"bronze":29,"total":125},{"country":"Russia","gold":50,"silver":39,"bronze":51,"total":140},{"country":"Great Britain","gold":48,"silver":30,"bronze":48,"total":126},{"country":"Germany","gold":45,"silver":27,"bronze":22,"total":94},{"country":"France","gold":30,"silver":30,"bronze":18,"total":78},{"country":"Netherlands","gold":21,"silver":29,"bronze":19,"total":69},{"country":"Australia","gold":18,"silver":37,"bronze":59,"total":114},{"country":"South Korea","gold":18,"silver":13,"bronze":30,"total":61},{"country":"Italy","gold":16,"silver":22,"bronze":30,"total":68},{"country":"Mexico","gold":16,"silver":5,"bronze":3,"total":24},{"country":"Croatia","gold":15,"silver":4,"bronze":16,"total":35},{"country":"Norway","gold":15,"silver":1,"bronze":1,"total":17},{"country":"Brazil","gold":14,"silver":31,"bronze":11,"total":56},{"country":"Hungary","gold":12,"silver":8,"bronze":5,"total":25},{"country":"Ukraine","gold":9,"silver":5,"bronze":12,"total":26},{"country":"New Zealand","gold":9,"silver":3,"bronze":15,"total":27},{"country":"Jamaica","gold":8,"silver":9,"bronze":8,"total":25},{"country":"Japan","gold":7,"silver":44,"bronze":33,"total":84},{"country":"Kazakhstan","gold":7,"silver":1,"bronze":5,"total":13},{"country":"South Africa","gold":6,"silver":2,"bronze":1,"total":9},{"country":"Spain","gold":5,"silver":33,"bronze":26,"total":64},{"country":"Cuba","gold":5,"silver":3,"bronze":6,"total":14},{"country":"Iran","gold":4,"silver":5,"bronze":3,"total":12},{"country":"Czech Republic","gold":4,"silver":4,"bronze":6,"total":14},{"country":"North Korea","gold":4,"silver":0,"bronze":2,"total":6},{"country":"Bahamas","gold":4,"silver":0,"bronze":0,"total":4},{"country":"Belarus","gold":3,"silver":12,"bronze":8,"total":23},{"country":"Denmark","gold":3,"silver":5,"bronze":8,"total":16},{"country":"Ethiopia","gold":3,"silver":1,"bronze":3,"total":7},{"country":"Sweden","gold":2,"silver":17,"bronze":3,"total":22},{"country":"Romania","gold":2,"silver":8,"bronze":6,"total":16},{"country":"Kenya","gold":2,"silver":4,"bronze":5,"total":11},{"country":"Poland","gold":2,"silver":2,"bronze":8,"total":12},{"country":"Azerbaijan","gold":2,"silver":2,"bronze":6,"total":10},{"country":"Turkey","gold":2,"silver":2,"bronze":1,"total":5},{"country":"Switzerland","gold":2,"silver":2,"bronze":0,"total":4},{"country":"Lithuania","gold":2,"silver":1,"bronze":2,"total":5},{"country":"Canada","gold":1,"silver":21,"bronze":33,"total":55},{"country":"Argentina","gold":1,"silver":15,"bronze":3,"total":19}] \ No newline at end of file +[{"country":"United States","gold":145,"silver":63,"bronze":46,"total":254},{"country":"China","gold":56,"silver":40,"bronze":29,"total":125},{"country":"Russia","gold":50,"silver":39,"bronze":51,"total":140},{"country":"Great Britain","gold":48,"silver":30,"bronze":48,"total":126},{"country":"Germany","gold":45,"silver":27,"bronze":22,"total":94},{"country":"France","gold":30,"silver":30,"bronze":18,"total":78},{"country":"Netherlands","gold":21,"silver":29,"bronze":19,"total":69},{"country":"Australia","gold":18,"silver":37,"bronze":59,"total":114},{"country":"South Korea","gold":18,"silver":13,"bronze":30,"total":61},{"country":"Italy","gold":16,"silver":22,"bronze":30,"total":68},{"country":"Mexico","gold":16,"silver":5,"bronze":3,"total":24},{"country":"Croatia","gold":15,"silver":4,"bronze":16,"total":35},{"country":"Norway","gold":15,"silver":1,"bronze":1,"total":17},{"country":"Brazil","gold":14,"silver":31,"bronze":11,"total":56},{"country":"Hungary","gold":12,"silver":8,"bronze":5,"total":25},{"country":"Ukraine","gold":9,"silver":5,"bronze":12,"total":26},{"country":"New Zealand","gold":9,"silver":3,"bronze":15,"total":27},{"country":"Jamaica","gold":8,"silver":9,"bronze":8,"total":25},{"country":"Japan","gold":7,"silver":44,"bronze":33,"total":84},{"country":"Kazakhstan","gold":7,"silver":1,"bronze":5,"total":13},{"country":"South Africa","gold":6,"silver":2,"bronze":1,"total":9},{"country":"Spain","gold":5,"silver":33,"bronze":26,"total":64},{"country":"Cuba","gold":5,"silver":3,"bronze":6,"total":14},{"country":"Iran","gold":4,"silver":5,"bronze":3,"total":12},{"country":"Czech Republic","gold":4,"silver":4,"bronze":6,"total":14},{"country":"North Korea","gold":4,"silver":0,"bronze":2,"total":6},{"country":"Bahamas","gold":4,"silver":0,"bronze":0,"total":4},{"country":"Belarus","gold":3,"silver":12,"bronze":8,"total":23},{"country":"Denmark","gold":3,"silver":5,"bronze":8,"total":16},{"country":"Ethiopia","gold":3,"silver":1,"bronze":3,"total":7},{"country":"Sweden","gold":2,"silver":17,"bronze":3,"total":22},{"country":"Romania","gold":2,"silver":8,"bronze":6,"total":16},{"country":"Kenya","gold":2,"silver":4,"bronze":5,"total":11},{"country":"Poland","gold":2,"silver":2,"bronze":8,"total":12},{"country":"Azerbaijan","gold":2,"silver":2,"bronze":6,"total":10},{"country":"Turkey","gold":2,"silver":2,"bronze":1,"total":5},{"country":"Switzerland","gold":2,"silver":2,"bronze":0,"total":4},{"country":"Lithuania","gold":2,"silver":1,"bronze":2,"total":5},{"country":"Canada","gold":1,"silver":21,"bronze":33,"total":55}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/16_in.json b/olympics/testdata/tests/top-countries-in-year/16_in.json deleted file mode 100644 index 233363a..0000000 --- a/olympics/testdata/tests/top-countries-in-year/16_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2010, "limit": 10} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/17/in.json b/olympics/testdata/tests/top-countries-in-year/17/in.json new file mode 100644 index 0000000..b85c64c --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/17/in.json @@ -0,0 +1 @@ +{"year": 2010, "limit": 6} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/17/out.json b/olympics/testdata/tests/top-countries-in-year/17/out.json new file mode 100644 index 0000000..aa0fd64 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/17/out.json @@ -0,0 +1 @@ +[{"country":"Canada","gold":67,"silver":15,"bronze":8,"total":90},{"country":"Norway","gold":16,"silver":14,"bronze":9,"total":39},{"country":"Germany","gold":15,"silver":24,"bronze":15,"total":54},{"country":"United States","gold":12,"silver":63,"bronze":22,"total":97},{"country":"Austria","gold":11,"silver":9,"bronze":6,"total":26},{"country":"Sweden","gold":11,"silver":3,"bronze":4,"total":18}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/17_in.json b/olympics/testdata/tests/top-countries-in-year/17_in.json deleted file mode 100644 index c760555..0000000 --- a/olympics/testdata/tests/top-countries-in-year/17_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2010, "limit": 99} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/18/in.json b/olympics/testdata/tests/top-countries-in-year/18/in.json new file mode 100644 index 0000000..bb1165b --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/18/in.json @@ -0,0 +1 @@ +{"year": 2012, "limit": 4} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/18/out.json b/olympics/testdata/tests/top-countries-in-year/18/out.json new file mode 100644 index 0000000..fbf811e --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/18/out.json @@ -0,0 +1 @@ +[{"country":"United States","gold":145,"silver":63,"bronze":46,"total":254},{"country":"China","gold":56,"silver":40,"bronze":29,"total":125},{"country":"Russia","gold":50,"silver":39,"bronze":51,"total":140},{"country":"Great Britain","gold":48,"silver":30,"bronze":48,"total":126}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/18_in.json b/olympics/testdata/tests/top-countries-in-year/18_in.json deleted file mode 100644 index dc6fb57..0000000 --- a/olympics/testdata/tests/top-countries-in-year/18_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2004, "limit": 84} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/19/in.json b/olympics/testdata/tests/top-countries-in-year/19/in.json new file mode 100644 index 0000000..06d90c7 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/19/in.json @@ -0,0 +1 @@ +{"year": 2002, "limit": 29} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/21_out.json b/olympics/testdata/tests/top-countries-in-year/19/out.json similarity index 100% rename from olympics/testdata/tests/top-countries-in-year/21_out.json rename to olympics/testdata/tests/top-countries-in-year/19/out.json diff --git a/olympics/testdata/tests/top-countries-in-year/19_in.json b/olympics/testdata/tests/top-countries-in-year/19_in.json deleted file mode 100644 index 50fd2c3..0000000 --- a/olympics/testdata/tests/top-countries-in-year/19_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2000, "limit": 100} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/1_in.json b/olympics/testdata/tests/top-countries-in-year/1_in.json deleted file mode 100644 index 60f0818..0000000 --- a/olympics/testdata/tests/top-countries-in-year/1_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2004, "limit": 0} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/1_out.json b/olympics/testdata/tests/top-countries-in-year/1_out.json deleted file mode 100644 index ec747fa..0000000 --- a/olympics/testdata/tests/top-countries-in-year/1_out.json +++ /dev/null @@ -1 +0,0 @@ -null \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/2/in.json b/olympics/testdata/tests/top-countries-in-year/2/in.json new file mode 100644 index 0000000..ac017f6 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/2/in.json @@ -0,0 +1 @@ +{"year": 2004, "limit": 87} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/2/out.json b/olympics/testdata/tests/top-countries-in-year/2/out.json new file mode 100644 index 0000000..17a09da --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/2/out.json @@ -0,0 +1 @@ +[{"country":"United States","gold":118,"silver":75,"bronze":72,"total":265},{"country":"China","gold":52,"silver":27,"bronze":15,"total":94},{"country":"Australia","gold":49,"silver":77,"bronze":30,"total":156},{"country":"Russia","gold":47,"silver":47,"bronze":97,"total":191},{"country":"Germany","gold":41,"silver":45,"bronze":63,"total":149},{"country":"Cuba","gold":32,"silver":8,"bronze":22,"total":62},{"country":"Argentina","gold":28,"silver":0,"bronze":21,"total":49},{"country":"Italy","gold":24,"silver":41,"bronze":39,"total":104},{"country":"Hungary","gold":24,"silver":12,"bronze":4,"total":40},{"country":"Romania","gold":23,"silver":5,"bronze":11,"total":39},{"country":"Japan","gold":21,"silver":20,"bronze":52,"total":93},{"country":"France","gold":21,"silver":10,"bronze":22,"total":53},{"country":"Denmark","gold":19,"silver":0,"bronze":10,"total":29},{"country":"Brazil","gold":18,"silver":19,"bronze":3,"total":40},{"country":"Great Britain","gold":17,"silver":25,"bronze":15,"total":57},{"country":"Croatia","gold":15,"silver":3,"bronze":3,"total":21},{"country":"South Korea","gold":14,"silver":28,"bronze":10,"total":52},{"country":"Ukraine","gold":9,"silver":8,"bronze":31,"total":48},{"country":"Greece","gold":8,"silver":18,"bronze":5,"total":31},{"country":"Jamaica","gold":6,"silver":1,"bronze":6,"total":13},{"country":"Sweden","gold":5,"silver":5,"bronze":2,"total":12},{"country":"Norway","gold":5,"silver":0,"bronze":2,"total":7},{"country":"Netherlands","gold":4,"silver":51,"bronze":22,"total":77},{"country":"Spain","gold":4,"silver":17,"bronze":8,"total":29},{"country":"South Africa","gold":4,"silver":3,"bronze":3,"total":10},{"country":"Poland","gold":4,"silver":2,"bronze":6,"total":12},{"country":"New Zealand","gold":4,"silver":2,"bronze":0,"total":6},{"country":"Canada","gold":3,"silver":10,"bronze":4,"total":17},{"country":"Austria","gold":3,"silver":4,"bronze":1,"total":8},{"country":"Turkey","gold":3,"silver":3,"bronze":4,"total":10},{"country":"Slovakia","gold":3,"silver":2,"bronze":5,"total":10},{"country":"Thailand","gold":3,"silver":1,"bronze":4,"total":8},{"country":"Chile","gold":3,"silver":0,"bronze":1,"total":4},{"country":"Belarus","gold":2,"silver":6,"bronze":9,"total":17},{"country":"Chinese Taipei","gold":2,"silver":4,"bronze":3,"total":9},{"country":"Ethiopia","gold":2,"silver":3,"bronze":2,"total":7},{"country":"Iran","gold":2,"silver":2,"bronze":2,"total":6},{"country":"Georgia","gold":2,"silver":2,"bronze":0,"total":4},{"country":"Bulgaria","gold":2,"silver":1,"bronze":14,"total":17},{"country":"Uzbekistan","gold":2,"silver":1,"bronze":2,"total":5},{"country":"Morocco","gold":2,"silver":1,"bronze":0,"total":3},{"country":"Czech Republic","gold":1,"silver":6,"bronze":5,"total":12},{"country":"Kazakhstan","gold":1,"silver":4,"bronze":3,"total":8},{"country":"Kenya","gold":1,"silver":4,"bronze":2,"total":7},{"country":"Switzerland","gold":1,"silver":2,"bronze":4,"total":7},{"country":"Lithuania","gold":1,"silver":2,"bronze":0,"total":3},{"country":"Egypt","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Indonesia","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Zimbabwe","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Azerbaijan","gold":1,"silver":0,"bronze":4,"total":5},{"country":"Belgium","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Bahamas","gold":1,"silver":0,"bronze":1,"total":2},{"country":"Israel","gold":1,"silver":0,"bronze":1,"total":2},{"country":"Cameroon","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Dominican Republic","gold":1,"silver":0,"bronze":0,"total":1},{"country":"United Arab Emirates","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Paraguay","gold":0,"silver":17,"bronze":0,"total":17},{"country":"Serbia and Montenegro","gold":0,"silver":13,"bronze":0,"total":13},{"country":"North Korea","gold":0,"silver":4,"bronze":1,"total":5},{"country":"Latvia","gold":0,"silver":4,"bronze":0,"total":4},{"country":"Mexico","gold":0,"silver":3,"bronze":1,"total":4},{"country":"Slovenia","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Portugal","gold":0,"silver":2,"bronze":1,"total":3},{"country":"Finland","gold":0,"silver":2,"bronze":0,"total":2},{"country":"Hong Kong","gold":0,"silver":2,"bronze":0,"total":2},{"country":"Estonia","gold":0,"silver":1,"bronze":2,"total":3},{"country":"India","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Nigeria","gold":0,"silver":0,"bronze":8,"total":8},{"country":"Colombia","gold":0,"silver":0,"bronze":2,"total":2},{"country":"Venezuela","gold":0,"silver":0,"bronze":2,"total":2},{"country":"Eritrea","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Mongolia","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Syria","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Trinidad and Tobago","gold":0,"silver":0,"bronze":1,"total":1}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/20/in.json b/olympics/testdata/tests/top-countries-in-year/20/in.json new file mode 100644 index 0000000..163631d --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/20/in.json @@ -0,0 +1 @@ +{"year": 2008, "limit": 65} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/13_out.json b/olympics/testdata/tests/top-countries-in-year/20/out.json similarity index 75% rename from olympics/testdata/tests/top-countries-in-year/13_out.json rename to olympics/testdata/tests/top-countries-in-year/20/out.json index 0a912d7..b1a7de9 100644 --- a/olympics/testdata/tests/top-countries-in-year/13_out.json +++ b/olympics/testdata/tests/top-countries-in-year/20/out.json @@ -1 +1 @@ -[{"country":"United States","gold":127,"silver":109,"bronze":81,"total":317},{"country":"China","gold":74,"silver":53,"bronze":57,"total":184},{"country":"Russia","gold":43,"silver":46,"bronze":57,"total":146},{"country":"Germany","gold":42,"silver":16,"bronze":41,"total":99},{"country":"South Korea","gold":41,"silver":11,"bronze":26,"total":78},{"country":"Netherlands","gold":39,"silver":18,"bronze":4,"total":61},{"country":"Australia","gold":31,"silver":42,"bronze":76,"total":149},{"country":"Great Britain","gold":31,"silver":25,"bronze":21,"total":77},{"country":"France","gold":25,"silver":24,"bronze":28,"total":77},{"country":"Japan","gold":23,"silver":11,"bronze":17,"total":51},{"country":"Argentina","gold":20,"silver":0,"bronze":31,"total":51},{"country":"Hungary","gold":16,"silver":8,"bronze":3,"total":27},{"country":"Norway","gold":16,"silver":5,"bronze":1,"total":22},{"country":"Brazil","gold":14,"silver":34,"bronze":26,"total":74},{"country":"Canada","gold":11,"silver":13,"bronze":10,"total":34},{"country":"Ukraine","gold":10,"silver":5,"bronze":16,"total":31},{"country":"Jamaica","gold":10,"silver":3,"bronze":6,"total":19},{"country":"Italy","gold":8,"silver":14,"bronze":21,"total":43},{"country":"Belarus","gold":8,"silver":5,"bronze":17,"total":30},{"country":"Spain","gold":7,"silver":47,"bronze":16,"total":70},{"country":"Poland","gold":6,"silver":13,"bronze":1,"total":20},{"country":"Denmark","gold":6,"silver":7,"bronze":6,"total":19},{"country":"Kenya","gold":6,"silver":4,"bronze":4,"total":14},{"country":"Romania","gold":5,"silver":1,"bronze":16,"total":22},{"country":"Slovakia","gold":4,"silver":5,"bronze":1,"total":10},{"country":"New Zealand","gold":4,"silver":2,"bronze":9,"total":15},{"country":"Ethiopia","gold":4,"silver":1,"bronze":2,"total":7},{"country":"Czech Republic","gold":3,"silver":4,"bronze":0,"total":7},{"country":"Switzerland","gold":3,"silver":1,"bronze":7,"total":11},{"country":"Georgia","gold":3,"silver":0,"bronze":3,"total":6},{"country":"Cuba","gold":2,"silver":34,"bronze":11,"total":47},{"country":"Kazakhstan","gold":2,"silver":4,"bronze":7,"total":13},{"country":"Indonesia","gold":2,"silver":2,"bronze":3,"total":7},{"country":"Mongolia","gold":2,"silver":2,"bronze":0,"total":4},{"country":"Thailand","gold":2,"silver":2,"bronze":0,"total":4},{"country":"North Korea","gold":2,"silver":1,"bronze":3,"total":6},{"country":"Mexico","gold":2,"silver":0,"bronze":2,"total":4},{"country":"Turkey","gold":1,"silver":4,"bronze":3,"total":8},{"country":"Belgium","gold":1,"silver":4,"bronze":0,"total":5},{"country":"Zimbabwe","gold":1,"silver":3,"bronze":0,"total":4},{"country":"Azerbaijan","gold":1,"silver":2,"bronze":4,"total":7},{"country":"Uzbekistan","gold":1,"silver":2,"bronze":3,"total":6},{"country":"Finland","gold":1,"silver":2,"bronze":2,"total":5},{"country":"Slovenia","gold":1,"silver":2,"bronze":2,"total":5},{"country":"Estonia","gold":1,"silver":2,"bronze":0,"total":3},{"country":"Bulgaria","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Latvia","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Dominican Republic","gold":1,"silver":1,"bronze":0,"total":2},{"country":"Portugal","gold":1,"silver":1,"bronze":0,"total":2},{"country":"India","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Iran","gold":1,"silver":0,"bronze":1,"total":2},{"country":"Cameroon","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Panama","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Tunisia","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Nigeria","gold":0,"silver":16,"bronze":7,"total":23},{"country":"Iceland","gold":0,"silver":14,"bronze":0,"total":14},{"country":"Bahamas","gold":0,"silver":6,"bronze":1,"total":7},{"country":"Trinidad and Tobago","gold":0,"silver":6,"bronze":0,"total":6},{"country":"Sweden","gold":0,"silver":5,"bronze":2,"total":7},{"country":"Greece","gold":0,"silver":3,"bronze":4,"total":7},{"country":"Singapore","gold":0,"silver":3,"bronze":0,"total":3},{"country":"Croatia","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Lithuania","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Serbia","gold":0,"silver":1,"bronze":14,"total":15},{"country":"Austria","gold":0,"silver":1,"bronze":2,"total":3},{"country":"Ireland","gold":0,"silver":1,"bronze":2,"total":3},{"country":"Algeria","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Colombia","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Kyrgyzstan","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Morocco","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Tajikistan","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Chile","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Ecuador","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Malaysia","gold":0,"silver":1,"bronze":0,"total":1},{"country":"South Africa","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Sudan","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Vietnam","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Armenia","gold":0,"silver":0,"bronze":6,"total":6},{"country":"Chinese Taipei","gold":0,"silver":0,"bronze":4,"total":4},{"country":"Afghanistan","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Egypt","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Israel","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Mauritius","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Moldova","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Togo","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Venezuela","gold":0,"silver":0,"bronze":1,"total":1}] \ No newline at end of file +[{"country":"United States","gold":127,"silver":109,"bronze":81,"total":317},{"country":"China","gold":74,"silver":53,"bronze":57,"total":184},{"country":"Russia","gold":43,"silver":46,"bronze":57,"total":146},{"country":"Germany","gold":42,"silver":16,"bronze":41,"total":99},{"country":"South Korea","gold":41,"silver":11,"bronze":26,"total":78},{"country":"Netherlands","gold":39,"silver":18,"bronze":4,"total":61},{"country":"Australia","gold":31,"silver":42,"bronze":76,"total":149},{"country":"Great Britain","gold":31,"silver":25,"bronze":21,"total":77},{"country":"France","gold":25,"silver":24,"bronze":28,"total":77},{"country":"Japan","gold":23,"silver":11,"bronze":17,"total":51},{"country":"Argentina","gold":20,"silver":0,"bronze":31,"total":51},{"country":"Hungary","gold":16,"silver":8,"bronze":3,"total":27},{"country":"Norway","gold":16,"silver":5,"bronze":1,"total":22},{"country":"Brazil","gold":14,"silver":34,"bronze":26,"total":74},{"country":"Canada","gold":11,"silver":13,"bronze":10,"total":34},{"country":"Ukraine","gold":10,"silver":5,"bronze":16,"total":31},{"country":"Jamaica","gold":10,"silver":3,"bronze":6,"total":19},{"country":"Italy","gold":8,"silver":14,"bronze":21,"total":43},{"country":"Belarus","gold":8,"silver":5,"bronze":17,"total":30},{"country":"Spain","gold":7,"silver":47,"bronze":16,"total":70},{"country":"Poland","gold":6,"silver":13,"bronze":1,"total":20},{"country":"Denmark","gold":6,"silver":7,"bronze":6,"total":19},{"country":"Kenya","gold":6,"silver":4,"bronze":4,"total":14},{"country":"Romania","gold":5,"silver":1,"bronze":16,"total":22},{"country":"Slovakia","gold":4,"silver":5,"bronze":1,"total":10},{"country":"New Zealand","gold":4,"silver":2,"bronze":9,"total":15},{"country":"Ethiopia","gold":4,"silver":1,"bronze":2,"total":7},{"country":"Czech Republic","gold":3,"silver":4,"bronze":0,"total":7},{"country":"Switzerland","gold":3,"silver":1,"bronze":7,"total":11},{"country":"Georgia","gold":3,"silver":0,"bronze":3,"total":6},{"country":"Cuba","gold":2,"silver":34,"bronze":11,"total":47},{"country":"Kazakhstan","gold":2,"silver":4,"bronze":7,"total":13},{"country":"Indonesia","gold":2,"silver":2,"bronze":3,"total":7},{"country":"Mongolia","gold":2,"silver":2,"bronze":0,"total":4},{"country":"Thailand","gold":2,"silver":2,"bronze":0,"total":4},{"country":"North Korea","gold":2,"silver":1,"bronze":3,"total":6},{"country":"Mexico","gold":2,"silver":0,"bronze":2,"total":4},{"country":"Turkey","gold":1,"silver":4,"bronze":3,"total":8},{"country":"Belgium","gold":1,"silver":4,"bronze":0,"total":5},{"country":"Zimbabwe","gold":1,"silver":3,"bronze":0,"total":4},{"country":"Azerbaijan","gold":1,"silver":2,"bronze":4,"total":7},{"country":"Uzbekistan","gold":1,"silver":2,"bronze":3,"total":6},{"country":"Finland","gold":1,"silver":2,"bronze":2,"total":5},{"country":"Slovenia","gold":1,"silver":2,"bronze":2,"total":5},{"country":"Estonia","gold":1,"silver":2,"bronze":0,"total":3},{"country":"Bulgaria","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Latvia","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Dominican Republic","gold":1,"silver":1,"bronze":0,"total":2},{"country":"Portugal","gold":1,"silver":1,"bronze":0,"total":2},{"country":"India","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Iran","gold":1,"silver":0,"bronze":1,"total":2},{"country":"Cameroon","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Panama","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Tunisia","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Nigeria","gold":0,"silver":16,"bronze":7,"total":23},{"country":"Iceland","gold":0,"silver":14,"bronze":0,"total":14},{"country":"Bahamas","gold":0,"silver":6,"bronze":1,"total":7},{"country":"Trinidad and Tobago","gold":0,"silver":6,"bronze":0,"total":6},{"country":"Sweden","gold":0,"silver":5,"bronze":2,"total":7},{"country":"Greece","gold":0,"silver":3,"bronze":4,"total":7},{"country":"Singapore","gold":0,"silver":3,"bronze":0,"total":3},{"country":"Croatia","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Lithuania","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Serbia","gold":0,"silver":1,"bronze":14,"total":15},{"country":"Austria","gold":0,"silver":1,"bronze":2,"total":3}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/20_in.json b/olympics/testdata/tests/top-countries-in-year/20_in.json deleted file mode 100644 index 9fcb67e..0000000 --- a/olympics/testdata/tests/top-countries-in-year/20_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2000, "limit": 24} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/21/in.json b/olympics/testdata/tests/top-countries-in-year/21/in.json new file mode 100644 index 0000000..f0873a3 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/21/in.json @@ -0,0 +1 @@ +{"year": 2010, "limit": 2} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/21/out.json b/olympics/testdata/tests/top-countries-in-year/21/out.json new file mode 100644 index 0000000..33ac057 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/21/out.json @@ -0,0 +1 @@ +[{"country":"Canada","gold":67,"silver":15,"bronze":8,"total":90},{"country":"Norway","gold":16,"silver":14,"bronze":9,"total":39}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/21_in.json b/olympics/testdata/tests/top-countries-in-year/21_in.json deleted file mode 100644 index 5981621..0000000 --- a/olympics/testdata/tests/top-countries-in-year/21_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2002, "limit": 65} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/22/in.json b/olympics/testdata/tests/top-countries-in-year/22/in.json new file mode 100644 index 0000000..8ab7ba1 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/22/in.json @@ -0,0 +1 @@ +{"year": 2002, "limit": 4} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/22/out.json b/olympics/testdata/tests/top-countries-in-year/22/out.json new file mode 100644 index 0000000..de1464b --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/22/out.json @@ -0,0 +1 @@ +[{"country":"Canada","gold":52,"silver":7,"bronze":15,"total":74},{"country":"Germany","gold":26,"silver":23,"bronze":12,"total":61},{"country":"Norway","gold":23,"silver":11,"bronze":7,"total":41},{"country":"United States","gold":11,"silver":58,"bronze":15,"total":84}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/22_in.json b/olympics/testdata/tests/top-countries-in-year/22_in.json deleted file mode 100644 index 186b3c0..0000000 --- a/olympics/testdata/tests/top-countries-in-year/22_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2008, "limit": 89} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/22_out.json b/olympics/testdata/tests/top-countries-in-year/22_out.json deleted file mode 100644 index 0a912d7..0000000 --- a/olympics/testdata/tests/top-countries-in-year/22_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"country":"United States","gold":127,"silver":109,"bronze":81,"total":317},{"country":"China","gold":74,"silver":53,"bronze":57,"total":184},{"country":"Russia","gold":43,"silver":46,"bronze":57,"total":146},{"country":"Germany","gold":42,"silver":16,"bronze":41,"total":99},{"country":"South Korea","gold":41,"silver":11,"bronze":26,"total":78},{"country":"Netherlands","gold":39,"silver":18,"bronze":4,"total":61},{"country":"Australia","gold":31,"silver":42,"bronze":76,"total":149},{"country":"Great Britain","gold":31,"silver":25,"bronze":21,"total":77},{"country":"France","gold":25,"silver":24,"bronze":28,"total":77},{"country":"Japan","gold":23,"silver":11,"bronze":17,"total":51},{"country":"Argentina","gold":20,"silver":0,"bronze":31,"total":51},{"country":"Hungary","gold":16,"silver":8,"bronze":3,"total":27},{"country":"Norway","gold":16,"silver":5,"bronze":1,"total":22},{"country":"Brazil","gold":14,"silver":34,"bronze":26,"total":74},{"country":"Canada","gold":11,"silver":13,"bronze":10,"total":34},{"country":"Ukraine","gold":10,"silver":5,"bronze":16,"total":31},{"country":"Jamaica","gold":10,"silver":3,"bronze":6,"total":19},{"country":"Italy","gold":8,"silver":14,"bronze":21,"total":43},{"country":"Belarus","gold":8,"silver":5,"bronze":17,"total":30},{"country":"Spain","gold":7,"silver":47,"bronze":16,"total":70},{"country":"Poland","gold":6,"silver":13,"bronze":1,"total":20},{"country":"Denmark","gold":6,"silver":7,"bronze":6,"total":19},{"country":"Kenya","gold":6,"silver":4,"bronze":4,"total":14},{"country":"Romania","gold":5,"silver":1,"bronze":16,"total":22},{"country":"Slovakia","gold":4,"silver":5,"bronze":1,"total":10},{"country":"New Zealand","gold":4,"silver":2,"bronze":9,"total":15},{"country":"Ethiopia","gold":4,"silver":1,"bronze":2,"total":7},{"country":"Czech Republic","gold":3,"silver":4,"bronze":0,"total":7},{"country":"Switzerland","gold":3,"silver":1,"bronze":7,"total":11},{"country":"Georgia","gold":3,"silver":0,"bronze":3,"total":6},{"country":"Cuba","gold":2,"silver":34,"bronze":11,"total":47},{"country":"Kazakhstan","gold":2,"silver":4,"bronze":7,"total":13},{"country":"Indonesia","gold":2,"silver":2,"bronze":3,"total":7},{"country":"Mongolia","gold":2,"silver":2,"bronze":0,"total":4},{"country":"Thailand","gold":2,"silver":2,"bronze":0,"total":4},{"country":"North Korea","gold":2,"silver":1,"bronze":3,"total":6},{"country":"Mexico","gold":2,"silver":0,"bronze":2,"total":4},{"country":"Turkey","gold":1,"silver":4,"bronze":3,"total":8},{"country":"Belgium","gold":1,"silver":4,"bronze":0,"total":5},{"country":"Zimbabwe","gold":1,"silver":3,"bronze":0,"total":4},{"country":"Azerbaijan","gold":1,"silver":2,"bronze":4,"total":7},{"country":"Uzbekistan","gold":1,"silver":2,"bronze":3,"total":6},{"country":"Finland","gold":1,"silver":2,"bronze":2,"total":5},{"country":"Slovenia","gold":1,"silver":2,"bronze":2,"total":5},{"country":"Estonia","gold":1,"silver":2,"bronze":0,"total":3},{"country":"Bulgaria","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Latvia","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Dominican Republic","gold":1,"silver":1,"bronze":0,"total":2},{"country":"Portugal","gold":1,"silver":1,"bronze":0,"total":2},{"country":"India","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Iran","gold":1,"silver":0,"bronze":1,"total":2},{"country":"Cameroon","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Panama","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Tunisia","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Nigeria","gold":0,"silver":16,"bronze":7,"total":23},{"country":"Iceland","gold":0,"silver":14,"bronze":0,"total":14},{"country":"Bahamas","gold":0,"silver":6,"bronze":1,"total":7},{"country":"Trinidad and Tobago","gold":0,"silver":6,"bronze":0,"total":6},{"country":"Sweden","gold":0,"silver":5,"bronze":2,"total":7},{"country":"Greece","gold":0,"silver":3,"bronze":4,"total":7},{"country":"Singapore","gold":0,"silver":3,"bronze":0,"total":3},{"country":"Croatia","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Lithuania","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Serbia","gold":0,"silver":1,"bronze":14,"total":15},{"country":"Austria","gold":0,"silver":1,"bronze":2,"total":3},{"country":"Ireland","gold":0,"silver":1,"bronze":2,"total":3},{"country":"Algeria","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Colombia","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Kyrgyzstan","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Morocco","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Tajikistan","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Chile","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Ecuador","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Malaysia","gold":0,"silver":1,"bronze":0,"total":1},{"country":"South Africa","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Sudan","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Vietnam","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Armenia","gold":0,"silver":0,"bronze":6,"total":6},{"country":"Chinese Taipei","gold":0,"silver":0,"bronze":4,"total":4},{"country":"Afghanistan","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Egypt","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Israel","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Mauritius","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Moldova","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Togo","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Venezuela","gold":0,"silver":0,"bronze":1,"total":1}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/23/in.json b/olympics/testdata/tests/top-countries-in-year/23/in.json new file mode 100644 index 0000000..b8236fc --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/23/in.json @@ -0,0 +1 @@ +{"year": 2010, "limit": 96} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/25_out.json b/olympics/testdata/tests/top-countries-in-year/23/out.json similarity index 100% rename from olympics/testdata/tests/top-countries-in-year/25_out.json rename to olympics/testdata/tests/top-countries-in-year/23/out.json diff --git a/olympics/testdata/tests/top-countries-in-year/23_in.json b/olympics/testdata/tests/top-countries-in-year/23_in.json deleted file mode 100644 index 698a499..0000000 --- a/olympics/testdata/tests/top-countries-in-year/23_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2000, "limit": 20} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/23_out.json b/olympics/testdata/tests/top-countries-in-year/23_out.json deleted file mode 100644 index 04622a5..0000000 --- a/olympics/testdata/tests/top-countries-in-year/23_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"country":"United States","gold":130,"silver":61,"bronze":52,"total":243},{"country":"Russia","gold":66,"silver":67,"bronze":54,"total":187},{"country":"Australia","gold":60,"silver":69,"bronze":54,"total":183},{"country":"China","gold":39,"silver":23,"bronze":17,"total":79},{"country":"Germany","gold":31,"silver":23,"bronze":64,"total":118},{"country":"Netherlands","gold":27,"silver":29,"bronze":23,"total":79},{"country":"Romania","gold":27,"silver":6,"bronze":13,"total":46},{"country":"Hungary","gold":25,"silver":24,"bronze":4,"total":53},{"country":"France","gold":22,"silver":30,"bronze":14,"total":66},{"country":"Great Britain","gold":22,"silver":20,"bronze":12,"total":54},{"country":"Italy","gold":22,"silver":14,"bronze":29,"total":65},{"country":"Norway","gold":20,"silver":4,"bronze":19,"total":43},{"country":"Cuba","gold":18,"silver":35,"bronze":12,"total":65},{"country":"Denmark","gold":18,"silver":3,"bronze":4,"total":25},{"country":"Cameroon","gold":18,"silver":0,"bronze":0,"total":18},{"country":"South Korea","gold":12,"silver":26,"bronze":35,"total":73},{"country":"Serbia and Montenegro","gold":11,"silver":1,"bronze":13,"total":25},{"country":"Poland","gold":7,"silver":10,"bronze":7,"total":24},{"country":"Nigeria","gold":6,"silver":2,"bronze":0,"total":8},{"country":"Bahamas","gold":6,"silver":0,"bronze":5,"total":11}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/24/in.json b/olympics/testdata/tests/top-countries-in-year/24/in.json new file mode 100644 index 0000000..689d962 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/24/in.json @@ -0,0 +1 @@ +{"year": 2008, "limit": 18} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/24/out.json b/olympics/testdata/tests/top-countries-in-year/24/out.json new file mode 100644 index 0000000..b79a4a7 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/24/out.json @@ -0,0 +1 @@ +[{"country":"United States","gold":127,"silver":109,"bronze":81,"total":317},{"country":"China","gold":74,"silver":53,"bronze":57,"total":184},{"country":"Russia","gold":43,"silver":46,"bronze":57,"total":146},{"country":"Germany","gold":42,"silver":16,"bronze":41,"total":99},{"country":"South Korea","gold":41,"silver":11,"bronze":26,"total":78},{"country":"Netherlands","gold":39,"silver":18,"bronze":4,"total":61},{"country":"Australia","gold":31,"silver":42,"bronze":76,"total":149},{"country":"Great Britain","gold":31,"silver":25,"bronze":21,"total":77},{"country":"France","gold":25,"silver":24,"bronze":28,"total":77},{"country":"Japan","gold":23,"silver":11,"bronze":17,"total":51},{"country":"Argentina","gold":20,"silver":0,"bronze":31,"total":51},{"country":"Hungary","gold":16,"silver":8,"bronze":3,"total":27},{"country":"Norway","gold":16,"silver":5,"bronze":1,"total":22},{"country":"Brazil","gold":14,"silver":34,"bronze":26,"total":74},{"country":"Canada","gold":11,"silver":13,"bronze":10,"total":34},{"country":"Ukraine","gold":10,"silver":5,"bronze":16,"total":31},{"country":"Jamaica","gold":10,"silver":3,"bronze":6,"total":19},{"country":"Italy","gold":8,"silver":14,"bronze":21,"total":43}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/25/in.json b/olympics/testdata/tests/top-countries-in-year/25/in.json new file mode 100644 index 0000000..90126ea --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/25/in.json @@ -0,0 +1 @@ +{"year": 2004, "limit": 17} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/15_out.json b/olympics/testdata/tests/top-countries-in-year/25/out.json similarity index 51% rename from olympics/testdata/tests/top-countries-in-year/15_out.json rename to olympics/testdata/tests/top-countries-in-year/25/out.json index 0b5fd61..239bc5a 100644 --- a/olympics/testdata/tests/top-countries-in-year/15_out.json +++ b/olympics/testdata/tests/top-countries-in-year/25/out.json @@ -1 +1 @@ -[{"country":"United States","gold":118,"silver":75,"bronze":72,"total":265},{"country":"China","gold":52,"silver":27,"bronze":15,"total":94},{"country":"Australia","gold":49,"silver":77,"bronze":30,"total":156},{"country":"Russia","gold":47,"silver":47,"bronze":97,"total":191},{"country":"Germany","gold":41,"silver":45,"bronze":63,"total":149},{"country":"Cuba","gold":32,"silver":8,"bronze":22,"total":62},{"country":"Argentina","gold":28,"silver":0,"bronze":21,"total":49},{"country":"Italy","gold":24,"silver":41,"bronze":39,"total":104},{"country":"Hungary","gold":24,"silver":12,"bronze":4,"total":40},{"country":"Romania","gold":23,"silver":5,"bronze":11,"total":39},{"country":"Japan","gold":21,"silver":20,"bronze":52,"total":93},{"country":"France","gold":21,"silver":10,"bronze":22,"total":53},{"country":"Denmark","gold":19,"silver":0,"bronze":10,"total":29},{"country":"Brazil","gold":18,"silver":19,"bronze":3,"total":40},{"country":"Great Britain","gold":17,"silver":25,"bronze":15,"total":57},{"country":"Croatia","gold":15,"silver":3,"bronze":3,"total":21},{"country":"South Korea","gold":14,"silver":28,"bronze":10,"total":52},{"country":"Ukraine","gold":9,"silver":8,"bronze":31,"total":48},{"country":"Greece","gold":8,"silver":18,"bronze":5,"total":31},{"country":"Jamaica","gold":6,"silver":1,"bronze":6,"total":13},{"country":"Sweden","gold":5,"silver":5,"bronze":2,"total":12},{"country":"Norway","gold":5,"silver":0,"bronze":2,"total":7},{"country":"Netherlands","gold":4,"silver":51,"bronze":22,"total":77},{"country":"Spain","gold":4,"silver":17,"bronze":8,"total":29},{"country":"South Africa","gold":4,"silver":3,"bronze":3,"total":10},{"country":"Poland","gold":4,"silver":2,"bronze":6,"total":12},{"country":"New Zealand","gold":4,"silver":2,"bronze":0,"total":6},{"country":"Canada","gold":3,"silver":10,"bronze":4,"total":17},{"country":"Austria","gold":3,"silver":4,"bronze":1,"total":8},{"country":"Turkey","gold":3,"silver":3,"bronze":4,"total":10},{"country":"Slovakia","gold":3,"silver":2,"bronze":5,"total":10},{"country":"Thailand","gold":3,"silver":1,"bronze":4,"total":8}] \ No newline at end of file +[{"country":"United States","gold":118,"silver":75,"bronze":72,"total":265},{"country":"China","gold":52,"silver":27,"bronze":15,"total":94},{"country":"Australia","gold":49,"silver":77,"bronze":30,"total":156},{"country":"Russia","gold":47,"silver":47,"bronze":97,"total":191},{"country":"Germany","gold":41,"silver":45,"bronze":63,"total":149},{"country":"Cuba","gold":32,"silver":8,"bronze":22,"total":62},{"country":"Argentina","gold":28,"silver":0,"bronze":21,"total":49},{"country":"Italy","gold":24,"silver":41,"bronze":39,"total":104},{"country":"Hungary","gold":24,"silver":12,"bronze":4,"total":40},{"country":"Romania","gold":23,"silver":5,"bronze":11,"total":39},{"country":"Japan","gold":21,"silver":20,"bronze":52,"total":93},{"country":"France","gold":21,"silver":10,"bronze":22,"total":53},{"country":"Denmark","gold":19,"silver":0,"bronze":10,"total":29},{"country":"Brazil","gold":18,"silver":19,"bronze":3,"total":40},{"country":"Great Britain","gold":17,"silver":25,"bronze":15,"total":57},{"country":"Croatia","gold":15,"silver":3,"bronze":3,"total":21},{"country":"South Korea","gold":14,"silver":28,"bronze":10,"total":52}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/25_in.json b/olympics/testdata/tests/top-countries-in-year/25_in.json deleted file mode 100644 index 992abb1..0000000 --- a/olympics/testdata/tests/top-countries-in-year/25_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2010, "limit": 67} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/26/in.json b/olympics/testdata/tests/top-countries-in-year/26/in.json new file mode 100644 index 0000000..55210cd --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/26/in.json @@ -0,0 +1 @@ +{"year": 2006, "limit": 36} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/28_out.json b/olympics/testdata/tests/top-countries-in-year/26/out.json similarity index 100% rename from olympics/testdata/tests/top-countries-in-year/28_out.json rename to olympics/testdata/tests/top-countries-in-year/26/out.json diff --git a/olympics/testdata/tests/top-countries-in-year/26_in.json b/olympics/testdata/tests/top-countries-in-year/26_in.json deleted file mode 100644 index e5221dc..0000000 --- a/olympics/testdata/tests/top-countries-in-year/26_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2002, "limit": 39} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/27/in.json b/olympics/testdata/tests/top-countries-in-year/27/in.json new file mode 100644 index 0000000..2f937d3 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/27/in.json @@ -0,0 +1 @@ +{"year": 2000, "limit": 50} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/29_out.json b/olympics/testdata/tests/top-countries-in-year/27/out.json similarity index 98% rename from olympics/testdata/tests/top-countries-in-year/29_out.json rename to olympics/testdata/tests/top-countries-in-year/27/out.json index 4222a13..d377c66 100644 --- a/olympics/testdata/tests/top-countries-in-year/29_out.json +++ b/olympics/testdata/tests/top-countries-in-year/27/out.json @@ -1 +1 @@ -[{"country":"United States","gold":130,"silver":61,"bronze":52,"total":243},{"country":"Russia","gold":66,"silver":67,"bronze":54,"total":187},{"country":"Australia","gold":60,"silver":69,"bronze":54,"total":183},{"country":"China","gold":39,"silver":23,"bronze":17,"total":79},{"country":"Germany","gold":31,"silver":23,"bronze":64,"total":118},{"country":"Netherlands","gold":27,"silver":29,"bronze":23,"total":79},{"country":"Romania","gold":27,"silver":6,"bronze":13,"total":46},{"country":"Hungary","gold":25,"silver":24,"bronze":4,"total":53},{"country":"France","gold":22,"silver":30,"bronze":14,"total":66},{"country":"Great Britain","gold":22,"silver":20,"bronze":12,"total":54},{"country":"Italy","gold":22,"silver":14,"bronze":29,"total":65},{"country":"Norway","gold":20,"silver":4,"bronze":19,"total":43},{"country":"Cuba","gold":18,"silver":35,"bronze":12,"total":65},{"country":"Denmark","gold":18,"silver":3,"bronze":4,"total":25},{"country":"Cameroon","gold":18,"silver":0,"bronze":0,"total":18},{"country":"South Korea","gold":12,"silver":26,"bronze":35,"total":73},{"country":"Serbia and Montenegro","gold":11,"silver":1,"bronze":13,"total":25},{"country":"Poland","gold":7,"silver":10,"bronze":7,"total":24},{"country":"Nigeria","gold":6,"silver":2,"bronze":0,"total":8},{"country":"Bahamas","gold":6,"silver":0,"bronze":5,"total":11},{"country":"Japan","gold":5,"silver":31,"bronze":8,"total":44},{"country":"Bulgaria","gold":5,"silver":6,"bronze":2,"total":13},{"country":"Sweden","gold":4,"silver":20,"bronze":8,"total":32},{"country":"Greece","gold":4,"silver":6,"bronze":8,"total":18},{"country":"Canada","gold":4,"silver":4,"bronze":23,"total":31},{"country":"Ethiopia","gold":4,"silver":1,"bronze":3,"total":8},{"country":"Ukraine","gold":3,"silver":20,"bronze":12,"total":35},{"country":"Spain","gold":3,"silver":19,"bronze":20,"total":42},{"country":"Belarus","gold":3,"silver":8,"bronze":11,"total":22},{"country":"Kazakhstan","gold":3,"silver":4,"bronze":0,"total":7},{"country":"Finland","gold":3,"silver":1,"bronze":1,"total":5},{"country":"Austria","gold":3,"silver":1,"bronze":0,"total":4},{"country":"Turkey","gold":3,"silver":0,"bronze":2,"total":5},{"country":"Iran","gold":3,"silver":0,"bronze":1,"total":4},{"country":"Slovenia","gold":3,"silver":0,"bronze":0,"total":3},{"country":"Indonesia","gold":2,"silver":4,"bronze":2,"total":8},{"country":"Czech Republic","gold":2,"silver":3,"bronze":4,"total":9},{"country":"Kenya","gold":2,"silver":3,"bronze":2,"total":7},{"country":"Slovakia","gold":2,"silver":3,"bronze":1,"total":6},{"country":"Lithuania","gold":2,"silver":0,"bronze":15,"total":17},{"country":"Azerbaijan","gold":2,"silver":0,"bronze":1,"total":3},{"country":"Switzerland","gold":1,"silver":11,"bronze":2,"total":14},{"country":"Mexico","gold":1,"silver":2,"bronze":3,"total":6},{"country":"Algeria","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Uzbekistan","gold":1,"silver":1,"bronze":2,"total":4},{"country":"Latvia","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Croatia","gold":1,"silver":0,"bronze":9,"total":10},{"country":"New Zealand","gold":1,"silver":0,"bronze":3,"total":4},{"country":"Estonia","gold":1,"silver":0,"bronze":2,"total":3}] \ No newline at end of file +[{"country":"United States","gold":130,"silver":61,"bronze":52,"total":243},{"country":"Russia","gold":66,"silver":67,"bronze":54,"total":187},{"country":"Australia","gold":60,"silver":69,"bronze":54,"total":183},{"country":"China","gold":39,"silver":23,"bronze":17,"total":79},{"country":"Germany","gold":31,"silver":23,"bronze":64,"total":118},{"country":"Netherlands","gold":27,"silver":29,"bronze":23,"total":79},{"country":"Romania","gold":27,"silver":6,"bronze":13,"total":46},{"country":"Hungary","gold":25,"silver":24,"bronze":4,"total":53},{"country":"France","gold":22,"silver":30,"bronze":14,"total":66},{"country":"Great Britain","gold":22,"silver":20,"bronze":12,"total":54},{"country":"Italy","gold":22,"silver":14,"bronze":29,"total":65},{"country":"Norway","gold":20,"silver":4,"bronze":19,"total":43},{"country":"Cuba","gold":18,"silver":35,"bronze":12,"total":65},{"country":"Denmark","gold":18,"silver":3,"bronze":4,"total":25},{"country":"Cameroon","gold":18,"silver":0,"bronze":0,"total":18},{"country":"South Korea","gold":12,"silver":26,"bronze":35,"total":73},{"country":"Serbia and Montenegro","gold":11,"silver":1,"bronze":13,"total":25},{"country":"Poland","gold":7,"silver":10,"bronze":7,"total":24},{"country":"Nigeria","gold":6,"silver":2,"bronze":0,"total":8},{"country":"Bahamas","gold":6,"silver":0,"bronze":5,"total":11},{"country":"Japan","gold":5,"silver":31,"bronze":8,"total":44},{"country":"Bulgaria","gold":5,"silver":6,"bronze":2,"total":13},{"country":"Sweden","gold":4,"silver":20,"bronze":8,"total":32},{"country":"Greece","gold":4,"silver":6,"bronze":8,"total":18},{"country":"Canada","gold":4,"silver":4,"bronze":23,"total":31},{"country":"Ethiopia","gold":4,"silver":1,"bronze":3,"total":8},{"country":"Ukraine","gold":3,"silver":20,"bronze":12,"total":35},{"country":"Spain","gold":3,"silver":19,"bronze":20,"total":42},{"country":"Belarus","gold":3,"silver":8,"bronze":11,"total":22},{"country":"Kazakhstan","gold":3,"silver":4,"bronze":0,"total":7},{"country":"Finland","gold":3,"silver":1,"bronze":1,"total":5},{"country":"Austria","gold":3,"silver":1,"bronze":0,"total":4},{"country":"Turkey","gold":3,"silver":0,"bronze":2,"total":5},{"country":"Iran","gold":3,"silver":0,"bronze":1,"total":4},{"country":"Slovenia","gold":3,"silver":0,"bronze":0,"total":3},{"country":"Indonesia","gold":2,"silver":4,"bronze":2,"total":8},{"country":"Czech Republic","gold":2,"silver":3,"bronze":4,"total":9},{"country":"Kenya","gold":2,"silver":3,"bronze":2,"total":7},{"country":"Slovakia","gold":2,"silver":3,"bronze":1,"total":6},{"country":"Lithuania","gold":2,"silver":0,"bronze":15,"total":17},{"country":"Azerbaijan","gold":2,"silver":0,"bronze":1,"total":3},{"country":"Switzerland","gold":1,"silver":11,"bronze":2,"total":14},{"country":"Mexico","gold":1,"silver":2,"bronze":3,"total":6},{"country":"Algeria","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Uzbekistan","gold":1,"silver":1,"bronze":2,"total":4},{"country":"Latvia","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Croatia","gold":1,"silver":0,"bronze":9,"total":10},{"country":"New Zealand","gold":1,"silver":0,"bronze":3,"total":4},{"country":"Estonia","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Thailand","gold":1,"silver":0,"bronze":2,"total":3}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/27_in.json b/olympics/testdata/tests/top-countries-in-year/27_in.json deleted file mode 100644 index f9c3fe1..0000000 --- a/olympics/testdata/tests/top-countries-in-year/27_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2012, "limit": 16} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/27_out.json b/olympics/testdata/tests/top-countries-in-year/27_out.json deleted file mode 100644 index 9ab07b0..0000000 --- a/olympics/testdata/tests/top-countries-in-year/27_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"country":"United States","gold":145,"silver":63,"bronze":46,"total":254},{"country":"China","gold":56,"silver":40,"bronze":29,"total":125},{"country":"Russia","gold":50,"silver":39,"bronze":51,"total":140},{"country":"Great Britain","gold":48,"silver":30,"bronze":48,"total":126},{"country":"Germany","gold":45,"silver":27,"bronze":22,"total":94},{"country":"France","gold":30,"silver":30,"bronze":18,"total":78},{"country":"Netherlands","gold":21,"silver":29,"bronze":19,"total":69},{"country":"Australia","gold":18,"silver":37,"bronze":59,"total":114},{"country":"South Korea","gold":18,"silver":13,"bronze":30,"total":61},{"country":"Italy","gold":16,"silver":22,"bronze":30,"total":68},{"country":"Mexico","gold":16,"silver":5,"bronze":3,"total":24},{"country":"Croatia","gold":15,"silver":4,"bronze":16,"total":35},{"country":"Norway","gold":15,"silver":1,"bronze":1,"total":17},{"country":"Brazil","gold":14,"silver":31,"bronze":11,"total":56},{"country":"Hungary","gold":12,"silver":8,"bronze":5,"total":25},{"country":"Ukraine","gold":9,"silver":5,"bronze":12,"total":26}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/28/in.json b/olympics/testdata/tests/top-countries-in-year/28/in.json new file mode 100644 index 0000000..ba4abcf --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/28/in.json @@ -0,0 +1 @@ +{"year": 2000, "limit": 28} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/20_out.json b/olympics/testdata/tests/top-countries-in-year/28/out.json similarity index 85% rename from olympics/testdata/tests/top-countries-in-year/20_out.json rename to olympics/testdata/tests/top-countries-in-year/28/out.json index 84f6e36..220217a 100644 --- a/olympics/testdata/tests/top-countries-in-year/20_out.json +++ b/olympics/testdata/tests/top-countries-in-year/28/out.json @@ -1 +1 @@ -[{"country":"United States","gold":130,"silver":61,"bronze":52,"total":243},{"country":"Russia","gold":66,"silver":67,"bronze":54,"total":187},{"country":"Australia","gold":60,"silver":69,"bronze":54,"total":183},{"country":"China","gold":39,"silver":23,"bronze":17,"total":79},{"country":"Germany","gold":31,"silver":23,"bronze":64,"total":118},{"country":"Netherlands","gold":27,"silver":29,"bronze":23,"total":79},{"country":"Romania","gold":27,"silver":6,"bronze":13,"total":46},{"country":"Hungary","gold":25,"silver":24,"bronze":4,"total":53},{"country":"France","gold":22,"silver":30,"bronze":14,"total":66},{"country":"Great Britain","gold":22,"silver":20,"bronze":12,"total":54},{"country":"Italy","gold":22,"silver":14,"bronze":29,"total":65},{"country":"Norway","gold":20,"silver":4,"bronze":19,"total":43},{"country":"Cuba","gold":18,"silver":35,"bronze":12,"total":65},{"country":"Denmark","gold":18,"silver":3,"bronze":4,"total":25},{"country":"Cameroon","gold":18,"silver":0,"bronze":0,"total":18},{"country":"South Korea","gold":12,"silver":26,"bronze":35,"total":73},{"country":"Serbia and Montenegro","gold":11,"silver":1,"bronze":13,"total":25},{"country":"Poland","gold":7,"silver":10,"bronze":7,"total":24},{"country":"Nigeria","gold":6,"silver":2,"bronze":0,"total":8},{"country":"Bahamas","gold":6,"silver":0,"bronze":5,"total":11},{"country":"Japan","gold":5,"silver":31,"bronze":8,"total":44},{"country":"Bulgaria","gold":5,"silver":6,"bronze":2,"total":13},{"country":"Sweden","gold":4,"silver":20,"bronze":8,"total":32},{"country":"Greece","gold":4,"silver":6,"bronze":8,"total":18}] \ No newline at end of file +[{"country":"United States","gold":130,"silver":61,"bronze":52,"total":243},{"country":"Russia","gold":66,"silver":67,"bronze":54,"total":187},{"country":"Australia","gold":60,"silver":69,"bronze":54,"total":183},{"country":"China","gold":39,"silver":23,"bronze":17,"total":79},{"country":"Germany","gold":31,"silver":23,"bronze":64,"total":118},{"country":"Netherlands","gold":27,"silver":29,"bronze":23,"total":79},{"country":"Romania","gold":27,"silver":6,"bronze":13,"total":46},{"country":"Hungary","gold":25,"silver":24,"bronze":4,"total":53},{"country":"France","gold":22,"silver":30,"bronze":14,"total":66},{"country":"Great Britain","gold":22,"silver":20,"bronze":12,"total":54},{"country":"Italy","gold":22,"silver":14,"bronze":29,"total":65},{"country":"Norway","gold":20,"silver":4,"bronze":19,"total":43},{"country":"Cuba","gold":18,"silver":35,"bronze":12,"total":65},{"country":"Denmark","gold":18,"silver":3,"bronze":4,"total":25},{"country":"Cameroon","gold":18,"silver":0,"bronze":0,"total":18},{"country":"South Korea","gold":12,"silver":26,"bronze":35,"total":73},{"country":"Serbia and Montenegro","gold":11,"silver":1,"bronze":13,"total":25},{"country":"Poland","gold":7,"silver":10,"bronze":7,"total":24},{"country":"Nigeria","gold":6,"silver":2,"bronze":0,"total":8},{"country":"Bahamas","gold":6,"silver":0,"bronze":5,"total":11},{"country":"Japan","gold":5,"silver":31,"bronze":8,"total":44},{"country":"Bulgaria","gold":5,"silver":6,"bronze":2,"total":13},{"country":"Sweden","gold":4,"silver":20,"bronze":8,"total":32},{"country":"Greece","gold":4,"silver":6,"bronze":8,"total":18},{"country":"Canada","gold":4,"silver":4,"bronze":23,"total":31},{"country":"Ethiopia","gold":4,"silver":1,"bronze":3,"total":8},{"country":"Ukraine","gold":3,"silver":20,"bronze":12,"total":35},{"country":"Spain","gold":3,"silver":19,"bronze":20,"total":42}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/28_in.json b/olympics/testdata/tests/top-countries-in-year/28_in.json deleted file mode 100644 index 03ce986..0000000 --- a/olympics/testdata/tests/top-countries-in-year/28_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2006, "limit": 35} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/29/in.json b/olympics/testdata/tests/top-countries-in-year/29/in.json new file mode 100644 index 0000000..0b9a949 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/29/in.json @@ -0,0 +1 @@ +{"year": 2002, "limit": 26} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/26_out.json b/olympics/testdata/tests/top-countries-in-year/29/out.json similarity index 100% rename from olympics/testdata/tests/top-countries-in-year/26_out.json rename to olympics/testdata/tests/top-countries-in-year/29/out.json diff --git a/olympics/testdata/tests/top-countries-in-year/29_in.json b/olympics/testdata/tests/top-countries-in-year/29_in.json deleted file mode 100644 index 5f681ed..0000000 --- a/olympics/testdata/tests/top-countries-in-year/29_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2000, "limit": 49} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/2_in.json b/olympics/testdata/tests/top-countries-in-year/2_in.json deleted file mode 100644 index b74cd6f..0000000 --- a/olympics/testdata/tests/top-countries-in-year/2_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2012, "limit": 83} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/3/in.json b/olympics/testdata/tests/top-countries-in-year/3/in.json new file mode 100644 index 0000000..694deee --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/3/in.json @@ -0,0 +1 @@ +{"year": 2010, "limit": 52} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/4_out.json b/olympics/testdata/tests/top-countries-in-year/3/out.json similarity index 100% rename from olympics/testdata/tests/top-countries-in-year/4_out.json rename to olympics/testdata/tests/top-countries-in-year/3/out.json diff --git a/olympics/testdata/tests/top-countries-in-year/3_in.json b/olympics/testdata/tests/top-countries-in-year/3_in.json deleted file mode 100644 index 126c52b..0000000 --- a/olympics/testdata/tests/top-countries-in-year/3_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2012, "limit": 40} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/4/in.json b/olympics/testdata/tests/top-countries-in-year/4/in.json new file mode 100644 index 0000000..80eea1e --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/4/in.json @@ -0,0 +1 @@ +{"year": 2006, "limit": 68} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/5_out.json b/olympics/testdata/tests/top-countries-in-year/4/out.json similarity index 100% rename from olympics/testdata/tests/top-countries-in-year/5_out.json rename to olympics/testdata/tests/top-countries-in-year/4/out.json diff --git a/olympics/testdata/tests/top-countries-in-year/4_in.json b/olympics/testdata/tests/top-countries-in-year/4_in.json deleted file mode 100644 index d837323..0000000 --- a/olympics/testdata/tests/top-countries-in-year/4_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2010, "limit": 93} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/5/in.json b/olympics/testdata/tests/top-countries-in-year/5/in.json new file mode 100644 index 0000000..849de64 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/5/in.json @@ -0,0 +1 @@ +{"year": 2012, "limit": 98} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/7_out.json b/olympics/testdata/tests/top-countries-in-year/5/out.json similarity index 100% rename from olympics/testdata/tests/top-countries-in-year/7_out.json rename to olympics/testdata/tests/top-countries-in-year/5/out.json diff --git a/olympics/testdata/tests/top-countries-in-year/5_in.json b/olympics/testdata/tests/top-countries-in-year/5_in.json deleted file mode 100644 index b89bdea..0000000 --- a/olympics/testdata/tests/top-countries-in-year/5_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2006, "limit": 58} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/6/in.json b/olympics/testdata/tests/top-countries-in-year/6/in.json new file mode 100644 index 0000000..bd20e1c --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/6/in.json @@ -0,0 +1 @@ +{"year": 2010, "limit": 7} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/6/out.json b/olympics/testdata/tests/top-countries-in-year/6/out.json new file mode 100644 index 0000000..f3b0e8e --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/6/out.json @@ -0,0 +1 @@ +[{"country":"Canada","gold":67,"silver":15,"bronze":8,"total":90},{"country":"Norway","gold":16,"silver":14,"bronze":9,"total":39},{"country":"Germany","gold":15,"silver":24,"bronze":15,"total":54},{"country":"United States","gold":12,"silver":63,"bronze":22,"total":97},{"country":"Austria","gold":11,"silver":9,"bronze":6,"total":26},{"country":"Sweden","gold":11,"silver":3,"bronze":4,"total":18},{"country":"China","gold":9,"silver":3,"bronze":7,"total":19}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/6_in.json b/olympics/testdata/tests/top-countries-in-year/6_in.json deleted file mode 100644 index c9c9632..0000000 --- a/olympics/testdata/tests/top-countries-in-year/6_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2008, "limit": 96} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/6_out.json b/olympics/testdata/tests/top-countries-in-year/6_out.json deleted file mode 100644 index 0a912d7..0000000 --- a/olympics/testdata/tests/top-countries-in-year/6_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"country":"United States","gold":127,"silver":109,"bronze":81,"total":317},{"country":"China","gold":74,"silver":53,"bronze":57,"total":184},{"country":"Russia","gold":43,"silver":46,"bronze":57,"total":146},{"country":"Germany","gold":42,"silver":16,"bronze":41,"total":99},{"country":"South Korea","gold":41,"silver":11,"bronze":26,"total":78},{"country":"Netherlands","gold":39,"silver":18,"bronze":4,"total":61},{"country":"Australia","gold":31,"silver":42,"bronze":76,"total":149},{"country":"Great Britain","gold":31,"silver":25,"bronze":21,"total":77},{"country":"France","gold":25,"silver":24,"bronze":28,"total":77},{"country":"Japan","gold":23,"silver":11,"bronze":17,"total":51},{"country":"Argentina","gold":20,"silver":0,"bronze":31,"total":51},{"country":"Hungary","gold":16,"silver":8,"bronze":3,"total":27},{"country":"Norway","gold":16,"silver":5,"bronze":1,"total":22},{"country":"Brazil","gold":14,"silver":34,"bronze":26,"total":74},{"country":"Canada","gold":11,"silver":13,"bronze":10,"total":34},{"country":"Ukraine","gold":10,"silver":5,"bronze":16,"total":31},{"country":"Jamaica","gold":10,"silver":3,"bronze":6,"total":19},{"country":"Italy","gold":8,"silver":14,"bronze":21,"total":43},{"country":"Belarus","gold":8,"silver":5,"bronze":17,"total":30},{"country":"Spain","gold":7,"silver":47,"bronze":16,"total":70},{"country":"Poland","gold":6,"silver":13,"bronze":1,"total":20},{"country":"Denmark","gold":6,"silver":7,"bronze":6,"total":19},{"country":"Kenya","gold":6,"silver":4,"bronze":4,"total":14},{"country":"Romania","gold":5,"silver":1,"bronze":16,"total":22},{"country":"Slovakia","gold":4,"silver":5,"bronze":1,"total":10},{"country":"New Zealand","gold":4,"silver":2,"bronze":9,"total":15},{"country":"Ethiopia","gold":4,"silver":1,"bronze":2,"total":7},{"country":"Czech Republic","gold":3,"silver":4,"bronze":0,"total":7},{"country":"Switzerland","gold":3,"silver":1,"bronze":7,"total":11},{"country":"Georgia","gold":3,"silver":0,"bronze":3,"total":6},{"country":"Cuba","gold":2,"silver":34,"bronze":11,"total":47},{"country":"Kazakhstan","gold":2,"silver":4,"bronze":7,"total":13},{"country":"Indonesia","gold":2,"silver":2,"bronze":3,"total":7},{"country":"Mongolia","gold":2,"silver":2,"bronze":0,"total":4},{"country":"Thailand","gold":2,"silver":2,"bronze":0,"total":4},{"country":"North Korea","gold":2,"silver":1,"bronze":3,"total":6},{"country":"Mexico","gold":2,"silver":0,"bronze":2,"total":4},{"country":"Turkey","gold":1,"silver":4,"bronze":3,"total":8},{"country":"Belgium","gold":1,"silver":4,"bronze":0,"total":5},{"country":"Zimbabwe","gold":1,"silver":3,"bronze":0,"total":4},{"country":"Azerbaijan","gold":1,"silver":2,"bronze":4,"total":7},{"country":"Uzbekistan","gold":1,"silver":2,"bronze":3,"total":6},{"country":"Finland","gold":1,"silver":2,"bronze":2,"total":5},{"country":"Slovenia","gold":1,"silver":2,"bronze":2,"total":5},{"country":"Estonia","gold":1,"silver":2,"bronze":0,"total":3},{"country":"Bulgaria","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Latvia","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Dominican Republic","gold":1,"silver":1,"bronze":0,"total":2},{"country":"Portugal","gold":1,"silver":1,"bronze":0,"total":2},{"country":"India","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Iran","gold":1,"silver":0,"bronze":1,"total":2},{"country":"Cameroon","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Panama","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Tunisia","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Nigeria","gold":0,"silver":16,"bronze":7,"total":23},{"country":"Iceland","gold":0,"silver":14,"bronze":0,"total":14},{"country":"Bahamas","gold":0,"silver":6,"bronze":1,"total":7},{"country":"Trinidad and Tobago","gold":0,"silver":6,"bronze":0,"total":6},{"country":"Sweden","gold":0,"silver":5,"bronze":2,"total":7},{"country":"Greece","gold":0,"silver":3,"bronze":4,"total":7},{"country":"Singapore","gold":0,"silver":3,"bronze":0,"total":3},{"country":"Croatia","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Lithuania","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Serbia","gold":0,"silver":1,"bronze":14,"total":15},{"country":"Austria","gold":0,"silver":1,"bronze":2,"total":3},{"country":"Ireland","gold":0,"silver":1,"bronze":2,"total":3},{"country":"Algeria","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Colombia","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Kyrgyzstan","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Morocco","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Tajikistan","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Chile","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Ecuador","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Malaysia","gold":0,"silver":1,"bronze":0,"total":1},{"country":"South Africa","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Sudan","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Vietnam","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Armenia","gold":0,"silver":0,"bronze":6,"total":6},{"country":"Chinese Taipei","gold":0,"silver":0,"bronze":4,"total":4},{"country":"Afghanistan","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Egypt","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Israel","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Mauritius","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Moldova","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Togo","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Venezuela","gold":0,"silver":0,"bronze":1,"total":1}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/7/in.json b/olympics/testdata/tests/top-countries-in-year/7/in.json new file mode 100644 index 0000000..087a968 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/7/in.json @@ -0,0 +1 @@ +{"year": 2012, "limit": 86} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/2_out.json b/olympics/testdata/tests/top-countries-in-year/7/out.json similarity index 97% rename from olympics/testdata/tests/top-countries-in-year/2_out.json rename to olympics/testdata/tests/top-countries-in-year/7/out.json index 900d705..20ae30e 100644 --- a/olympics/testdata/tests/top-countries-in-year/2_out.json +++ b/olympics/testdata/tests/top-countries-in-year/7/out.json @@ -1 +1 @@ -[{"country":"United States","gold":145,"silver":63,"bronze":46,"total":254},{"country":"China","gold":56,"silver":40,"bronze":29,"total":125},{"country":"Russia","gold":50,"silver":39,"bronze":51,"total":140},{"country":"Great Britain","gold":48,"silver":30,"bronze":48,"total":126},{"country":"Germany","gold":45,"silver":27,"bronze":22,"total":94},{"country":"France","gold":30,"silver":30,"bronze":18,"total":78},{"country":"Netherlands","gold":21,"silver":29,"bronze":19,"total":69},{"country":"Australia","gold":18,"silver":37,"bronze":59,"total":114},{"country":"South Korea","gold":18,"silver":13,"bronze":30,"total":61},{"country":"Italy","gold":16,"silver":22,"bronze":30,"total":68},{"country":"Mexico","gold":16,"silver":5,"bronze":3,"total":24},{"country":"Croatia","gold":15,"silver":4,"bronze":16,"total":35},{"country":"Norway","gold":15,"silver":1,"bronze":1,"total":17},{"country":"Brazil","gold":14,"silver":31,"bronze":11,"total":56},{"country":"Hungary","gold":12,"silver":8,"bronze":5,"total":25},{"country":"Ukraine","gold":9,"silver":5,"bronze":12,"total":26},{"country":"New Zealand","gold":9,"silver":3,"bronze":15,"total":27},{"country":"Jamaica","gold":8,"silver":9,"bronze":8,"total":25},{"country":"Japan","gold":7,"silver":44,"bronze":33,"total":84},{"country":"Kazakhstan","gold":7,"silver":1,"bronze":5,"total":13},{"country":"South Africa","gold":6,"silver":2,"bronze":1,"total":9},{"country":"Spain","gold":5,"silver":33,"bronze":26,"total":64},{"country":"Cuba","gold":5,"silver":3,"bronze":6,"total":14},{"country":"Iran","gold":4,"silver":5,"bronze":3,"total":12},{"country":"Czech Republic","gold":4,"silver":4,"bronze":6,"total":14},{"country":"North Korea","gold":4,"silver":0,"bronze":2,"total":6},{"country":"Bahamas","gold":4,"silver":0,"bronze":0,"total":4},{"country":"Belarus","gold":3,"silver":12,"bronze":8,"total":23},{"country":"Denmark","gold":3,"silver":5,"bronze":8,"total":16},{"country":"Ethiopia","gold":3,"silver":1,"bronze":3,"total":7},{"country":"Sweden","gold":2,"silver":17,"bronze":3,"total":22},{"country":"Romania","gold":2,"silver":8,"bronze":6,"total":16},{"country":"Kenya","gold":2,"silver":4,"bronze":5,"total":11},{"country":"Poland","gold":2,"silver":2,"bronze":8,"total":12},{"country":"Azerbaijan","gold":2,"silver":2,"bronze":6,"total":10},{"country":"Turkey","gold":2,"silver":2,"bronze":1,"total":5},{"country":"Switzerland","gold":2,"silver":2,"bronze":0,"total":4},{"country":"Lithuania","gold":2,"silver":1,"bronze":2,"total":5},{"country":"Canada","gold":1,"silver":21,"bronze":33,"total":55},{"country":"Argentina","gold":1,"silver":15,"bronze":3,"total":19},{"country":"Colombia","gold":1,"silver":3,"bronze":4,"total":8},{"country":"Georgia","gold":1,"silver":3,"bronze":3,"total":7},{"country":"Serbia","gold":1,"silver":1,"bronze":14,"total":16},{"country":"Ireland","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Slovenia","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Tunisia","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Dominican Republic","gold":1,"silver":1,"bronze":0,"total":2},{"country":"Trinidad and Tobago","gold":1,"silver":0,"bronze":9,"total":10},{"country":"Uzbekistan","gold":1,"silver":0,"bronze":3,"total":4},{"country":"Latvia","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Algeria","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Grenada","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Uganda","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Venezuela","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Montenegro","gold":0,"silver":14,"bronze":0,"total":14},{"country":"India","gold":0,"silver":2,"bronze":4,"total":6},{"country":"Mongolia","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Thailand","gold":0,"silver":2,"bronze":1,"total":3},{"country":"Egypt","gold":0,"silver":2,"bronze":0,"total":2},{"country":"Portugal","gold":0,"silver":2,"bronze":0,"total":2},{"country":"Finland","gold":0,"silver":1,"bronze":4,"total":5},{"country":"Slovakia","gold":0,"silver":1,"bronze":4,"total":5},{"country":"Armenia","gold":0,"silver":1,"bronze":2,"total":3},{"country":"Belgium","gold":0,"silver":1,"bronze":2,"total":3},{"country":"Bulgaria","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Chinese Taipei","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Estonia","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Indonesia","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Malaysia","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Puerto Rico","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Botswana","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Cyprus","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Gabon","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Guatemala","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Saudi Arabia","gold":0,"silver":0,"bronze":4,"total":4},{"country":"Singapore","gold":0,"silver":0,"bronze":4,"total":4},{"country":"Greece","gold":0,"silver":0,"bronze":3,"total":3},{"country":"Moldova","gold":0,"silver":0,"bronze":2,"total":2},{"country":"Qatar","gold":0,"silver":0,"bronze":2,"total":2},{"country":"Afghanistan","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Bahrain","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Hong Kong","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Kuwait","gold":0,"silver":0,"bronze":1,"total":1}] \ No newline at end of file +[{"country":"United States","gold":145,"silver":63,"bronze":46,"total":254},{"country":"China","gold":56,"silver":40,"bronze":29,"total":125},{"country":"Russia","gold":50,"silver":39,"bronze":51,"total":140},{"country":"Great Britain","gold":48,"silver":30,"bronze":48,"total":126},{"country":"Germany","gold":45,"silver":27,"bronze":22,"total":94},{"country":"France","gold":30,"silver":30,"bronze":18,"total":78},{"country":"Netherlands","gold":21,"silver":29,"bronze":19,"total":69},{"country":"Australia","gold":18,"silver":37,"bronze":59,"total":114},{"country":"South Korea","gold":18,"silver":13,"bronze":30,"total":61},{"country":"Italy","gold":16,"silver":22,"bronze":30,"total":68},{"country":"Mexico","gold":16,"silver":5,"bronze":3,"total":24},{"country":"Croatia","gold":15,"silver":4,"bronze":16,"total":35},{"country":"Norway","gold":15,"silver":1,"bronze":1,"total":17},{"country":"Brazil","gold":14,"silver":31,"bronze":11,"total":56},{"country":"Hungary","gold":12,"silver":8,"bronze":5,"total":25},{"country":"Ukraine","gold":9,"silver":5,"bronze":12,"total":26},{"country":"New Zealand","gold":9,"silver":3,"bronze":15,"total":27},{"country":"Jamaica","gold":8,"silver":9,"bronze":8,"total":25},{"country":"Japan","gold":7,"silver":44,"bronze":33,"total":84},{"country":"Kazakhstan","gold":7,"silver":1,"bronze":5,"total":13},{"country":"South Africa","gold":6,"silver":2,"bronze":1,"total":9},{"country":"Spain","gold":5,"silver":33,"bronze":26,"total":64},{"country":"Cuba","gold":5,"silver":3,"bronze":6,"total":14},{"country":"Iran","gold":4,"silver":5,"bronze":3,"total":12},{"country":"Czech Republic","gold":4,"silver":4,"bronze":6,"total":14},{"country":"North Korea","gold":4,"silver":0,"bronze":2,"total":6},{"country":"Bahamas","gold":4,"silver":0,"bronze":0,"total":4},{"country":"Belarus","gold":3,"silver":12,"bronze":8,"total":23},{"country":"Denmark","gold":3,"silver":5,"bronze":8,"total":16},{"country":"Ethiopia","gold":3,"silver":1,"bronze":3,"total":7},{"country":"Sweden","gold":2,"silver":17,"bronze":3,"total":22},{"country":"Romania","gold":2,"silver":8,"bronze":6,"total":16},{"country":"Kenya","gold":2,"silver":4,"bronze":5,"total":11},{"country":"Poland","gold":2,"silver":2,"bronze":8,"total":12},{"country":"Azerbaijan","gold":2,"silver":2,"bronze":6,"total":10},{"country":"Turkey","gold":2,"silver":2,"bronze":1,"total":5},{"country":"Switzerland","gold":2,"silver":2,"bronze":0,"total":4},{"country":"Lithuania","gold":2,"silver":1,"bronze":2,"total":5},{"country":"Canada","gold":1,"silver":21,"bronze":33,"total":55},{"country":"Argentina","gold":1,"silver":15,"bronze":3,"total":19},{"country":"Colombia","gold":1,"silver":3,"bronze":4,"total":8},{"country":"Georgia","gold":1,"silver":3,"bronze":3,"total":7},{"country":"Serbia","gold":1,"silver":1,"bronze":14,"total":16},{"country":"Ireland","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Slovenia","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Tunisia","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Dominican Republic","gold":1,"silver":1,"bronze":0,"total":2},{"country":"Trinidad and Tobago","gold":1,"silver":0,"bronze":9,"total":10},{"country":"Uzbekistan","gold":1,"silver":0,"bronze":3,"total":4},{"country":"Latvia","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Algeria","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Grenada","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Uganda","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Venezuela","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Montenegro","gold":0,"silver":14,"bronze":0,"total":14},{"country":"India","gold":0,"silver":2,"bronze":4,"total":6},{"country":"Mongolia","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Thailand","gold":0,"silver":2,"bronze":1,"total":3},{"country":"Egypt","gold":0,"silver":2,"bronze":0,"total":2},{"country":"Portugal","gold":0,"silver":2,"bronze":0,"total":2},{"country":"Finland","gold":0,"silver":1,"bronze":4,"total":5},{"country":"Slovakia","gold":0,"silver":1,"bronze":4,"total":5},{"country":"Armenia","gold":0,"silver":1,"bronze":2,"total":3},{"country":"Belgium","gold":0,"silver":1,"bronze":2,"total":3},{"country":"Bulgaria","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Chinese Taipei","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Estonia","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Indonesia","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Malaysia","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Puerto Rico","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Botswana","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Cyprus","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Gabon","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Guatemala","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Saudi Arabia","gold":0,"silver":0,"bronze":4,"total":4},{"country":"Singapore","gold":0,"silver":0,"bronze":4,"total":4},{"country":"Greece","gold":0,"silver":0,"bronze":3,"total":3},{"country":"Moldova","gold":0,"silver":0,"bronze":2,"total":2},{"country":"Qatar","gold":0,"silver":0,"bronze":2,"total":2},{"country":"Afghanistan","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Bahrain","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Hong Kong","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Kuwait","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Morocco","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Tajikistan","gold":0,"silver":0,"bronze":1,"total":1}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/7_in.json b/olympics/testdata/tests/top-countries-in-year/7_in.json deleted file mode 100644 index c785a65..0000000 --- a/olympics/testdata/tests/top-countries-in-year/7_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2012, "limit": 92} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/8/in.json b/olympics/testdata/tests/top-countries-in-year/8/in.json new file mode 100644 index 0000000..6750d42 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/8/in.json @@ -0,0 +1 @@ +{"year": 2002, "limit": 16} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/8/out.json b/olympics/testdata/tests/top-countries-in-year/8/out.json new file mode 100644 index 0000000..11eacb5 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/8/out.json @@ -0,0 +1 @@ +[{"country":"Canada","gold":52,"silver":7,"bronze":15,"total":74},{"country":"Germany","gold":26,"silver":23,"bronze":12,"total":61},{"country":"Norway","gold":23,"silver":11,"bronze":7,"total":41},{"country":"United States","gold":11,"silver":58,"bronze":15,"total":84},{"country":"Finland","gold":7,"silver":5,"bronze":1,"total":13},{"country":"Russia","gold":6,"silver":5,"bronze":27,"total":38},{"country":"France","gold":5,"silver":5,"bronze":5,"total":15},{"country":"South Korea","gold":5,"silver":2,"bronze":0,"total":7},{"country":"Great Britain","gold":5,"silver":0,"bronze":1,"total":6},{"country":"Italy","gold":4,"silver":11,"bronze":6,"total":21},{"country":"Switzerland","gold":3,"silver":7,"bronze":14,"total":24},{"country":"Netherlands","gold":3,"silver":5,"bronze":0,"total":8},{"country":"Austria","gold":3,"silver":4,"bronze":13,"total":20},{"country":"Croatia","gold":3,"silver":1,"bronze":0,"total":4},{"country":"China","gold":2,"silver":5,"bronze":9,"total":16},{"country":"Australia","gold":2,"silver":0,"bronze":0,"total":2}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/8_in.json b/olympics/testdata/tests/top-countries-in-year/8_in.json deleted file mode 100644 index 3711861..0000000 --- a/olympics/testdata/tests/top-countries-in-year/8_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2000, "limit": 106} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/8_out.json b/olympics/testdata/tests/top-countries-in-year/8_out.json deleted file mode 100644 index 8e5beb0..0000000 --- a/olympics/testdata/tests/top-countries-in-year/8_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"country":"United States","gold":130,"silver":61,"bronze":52,"total":243},{"country":"Russia","gold":66,"silver":67,"bronze":54,"total":187},{"country":"Australia","gold":60,"silver":69,"bronze":54,"total":183},{"country":"China","gold":39,"silver":23,"bronze":17,"total":79},{"country":"Germany","gold":31,"silver":23,"bronze":64,"total":118},{"country":"Netherlands","gold":27,"silver":29,"bronze":23,"total":79},{"country":"Romania","gold":27,"silver":6,"bronze":13,"total":46},{"country":"Hungary","gold":25,"silver":24,"bronze":4,"total":53},{"country":"France","gold":22,"silver":30,"bronze":14,"total":66},{"country":"Great Britain","gold":22,"silver":20,"bronze":12,"total":54},{"country":"Italy","gold":22,"silver":14,"bronze":29,"total":65},{"country":"Norway","gold":20,"silver":4,"bronze":19,"total":43},{"country":"Cuba","gold":18,"silver":35,"bronze":12,"total":65},{"country":"Denmark","gold":18,"silver":3,"bronze":4,"total":25},{"country":"Cameroon","gold":18,"silver":0,"bronze":0,"total":18},{"country":"South Korea","gold":12,"silver":26,"bronze":35,"total":73},{"country":"Serbia and Montenegro","gold":11,"silver":1,"bronze":13,"total":25},{"country":"Poland","gold":7,"silver":10,"bronze":7,"total":24},{"country":"Nigeria","gold":6,"silver":2,"bronze":0,"total":8},{"country":"Bahamas","gold":6,"silver":0,"bronze":5,"total":11},{"country":"Japan","gold":5,"silver":31,"bronze":8,"total":44},{"country":"Bulgaria","gold":5,"silver":6,"bronze":2,"total":13},{"country":"Sweden","gold":4,"silver":20,"bronze":8,"total":32},{"country":"Greece","gold":4,"silver":6,"bronze":8,"total":18},{"country":"Canada","gold":4,"silver":4,"bronze":23,"total":31},{"country":"Ethiopia","gold":4,"silver":1,"bronze":3,"total":8},{"country":"Ukraine","gold":3,"silver":20,"bronze":12,"total":35},{"country":"Spain","gold":3,"silver":19,"bronze":20,"total":42},{"country":"Belarus","gold":3,"silver":8,"bronze":11,"total":22},{"country":"Kazakhstan","gold":3,"silver":4,"bronze":0,"total":7},{"country":"Finland","gold":3,"silver":1,"bronze":1,"total":5},{"country":"Austria","gold":3,"silver":1,"bronze":0,"total":4},{"country":"Turkey","gold":3,"silver":0,"bronze":2,"total":5},{"country":"Iran","gold":3,"silver":0,"bronze":1,"total":4},{"country":"Slovenia","gold":3,"silver":0,"bronze":0,"total":3},{"country":"Indonesia","gold":2,"silver":4,"bronze":2,"total":8},{"country":"Czech Republic","gold":2,"silver":3,"bronze":4,"total":9},{"country":"Kenya","gold":2,"silver":3,"bronze":2,"total":7},{"country":"Slovakia","gold":2,"silver":3,"bronze":1,"total":6},{"country":"Lithuania","gold":2,"silver":0,"bronze":15,"total":17},{"country":"Azerbaijan","gold":2,"silver":0,"bronze":1,"total":3},{"country":"Switzerland","gold":1,"silver":11,"bronze":2,"total":14},{"country":"Mexico","gold":1,"silver":2,"bronze":3,"total":6},{"country":"Algeria","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Uzbekistan","gold":1,"silver":1,"bronze":2,"total":4},{"country":"Latvia","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Croatia","gold":1,"silver":0,"bronze":9,"total":10},{"country":"New Zealand","gold":1,"silver":0,"bronze":3,"total":4},{"country":"Estonia","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Thailand","gold":1,"silver":0,"bronze":2,"total":3},{"country":"Colombia","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Mozambique","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Jamaica","gold":0,"silver":20,"bronze":3,"total":23},{"country":"Argentina","gold":0,"silver":17,"bronze":3,"total":20},{"country":"Brazil","gold":0,"silver":12,"bronze":36,"total":48},{"country":"Belgium","gold":0,"silver":3,"bronze":4,"total":7},{"country":"South Africa","gold":0,"silver":2,"bronze":3,"total":5},{"country":"Chinese Taipei","gold":0,"silver":1,"bronze":4,"total":5},{"country":"Morocco","gold":0,"silver":1,"bronze":4,"total":5},{"country":"North Korea","gold":0,"silver":1,"bronze":3,"total":4},{"country":"Moldova","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Saudi Arabia","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Trinidad and Tobago","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Ireland","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Sri Lanka","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Uruguay","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Vietnam","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Chile","gold":0,"silver":0,"bronze":17,"total":17},{"country":"Georgia","gold":0,"silver":0,"bronze":6,"total":6},{"country":"Costa Rica","gold":0,"silver":0,"bronze":2,"total":2},{"country":"Portugal","gold":0,"silver":0,"bronze":2,"total":2},{"country":"Armenia","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Barbados","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Iceland","gold":0,"silver":0,"bronze":1,"total":1},{"country":"India","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Israel","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Kuwait","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Kyrgyzstan","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Macedonia","gold":0,"silver":0,"bronze":1,"total":1},{"country":"Qatar","gold":0,"silver":0,"bronze":1,"total":1}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/9/in.json b/olympics/testdata/tests/top-countries-in-year/9/in.json new file mode 100644 index 0000000..8908e48 --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/9/in.json @@ -0,0 +1 @@ +{"year": 2006, "limit": 72} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/9/out.json b/olympics/testdata/tests/top-countries-in-year/9/out.json new file mode 100644 index 0000000..b3d9d9f --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/9/out.json @@ -0,0 +1 @@ +[{"country":"Sweden","gold":35,"silver":21,"bronze":8,"total":64},{"country":"Canada","gold":30,"silver":28,"bronze":11,"total":69},{"country":"Germany","gold":23,"silver":25,"bronze":6,"total":54},{"country":"Russia","gold":16,"silver":12,"bronze":13,"total":41},{"country":"Austria","gold":16,"silver":7,"bronze":7,"total":30},{"country":"South Korea","gold":14,"silver":3,"bronze":2,"total":19},{"country":"Italy","gold":11,"silver":0,"bronze":14,"total":25},{"country":"United States","gold":9,"silver":11,"bronze":32,"total":52},{"country":"Switzerland","gold":5,"silver":7,"bronze":9,"total":21},{"country":"France","gold":3,"silver":2,"bronze":10,"total":15},{"country":"Netherlands","gold":3,"silver":2,"bronze":8,"total":13},{"country":"Estonia","gold":3,"silver":0,"bronze":0,"total":3},{"country":"Norway","gold":2,"silver":9,"bronze":12,"total":23},{"country":"China","gold":2,"silver":5,"bronze":6,"total":13},{"country":"Czech Republic","gold":1,"silver":2,"bronze":24,"total":27},{"country":"Croatia","gold":1,"silver":2,"bronze":0,"total":3},{"country":"Australia","gold":1,"silver":0,"bronze":1,"total":2},{"country":"Japan","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Finland","gold":0,"silver":34,"bronze":7,"total":41},{"country":"Poland","gold":0,"silver":1,"bronze":1,"total":2},{"country":"Belarus","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Bulgaria","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Great Britain","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Slovakia","gold":0,"silver":1,"bronze":0,"total":1},{"country":"Ukraine","gold":0,"silver":0,"bronze":3,"total":3},{"country":"Latvia","gold":0,"silver":0,"bronze":1,"total":1}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/9_in.json b/olympics/testdata/tests/top-countries-in-year/9_in.json deleted file mode 100644 index cb5d1cb..0000000 --- a/olympics/testdata/tests/top-countries-in-year/9_in.json +++ /dev/null @@ -1 +0,0 @@ -{"year": 2010, "limit": 21} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/9_out.json b/olympics/testdata/tests/top-countries-in-year/9_out.json deleted file mode 100644 index 9970dbe..0000000 --- a/olympics/testdata/tests/top-countries-in-year/9_out.json +++ /dev/null @@ -1 +0,0 @@ -[{"country":"Canada","gold":67,"silver":15,"bronze":8,"total":90},{"country":"Norway","gold":16,"silver":14,"bronze":9,"total":39},{"country":"Germany","gold":15,"silver":24,"bronze":15,"total":54},{"country":"United States","gold":12,"silver":63,"bronze":22,"total":97},{"country":"Austria","gold":11,"silver":9,"bronze":6,"total":26},{"country":"Sweden","gold":11,"silver":3,"bronze":4,"total":18},{"country":"China","gold":9,"silver":3,"bronze":7,"total":19},{"country":"South Korea","gold":6,"silver":10,"bronze":2,"total":18},{"country":"Russia","gold":6,"silver":5,"bronze":14,"total":25},{"country":"Switzerland","gold":6,"silver":0,"bronze":6,"total":12},{"country":"Netherlands","gold":4,"silver":1,"bronze":6,"total":11},{"country":"France","gold":2,"silver":6,"bronze":6,"total":14},{"country":"Australia","gold":2,"silver":1,"bronze":0,"total":3},{"country":"Czech Republic","gold":2,"silver":0,"bronze":7,"total":9},{"country":"Poland","gold":1,"silver":3,"bronze":4,"total":8},{"country":"Italy","gold":1,"silver":1,"bronze":3,"total":5},{"country":"Belarus","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Slovakia","gold":1,"silver":1,"bronze":1,"total":3},{"country":"Great Britain","gold":1,"silver":0,"bronze":0,"total":1},{"country":"Japan","gold":0,"silver":5,"bronze":2,"total":7},{"country":"Latvia","gold":0,"silver":3,"bronze":0,"total":3}] \ No newline at end of file