before functional changes by codex

This commit is contained in:
znetsixe
2026-02-19 17:37:42 +01:00
parent 7c8722b324
commit 2b9ad5fd19
30 changed files with 906 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
const test = require('node:test');
const assert = require('node:assert/strict');
const { Reactor_PFR } = require('../../src/specificClass');
const { makeReactorConfig } = require('../helpers/factories');
test('oxygen measurement at exact reactor length overflows PFR grid index (known bounds gap)', () => {
const reactor = new Reactor_PFR(
makeReactorConfig({ reactor_type: 'PFR', length: 10, resolution_L: 5, n_inlets: 1 }),
);
assert.throws(() => {
reactor._updateMeasurement('quantity (oxygen)', 2.5, 10, {});
});
});