1
0
mirror of https://github.com/ericchiang/pup synced 2025-01-28 16:41:32 +00:00
pup/tests
Wolfgang Faust ddf33efab8 Update tests for json{}
On the assumption that this is currently correct
but the tests were never updated after the formatter changed.

Closes #80.
2018-02-17 10:57:55 -05:00
..
cmds.txt tests updated 2015-02-01 13:54:43 -05:00
expected_output.txt Update tests for json{} 2018-02-17 10:57:55 -05:00
index.html pup redone 2014-11-09 22:01:20 -05:00
README.md cleaning house 2014-11-09 22:47:43 -05:00
run.py pup redone 2014-11-09 22:01:20 -05:00
test pup redone 2014-11-09 22:01:20 -05:00

Tests

A simple set of tests to help maintain sanity.

These tests don't actually test functionality they only make sure pup behaves the same after code changes.

cmds.txt holds a list of commands to perform on index.html.

The output of each of these commands produces a specific sha1sum. The expected sha1sum of each command is in expected_output.txt.

Running the test file (just a bash script) will run the tests and diff the output. If pup has changed at all since the last version, you'll see the sha1sums that changed and the commands that produced that change.

To overwrite the current sha1sums, just run python run.py > expected_output.txt