`Disable bitwise operations

This commit is contained in:
BorysLevytskyi
2023-05-06 15:58:34 +02:00
parent ca93037a2d
commit 9ab5071b2c
11 changed files with 64 additions and 43 deletions

View File

@@ -17,13 +17,14 @@ describe("calc", () => {
expect(calc.maxNumberOfBitsDisplayed([1, 2, 3, 10])).toBe(4);
});
it('calculates expression', () => {
it('calculates expression', () => {
var result = calc.calcExpression(new BitwiseOperationExpression(
"1|2&3",
[
new ScalarExpression(1),
new OperatorExpression("|2", new ScalarExpression(2), "|"),
new OperatorExpression("&3", new ScalarExpression(3), "&"),
new OperatorExpression(new ScalarExpression(2), "|"),
new OperatorExpression(new ScalarExpression(3), "&"),
]
));

View File

@@ -1,4 +1,3 @@
const INT_MAX_VALUE = 2147483647;
export {INT_MAX_VALUE};