Skip to content

A solution to a simple problem question that uses an assert Class that has two requirements: 1) use of closure, and 2) cats.

License

Notifications You must be signed in to change notification settings

lbgraham/CatTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CatTest - A very simple assert equals toolset 🐱

"A cat has absolute emotional honesty. Human beings, for one reason or another, may hide their feelings, but a cat does not." ~Ernest Hemingway

A solution to a simple problem question that uses an assert Class that has two requirements:

  1. use of closure, and
  2. cats

Both of the above can be found in the CatTest.js class file. I demonstrate the use of closure in the trackResults method of this file. Its use is just a simple way to keep track of the number of times it has been called. Not probably the most practical implementation, but it is demonstrative.

ASCII versions of Grumpy Cat saying 'YEP' or 'NOPE' are included. In the program, they are read using 'fs' in the CatTest class.

Usage:

This program can be run from the command line with node.js installed:

node index.js

About

A solution to a simple problem question that uses an assert Class that has two requirements: 1) use of closure, and 2) cats.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published