urbit-ob

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

commit 44b7efe8516112484c0d46e7460c9aed89913ebc
parent 3619ac87e3b05416f0a40dbd45100a12321b65f5
Author: Jared Tobin <jared@jtobin.io>
Date:   Tue,  9 Oct 2018 06:19:35 +1300

Update tests.

Diffstat:
Mtest/core.test.js | 2+-
Mtest/property.js | 6++++--
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/test/core.test.js b/test/core.test.js @@ -145,7 +145,7 @@ test('patq correctly encodes 0x102 as @q', () => { test('patq correctly encodes 0x10102 as @q', () => { let input = new bnjs('010102', 'hex'); - let expected = '~nec-marbud'; + let expected = '~doznec-marbud'; expect(ob.patq(input)).toBe(expected); }); diff --git a/test/property.js b/test/property.js @@ -13,6 +13,7 @@ eqModLeadingZeroBytes = (s, t) => removeLeadingZeroBytes(s) === removeLeadingZeroBytes(t) describe('@q encoding', () => { + let hexString = jsc.string.smap( x => Buffer.from(x).toString('hex'), x => Buffer.from(x, 'hex').toString() @@ -32,7 +33,8 @@ describe('@q encoding', () => { ob.hex2patq(ob.patq2hex(str)) === str ) - jsc.assert(iso0) - jsc.assert(iso1) + jsc.assert(iso0, { tests: 200 }) + jsc.assert(iso1, { tests: 200 }) }) + })