mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
3.9 KiB
18 lines
3.9 KiB
[ |
|
{ |
|
"description": "Test TOP 2", |
|
"code": "equal(\n ultimateScoreboard(\n [\n { duration: 122, name: 'Muntaser' },\n { duration: 235, name: 'Noura' },\n { duration: 927, name: 'Maitha' },\n ],\n 2,\n ),\n ['#01 - 02:02, Muntaser', '#02 - 03:55, Noura'],\n)" |
|
}, |
|
{ |
|
"description": "Test TOP 5", |
|
"code": "equal(\n ultimateScoreboard(\n [\n { duration: 60, name: 'Wasan' },\n { duration: 237, name: 'Ibrahim' },\n { duration: 302, name: 'Alanoud' },\n { duration: 411, name: 'Hessa' },\n { duration: 499, name: 'Mariam' },\n { duration: 514, name: 'Meriem' },\n { duration: 524, name: 'Sarah' },\n { duration: 567, name: 'Mehnaz' },\n { duration: 891, name: 'maitha' },\n { duration: 967, name: 'Shadha' },\n { duration: 982, name: 'Hala' },\n { duration: 1124, name: 'Lina' },\n { duration: 1137, name: 'Alanoud' },\n { duration: 1138, name: 'Asmaa' },\n { duration: 1170, name: 'Abdulkarim' },\n ],\n 5,\n ),\n [\n '#01 - 01:00, Wasan',\n '#02 - 03:57, Ibrahim',\n '#03 - 05:02, Alanoud',\n '#04 - 06:51, Hessa',\n '#05 - 08:19, Mariam',\n ],\n)" |
|
}, |
|
{ |
|
"description": "Test top 10", |
|
"code": "equal(\n ultimateScoreboard(\n [\n { duration: 101, name: 'Clement' },\n { duration: 120, name: 'Yahya' },\n { duration: 158, name: 'Rahimul' },\n { duration: 354, name: 'Muntaser' },\n { duration: 374, name: 'Marie' },\n { duration: 427, name: 'Jawaher' },\n { duration: 621, name: 'Hamda' },\n { duration: 841, name: 'Haya' },\n { duration: 860, name: 'Aaesha' },\n { duration: 1012, name: 'Karim' },\n { duration: 1041, name: 'Noor' },\n { duration: 1071, name: 'AM' },\n { duration: 1112, name: 'Mahraalk' },\n { duration: 1124, name: 'Ali' },\n { duration: 3797, name: 'Fady' },\n ],\n 10,\n ),\n [\n '#01 - 01:41, Clement',\n '#02 - 02:00, Yahya',\n '#03 - 02:38, Rahimul',\n '#04 - 05:54, Muntaser',\n '#05 - 06:14, Marie',\n '#06 - 07:07, Jawaher',\n '#07 - 10:21, Hamda',\n '#08 - 14:01, Haya',\n '#09 - 14:20, Aaesha',\n '#10 - 16:52, Karim',\n ],\n)" |
|
}, |
|
{ |
|
"description": "Test TOP 20", |
|
"code": "equal(\n ultimateScoreboard(\n [\n { duration: 17, name: 'Masood' },\n { duration: 48, name: 'Mehnaz' },\n { duration: 95, name: 'Hessa' },\n { duration: 96, name: 'Fareaa' },\n { duration: 97, name: 'Mariam' },\n { duration: 133, name: 'shamma' },\n { duration: 143, name: 'Laila' },\n { duration: 144, name: 'Reem' },\n { duration: 222, name: 'aisha' },\n { duration: 242, name: 'Maitha' },\n { duration: 249, name: 'noura' },\n { duration: 427, name: 'Hello' },\n { duration: 452, name: 'Zahra' },\n { duration: 470, name: 'Aisha' },\n { duration: 594, name: 'Wasan' },\n { duration: 703, name: 'shaikha' },\n { duration: 716, name: 'Maitha' },\n { duration: 762, name: 'mariam' },\n { duration: 770, name: 'Tanzeel' },\n { duration: 796, name: 'Mohammed' },\n { duration: 803, name: 'Mibin' },\n { duration: 885, name: 'salma' },\n { duration: 899, name: 'Mai' },\n { duration: 905, name: 'khadija' },\n { duration: 1032, name: 'Fatima' },\n { duration: 1093, name: 'Salama' },\n { duration: 1194, name: 'Samira' },\n ],\n 20,\n ),\n [\n '#01 - 00:17, Masood',\n '#02 - 00:48, Mehnaz',\n '#03 - 01:35, Hessa',\n '#04 - 01:36, Fareaa',\n '#05 - 01:37, Mariam',\n '#06 - 02:13, shamma',\n '#07 - 02:23, Laila',\n '#08 - 02:24, Reem',\n '#09 - 03:42, aisha',\n '#10 - 04:02, Maitha',\n '#11 - 04:09, noura',\n '#12 - 07:07, Hello',\n '#13 - 07:32, Zahra',\n '#14 - 07:50, Aisha',\n '#15 - 09:54, Wasan',\n '#16 - 11:43, shaikha',\n '#17 - 11:56, Maitha',\n '#18 - 12:42, mariam',\n '#19 - 12:50, Tanzeel',\n '#20 - 13:16, Mohammed',\n ],\n)" |
|
} |
|
] |