1.3 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.3 KiB
		
	
	
	
	
	
	
	
title, id, challengeType, videoUrl, localeTitle
| title | id | challengeType | videoUrl | localeTitle | 
|---|---|---|---|---|
| Topological sort | 594fa2746886f41f7d8bf225 | 5 | 
Description
undefined
Instructions
undefined
Tests
tests:
  - text: ''
    testString: 'assert(typeof topologicalSort === "function", "<code>topologicalSort</code> is a function.");'
  - text: ''
    testString: 'assert.deepEqual(topologicalSort(libsSimple), ["bbb", "aaa"], "<code>topologicalSort</code> must return correct library order..");'
  - text: ''
    testString: 'assert.deepEqual(topologicalSort(libsVHDL), solutionVHDL, "<code>topologicalSort</code> must return correct library order..");'
  - text: ''
    testString: 'assert.deepEqual(topologicalSort(libsCustom), solutionCustom, "<code>topologicalSort</code> must return correct library order..");'
  - text: ''
    testString: 'assert.deepEqual(topologicalSort(libsUnorderable), solutionUnorderable, "<code>topologicalSort</code> must ignore unorderable dependencies..");'
Challenge Seed
function topologicalSort(libs) {
  // Good luck!
  return true;
}
After Test
console.info('after the test');
Solution
// solution required