v2
- by jfmengels 11/24/202100
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
// Minified code for ()and necessary for) $elm$core$Array$fromList and _List_fromArray
// This website doesn't want to save setup code over 4096 characters...

function _Utils_Tuple2(r,$){return{a:r,b:$}}var $elm$core$Array$branchFactor=32,_JsArray_initializeFromList_fn=function(r,$){for(var e=new Array(r),o=0;o<r&&$.b;o++)e[o]=$.a,$=$.b;return e.length=o,_Utils_Tuple2(e,$)},$elm$core$Array$Array_elm_builtin_fn=function(r,$,e,o){return{$:0,a:r,b:$,c:e,d:o}},_Basics_ceiling=Math.ceil,_Basics_floor=Math.floor,_Basics_log=Math.log,$elm$core$Basics$ceiling=_Basics_ceiling,$elm$core$Basics$floor=_Basics_floor,$elm$core$Basics$logBase_fn=function(r,$){return _Basics_log($)/_Basics_log(r)},$elm$core$Basics$max_fn=function(r,$){return r>$?r:$},_List_Nil={$:0,a:null,b:null};function _List_Cons(r,$){return{$:1,a:r,b:$}}var _List_cons=_List_Cons,$elm$core$List$cons=_List_cons;function _List_fromArray(r){for(var $=_List_Nil,e=r.length;e--;)$=_List_Cons(r[e],$);return $}var $elm$core$List$foldl_fn=function(r,$,e){for(;;){if(!e.b)return $;var o=e.a,a=e.b,c=r,n=r(o,$);r=c,$=n,e=a}},$elm$core$List$reverse=function(r){return $elm$core$List$foldl_fn($elm$core$List$cons,_List_Nil,r)},_JsArray_empty=[],$elm$core$Elm$JsArray$empty=_JsArray_empty,$elm$core$Array$shiftStep=$elm$core$Basics$ceiling($elm$core$Basics$logBase_fn(2,$elm$core$Array$branchFactor)),$elm$core$Array$SubTree=function(r){return{$:0,a:r}},$elm$core$Array$Leaf=function(r){return{$:1,a:r}},$elm$core$Array$compressNodes_fn=function(r,$){for(;;){var e=_JsArray_initializeFromList_fn($elm$core$Array$branchFactor,r),o=e.a,a=e.b,c=_List_Cons($elm$core$Array$SubTree(o),$);if(!a.b)return $elm$core$List$reverse(c);r=a,$=c}},$elm$core$Array$treeFromBuilder_fn=function(r,$){for(;;){var e=$elm$core$Basics$ceiling($/$elm$core$Array$branchFactor);if(1===e)return _JsArray_initializeFromList_fn($elm$core$Array$branchFactor,r).a;r=$elm$core$Array$compressNodes_fn(r,_List_Nil),$=e}},$elm$core$Array$builderToArray_fn=function(r,$){if($.k){var e=$.k*$elm$core$Array$branchFactor,o=$elm$core$Basics$floor($elm$core$Basics$logBase_fn($elm$core$Array$branchFactor,e-1)),a=r?$elm$core$List$reverse($.o):$.o,c=$elm$core$Array$treeFromBuilder_fn(a,$.k);return $elm$core$Array$Array_elm_builtin_fn($.n.length+e,$elm$core$Basics$max_fn(5,o*$elm$core$Array$shiftStep),c,$.n)}return $elm$core$Array$Array_elm_builtin_fn($.n.length,$elm$core$Array$shiftStep,$elm$core$Elm$JsArray$empty,$.n)},$elm$core$Array$fromListHelp_fn=function(r,$,e){for(;;){var o=_JsArray_initializeFromList_fn($elm$core$Array$branchFactor,r),a=o.a,c=o.b;if(a.length<$elm$core$Array$branchFactor)return $elm$core$Array$builderToArray_fn(!0,{o:$,k:e,n:a});r=c,$=_List_Cons($elm$core$Array$Leaf(a),$),e=e+1}},$elm$core$Array$empty=$elm$core$Array$Array_elm_builtin_fn(0,$elm$core$Array$shiftStep,$elm$core$Elm$JsArray$empty,$elm$core$Elm$JsArray$empty),$elm$core$Array$fromList=function(r){return r.b?$elm$core$Array$fromListHelp_fn(r,_List_Nil,0):$elm$core$Array$empty};
delete caserun single casemove downdrag and drop case


ready



var a = $elm$core$Array$fromList(_List_fromArray([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]));
delete caserun single casemove updrag and drop case


ready



var b = { $: 0, a: 100, b: 5, c: [{ $: 1, a: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32] }, { $: 1, a: [33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64] }, { $: 1, a: [65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96] }], d: [97, 98, 99, 100] };
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN