Registry / testing / base65536-test

base65536-test

JSON →
library1.1.4jsnpmunverified

Language-agnostic test case files for the Base65536 encoding, version 1.1.4. This package provides binary and text file pairs for verifying correct encode/decode behavior, and invalid input files for testing decode failure. It is maintained by the author of the canonical JavaScript implementation. Differentiators: these are raw data files, not executable tests, allowing any language implementation to validate against the same reference cases.

npm install base65536-test
INSTALL
IMPORT
SIG · BASE65536-TEST
B
base65536-test
testingjavascriptv1.1.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Demonstrates reading test files from the installed package for manual testing of a Base65536 implementation.

const fs = require('fs'); const path = require('path'); // Read test file pairs const pairsDir = path.join(__dirname, 'node_modules/base65536-test', 'data', 'pairs'); const binary = fs.readFileSync(path.join(pairsDir, 'demo.bin')); const text = fs.readFileSync(path.join(pairsDir, 'demo.txt'), 'utf8'); // Test: encode binary should equal text, decode text should equal binary // Example with base65536 (not included) - just showing how to use the files console.log('Binary length:', binary.length); console.log('Text length:', text.length); // Read invalid decode files const badDir = path.join(__dirname, 'node_modules/base65536-test', 'data', 'bad'); const badFiles = fs.readdirSync(badDir); badFiles.forEach(file => { console.log('Bad file:', file); });
Debug
Known issues
gotchaThis package only contains test data files, not runnable tests. You must implement the encoding/decoding yourself or use the companion library base65536.
fix
Install base65536 for a JavaScript implementation, or write a test harness that reads the files and validates your own implementation.
affects: >=1.0
Errors
Common errors & fixes
Cannot find module 'base65536-test'
Package not installed or import path is wrong.
fix
Run: npm install base65536-test
ENOENT: no such file or directory, open '.../data/pairs/demo.bin'
Missing package installation or incorrect path.
fix
Ensure node_modules/base65536-test exists. Use path.join(__dirname, 'node_modules/base65536-test', 'data', 'pairs', 'demo.bin')
Upgrade
Version history
1.1.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
1
Resources
base65536-test — npm install base65536-test · libregistry