Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
42 additions
and
32 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
describe('ListNode', function() { | ||
it('should have a data property', function(){ | ||
var node = new ListNode(); | ||
expect(node).to.have.property('data'); | ||
}); | ||
|
||
// it('should have data', function() { | ||
// var node = new ListNode('info'); | ||
// expect(node.data).to.eq('info'); | ||
// var pizzaNode = new ListNode('pizza'); | ||
// expect(pizzaNode.data).to.eq('pizza'); | ||
// }); | ||
|
||
// it('should have a default empty nextNode', function() { | ||
// var node = new ListNode('pizza'); | ||
// expect(node.nextNode).to.eq(null); | ||
// }); | ||
|
||
// it('should allow setting a nextNode', function() { | ||
// var n1 = new ListNode('pizza'); | ||
// var n2 = new ListNode('cats'); | ||
// n1.nextNode = n2; | ||
// expect(n1.nextNode.data).to.eq('cats'); | ||
// expect(n1.nextNode instanceof ListNode).to.be.true; | ||
// }); | ||
|
||
// it('should allow a next node argument on creation', function(){ | ||
// var node = new ListNode('pizza', new ListNode('cats')); | ||
// expect(node.nextNode.data).to.eq('cats'); | ||
// expect(node.nextNode instanceof ListNode).to.be.true; | ||
// }); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# Linked List Problem | ||
|
||
## Running the Tests | ||
Open the `test.html` page to see your tests run in the brower. | ||
|
||
You can run the tests in this folder in the browser. | ||
There are two sets of tests to get passing! | ||
|
||
To run in the browser, open the `index.html` page and you should see your tests. | ||
Start with the tests in `ListNode_test.js` | ||
|
||
Once those are passing, more on to the tests in `LinkedList_test.js` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters