Skip to content

Commit

Permalink
remove tests for sequencing
Browse files Browse the repository at this point in the history
  • Loading branch information
lizbur10 committed Feb 3, 2021
1 parent 9179396 commit 91d4acd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 80 deletions.
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ Let's break this down:
get stored in `innerFunction`'s `name` and `lang` parameters.

This might look a little bit weird, but it generally makes sense to our
intuition about scopes: inner things can see their parent outer things.
intuition about scopes: inner things can see their parent outer things.

Note that currently, the values of the arguments being passed to `innerFunction`
are part of the **definition** of `outer`. In order to change those values we
Expand Down Expand Up @@ -470,15 +470,6 @@ wrapAdjective("%")("a dedicated programmer") //=> "You are %a dedicated programm

Run `learn` to verify you've gotten this set of tests passing.

### Additional Practice in Lab-Driven Development for JavaScript Basics

Whew! That's a lot of recap with a lot of mind-bending stuff. Let's make sure
that we review some of our easier basics.

The remainder of the tests ***are not*** new material. They're here to make
sure you remember how to work with `Object`s and `Array`s full of functions.
Use the tests to guide you in feeling confident working with functions.

## Conclusion

In this lesson, we've covered the basics of function declaration, invocation,
Expand Down
70 changes: 0 additions & 70 deletions test/indexTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,74 +44,4 @@ describe("index.js", () => {
expect(emphatic).to.equal("You are ||a dedicated programmer||!")
});
})

describe("defines an object called Calculator", function() {
it("has a JavaScript Object called Calculator as a local variable", function() {
expect(Calculator).to.be.a('object')
})

describe("that has a function called add", function() {
it("Calculator.add exists", function() {
expect(Calculator.add).to.exist
})

it("calculates 1 + 3", function() {
expect(Calculator.add(1,3)).to.equal(4)
})
})

describe("that has a function called subtract", function() {
it("Calculator.subtract exists", function() {
expect(Calculator.subtract).to.exist
})

it("calculates 1 - 3", function() {
expect(Calculator.subtract(1,3)).to.equal(-2)
})
})

describe("that has a function called multiply", function() {
it("Calculator.multiply exists", function() {
expect(Calculator.multiply).to.exist
})

it("calculates 1 * 3", function() {
expect(Calculator.multiply(1,3)).to.equal(3)
})
})

describe("that has a function called divide", function() {
it("Calculator.divide exists", function() {
expect(Calculator.divide).to.exist
})

it("calculates 10 / 5", function() {
expect(Calculator.divide(10,5)).to.equal(2)
})
})
})

describe("Defines a function called actionApplyer", function() {
it("exists", function() {
expect(actionApplyer).to.exist
})

describe("receives two arguments: a starting integer and an array of functions", function() {
it("returns the given starting point, unchanged, when the array is empty", function() {
expect(actionApplyer(0, [])).to.equal(0)
})

it("Given 13, returns 4 after being acted on by several functions", function() {
let message = "13, multiplied by 2, added to 1000 and then modulo 7 is 4. Apply each function in the Array of functions on the given base (13) OR on the result of the use of the previous function to get this result"
arrayOfTransforms = [
function(a){ return a * 2 },
function(a){ return a + 1000},
function(a){ return a % 7 }
]
expect(actionApplyer(13, arrayOfTransforms)).to.equal(4, message)
})
})


})
})

0 comments on commit 91d4acd

Please sign in to comment.