mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2026-01-06 03:52:39 +01:00
`Disable bitwise operations
This commit is contained in:
@@ -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), "&"),
|
||||
]
|
||||
));
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
const INT_MAX_VALUE = 2147483647;
|
||||
|
||||
export {INT_MAX_VALUE};
|
||||
Reference in New Issue
Block a user