mirror of
				https://github.com/gabemart/hipku.git
				synced 2025-10-30 22:53:42 +00:00 
			
		
		
		
	Tidy up comments on tests
This commit is contained in:
		
							
								
								
									
										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 | ||||
| ** 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')) | ||||
|   | ||||
| @@ -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'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user