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);
});
