1
0
mirror of https://github.com/gabemart/hipku.git synced 2024-10-05 10:20:55 +01:00

Tidy up comments on tests

This commit is contained in:
Gabriel Martin 2015-01-05 18:49:41 +00:00
parent 7a7392bcb0
commit 8768da7339
3 changed files with 11 additions and 9 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
TODO.txt

View File

@ -1,14 +1,15 @@
/*
** Test that a given input results in an output that can
** be decoded to match the original input. Applicable to
** all versions.
** Test that when you take an IP address, encode it, and then decode it
** again, it matches the original address. These tests are applicable to
** all versions of Hipku, regardless of changes to the dictionaries or
** schema.
*/
var Hipku = require('../../index.js');
describe("All versions of Hipku", function() {
it("should symetrically encode and decode IPv4 addresses", function() {
it("should symmetrically encode and decode IPv4 addresses", function() {
expect(
Hipku.decode(Hipku.encode('0.0.0.0'))
).toBe('0.0.0.0');
@ -26,7 +27,7 @@ describe("All versions of Hipku", function() {
).toBe('255.255.255.255');
});
it("should symetrically encode and decode IPv6 addresses", function() {
it("should symmetrically encode and decode IPv6 addresses", function() {
expect(
Hipku.decode(Hipku.encode('0:0:0:0:0:0:0:0'))

View File

@ -1,8 +1,8 @@
/*
** Test that a series of inputs match the outputs
** specified by the current version's dictionaries
** and schemas. Tests must be updated whenever changes
** are made to any dicationary or schema.
** Test that a series of encoded test IPs match haiku for the current
** set of dictionaries and schema, and that a series of decoded test
** haiku match IPs for the current dictionaries and schema. These tests
** must be updated whenever the dictionaries or schema are changed.
*/
var Hipku = require('../../index.js');