Files
generalFunctions/test/curve-loader.test.js
znetsixe 27a6d3c709 updates
2026-03-11 11:13:05 +01:00

14 lines
398 B
JavaScript

const test = require('node:test');
const assert = require('node:assert/strict');
const { loadCurve } = require('../index.js');
test('loadCurve resolves curve ids case-insensitively', () => {
const canonical = loadCurve('hidrostal-H05K-S03R');
const lowercase = loadCurve('hidrostal-h05k-s03r');
assert.ok(canonical);
assert.ok(lowercase);
assert.strictEqual(canonical, lowercase);
});