add five tender acceptance fixture test

This commit is contained in:
2026-09-06 18:20:12 +03:00
parent 8e06696c15
commit 3fc55f373c
2 changed files with 27 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { test } from 'node:test';
import assert from 'node:assert/strict';
// D10 smoke fixture: synthetic records only; official documents are still required for release acceptance.
const cases = [
['1582991', 'Giresun', '10.09.2026', '10:00'],
['1534665', 'Kayseri', '22.09.2026', '11:00'],
['1499061', 'Akdeniz', '22.09.2026', '10:30'],
['1573235', 'Aksaray', '09.09.2026', '10:00'],
['1523851', 'Tepecik', '11.09.2026', '10:00'],
];
test('D10 five-tender acceptance fixture stays complete and unique', () => {
assert.equal(new Set(cases.map(([ikn]) => ikn)).size, 5);
for (const [ikn, city, date, time] of cases) {
assert.match(ikn, /^\d{7}$/);
assert.match(city, /^[A-Za-zÇĞİÖŞÜçğıöşü]+$/);
assert.match(date, /^\d{2}\.\d{2}\.\d{4}$/);
assert.match(time, /^\d{2}:\d{2}$/);
}
});