Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completed Recursion #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SpecRunner.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
});
</script>
<script src="spec/part1.js"></script>
<!-- <script src="spec/part2.js"></script> -->
<!-- <script src="spec/part2.js"></script> -->
<!-- End test files -->
</head>
<body>
Expand Down
24 changes: 12 additions & 12 deletions spec/part1.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@



xdescribe('3. Sum Integers in Array', function() {
describe('3. Sum Integers in Array', function() {

it('should return a number', function() {
expect(typeof(arraySum([[1],[2,3],[[4]],5,6]))).to.eql('number');
Expand Down Expand Up @@ -402,7 +402,7 @@



xdescribe('11. Modulo', function() {
describe('11. Modulo', function() {

it('should return a number', function() {
expect(typeof(modulo(5,2))).to.equal('number');
Expand Down Expand Up @@ -476,7 +476,7 @@



xdescribe('13. Divide', function() {
describe('13. Divide', function() {

it('should return a number', function() {
expect(typeof(divide(5,2))).to.equal('number');
Expand Down Expand Up @@ -512,7 +512,7 @@



xdescribe('14. Greatest Common Divisor', function() {
describe('14. Greatest Common Divisor', function() {

it('should return a number', function() {
expect(typeof(gcd(4,36))).to.equal('number');
Expand Down Expand Up @@ -726,7 +726,7 @@



xdescribe('21. Count key in object', function() {
describe('21. Count key in object', function() {
var input = {'e': {'x':'y'}, 't':{'r': {'e':'r'}, 'p': {'y':'r'}},'y':'e'};

it('should return a number', function() {
Expand Down Expand Up @@ -756,7 +756,7 @@



xdescribe('22. Count value in object', function() {
describe('22. Count value in object', function() {
var input = {'e': {'x':'y'}, 't':{'r': {'e':'r'}, 'p': {'y':'r'}},'y':'e'};

it('should return a number', function() {
Expand Down Expand Up @@ -786,7 +786,7 @@



xdescribe('23. Replace keys in object', function() {
describe('23. Replace keys in object', function() {

var tallyKeys = function(obj) {
var count = 0;
Expand Down Expand Up @@ -850,7 +850,7 @@
});


xdescribe('24. First n Fibonacci', function() {
describe('24. First n Fibonacci', function() {

it('should return an array', function() {
expect(Array.isArray(fibonacci(5))).to.equal(true);
Expand Down Expand Up @@ -961,7 +961,7 @@



xdescribe('28. Sum even numbers in nested objects', function() {
describe('28. Sum even numbers in nested objects', function() {
var obj = {
a: 2,
b: {b: 2, bb: {b: 3, bb: {b: 2}}},
Expand Down Expand Up @@ -990,7 +990,7 @@



xdescribe('29. Flatten nested arrays', function() {
describe('29. Flatten nested arrays', function() {

it('should return an array', function() {
expect(Array.isArray(flatten([1,[2],[3,[[4]]],5]))).to.equal(true);
Expand Down Expand Up @@ -1073,7 +1073,7 @@



xdescribe('32. Augment each element in nested arrays', function() {
describe('32. Augment each element in nested arrays', function() {

it('should return an array', function() {
expect(Array.isArray(augmentElements([[],[3],[7]], 5))).to.equal(true);
Expand Down Expand Up @@ -1147,7 +1147,7 @@



xdescribe('35. Convert numbers to text', function() {
describe('35. Convert numbers to text', function() {

it('should return a string', function() {
expect(typeof(numToText("I have 5 dogs and 6 ponies"))).to.equal('string');
Expand Down
Loading