v1
- by trezycodes 7/22/202100
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
// This will generate a string of 1000 alternating 1s and 0s in groups of 100.
const foo = new Array(100).fill('0')
const bar = new Array(100).fill('1')
const groups = new Array(100).fill(foo).map((item, index) => {
  if (index % 2) return bar
  return item
}).flat().join('')

// This will generate a string of 1000 alternating 1s and 0s.
const noGroups = new Array(1000).fill(null).map((character, index) => {
  	if (index % 2) return '0'
	return '1'
}).join('')
delete caserun single casemove downdrag and drop case


ready



groups.replace(/0/g, '')
delete caserun single casemove upmove downdrag and drop case


ready



noGroups.replace(/0/g, '')
delete caserun single casemove upmove downdrag and drop case


ready



groups.replace(/0+/g, '')
delete caserun single casemove updrag and drop case


ready



noGroups.replace(/0+/g, '')
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