urbit-ob

JavaScript utilities for phonemic base wrangling.
Log | Files | Refs | README

commit 925200c7c91ac192ee741870229b8203b85b0c18
parent 8b3ce93b65855b8f3815bbed3e9c89e733992803
Author: Anthony <anthony@ai.co>
Date:   Sun,  5 Nov 2017 09:53:08 -0800

completed num to hsip

Diffstat:
Mtest/main.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/main.js b/test/main.js @@ -12,9 +12,9 @@ exports['test that stops execution'] = function(assert) { assert.equal(nom._wordtonum('samzod'), 1024, 'test converting two syllable word to num'); assert.equal((typeof nom._wordtonum('sambinzod')), 'undefined', 'test rejecting three syllable word to num'); - assert.equal(nom.toAddress('~lex'), 200, 'convert ship name ~lex to number 200'); - assert.equal(nom.toAddress('~binzod'), 512, 'convert ship name ~binzod to number 512'); - assert.equal(nom.toAddress('~poldec-tonteg'), 9896704, 'convert ship name ~poldec-tonteg to number 9896704'); + assert.equal(nom.toAddress('lex'), 200, 'convert ship name ~lex to number 200'); + assert.equal(nom.toAddress('binzod'), 512, 'convert ship name ~binzod to number 512'); + assert.equal(nom.toAddress('poldec-tonteg'), 9896704, 'convert ship name ~poldec-tonteg to number 9896704'); assert.equal(nom._getsuffix(200), 'lex', 'gets correct suffix'); assert.equal(nom.toGalaxyName(200), 'lex', 'convert ship num 200 to ~lex'); assert.equal(nom.toStarName(512), 'binzod', 'convert ship num 512 to ~binzod');