lab5: брокер RabbitMQ, worker и асинхронная обработка

This commit is contained in:
2026-11-05 01:17:58 +03:00
parent 1982bdb690
commit d19824f546
44 changed files with 3486 additions and 150 deletions
+14
View File
@@ -0,0 +1,14 @@
import { describe, expect, it } from 'vitest';
import { fitInside } from './fit-inside.js';
describe('fitInside', () => {
it.each([
[320, 200, 256, [256, 160]],
[1000, 335, 256, [256, 85]],
[100, 50, 256, [100, 50]],
[10000, 1, 256, [256, 1]],
[1, 10000, 256, [1, 256]],
])('fits %ix%i into %i as %j', (width, height, box, expected) => {
expect(fitInside(width, height, box)).toEqual(expected);
});
});