- base.html 상단 네비게이션 브랜딩 변경 - 팜큐 약국 관리 시스템 → PharmQ Super Admin (PSA) - UI 일관성 향상을 위한 브랜딩 통합 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
487 B
JavaScript
17 lines
487 B
JavaScript
/* eslint-disable no-console */
|
|
const expect = chai.expect;
|
|
|
|
import { toUnsigned32bit, toSigned32bit } from '../core/util/int.js';
|
|
|
|
describe('Integer casting', function () {
|
|
it('should cast unsigned to signed', function () {
|
|
let expected = 4294967286;
|
|
expect(toUnsigned32bit(-10)).to.equal(expected);
|
|
});
|
|
|
|
it('should cast signed to unsigned', function () {
|
|
let expected = -10;
|
|
expect(toSigned32bit(4294967286)).to.equal(expected);
|
|
});
|
|
});
|