mirror of
https://github.com/gabemart/hipku.git
synced 2025-01-18 03:55:34 +00:00
Tidy up comments on tests
This commit is contained in:
parent
7a7392bcb0
commit
8768da7339
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
TODO.txt
|
@ -1,14 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
** Test that a given input results in an output that can
|
** Test that when you take an IP address, encode it, and then decode it
|
||||||
** be decoded to match the original input. Applicable to
|
** again, it matches the original address. These tests are applicable to
|
||||||
** all versions.
|
** all versions of Hipku, regardless of changes to the dictionaries or
|
||||||
|
** schema.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Hipku = require('../../index.js');
|
var Hipku = require('../../index.js');
|
||||||
|
|
||||||
describe("All versions of Hipku", function() {
|
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(
|
expect(
|
||||||
Hipku.decode(Hipku.encode('0.0.0.0'))
|
Hipku.decode(Hipku.encode('0.0.0.0'))
|
||||||
).toBe('0.0.0.0');
|
).toBe('0.0.0.0');
|
||||||
@ -26,7 +27,7 @@ describe("All versions of Hipku", function() {
|
|||||||
).toBe('255.255.255.255');
|
).toBe('255.255.255.255');
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should symetrically encode and decode IPv6 addresses", function() {
|
it("should symmetrically encode and decode IPv6 addresses", function() {
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
Hipku.decode(Hipku.encode('0:0:0:0:0:0:0:0'))
|
Hipku.decode(Hipku.encode('0:0:0:0:0:0:0:0'))
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
** Test that a series of inputs match the outputs
|
** Test that a series of encoded test IPs match haiku for the current
|
||||||
** specified by the current version's dictionaries
|
** set of dictionaries and schema, and that a series of decoded test
|
||||||
** and schemas. Tests must be updated whenever changes
|
** haiku match IPs for the current dictionaries and schema. These tests
|
||||||
** are made to any dicationary or schema.
|
** must be updated whenever the dictionaries or schema are changed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Hipku = require('../../index.js');
|
var Hipku = require('../../index.js');
|
||||||
|
Loading…
Reference in New Issue
Block a user