From 3d1eb4d872fd96bcd726bdd6fb27494523c3539b Mon Sep 17 00:00:00 2001 From: nickshevr Date: Mon, 9 Mar 2020 18:49:31 +0300 Subject: [PATCH] (tests): Add test for default limit value --- olympics/testdata/tests/top-athletes-in-sport/30/in.json | 1 + olympics/testdata/tests/top-athletes-in-sport/30/out.json | 1 + olympics/testdata/tests/top-countries-in-year/30/in.json | 1 + olympics/testdata/tests/top-countries-in-year/30/out.json | 1 + 4 files changed, 4 insertions(+) create mode 100644 olympics/testdata/tests/top-athletes-in-sport/30/in.json create mode 100644 olympics/testdata/tests/top-athletes-in-sport/30/out.json create mode 100644 olympics/testdata/tests/top-countries-in-year/30/in.json create mode 100644 olympics/testdata/tests/top-countries-in-year/30/out.json diff --git a/olympics/testdata/tests/top-athletes-in-sport/30/in.json b/olympics/testdata/tests/top-athletes-in-sport/30/in.json new file mode 100644 index 0000000..6330b07 --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/30/in.json @@ -0,0 +1 @@ +{"sport": "Biathlon"} \ No newline at end of file diff --git a/olympics/testdata/tests/top-athletes-in-sport/30/out.json b/olympics/testdata/tests/top-athletes-in-sport/30/out.json new file mode 100644 index 0000000..b56d28b --- /dev/null +++ b/olympics/testdata/tests/top-athletes-in-sport/30/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}}}] \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/30/in.json b/olympics/testdata/tests/top-countries-in-year/30/in.json new file mode 100644 index 0000000..9b26e8d --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/30/in.json @@ -0,0 +1 @@ +{"year": 2000} \ No newline at end of file diff --git a/olympics/testdata/tests/top-countries-in-year/30/out.json b/olympics/testdata/tests/top-countries-in-year/30/out.json new file mode 100644 index 0000000..40554bd --- /dev/null +++ b/olympics/testdata/tests/top-countries-in-year/30/out.json @@ -0,0 +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}] \ No newline at end of file