mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-11 15:32:09 +01:00
fix bug of not flipping bits in binary operands
This commit is contained in:
@@ -9,8 +9,7 @@
|
||||
"stage:react": "npm run build && cp -r ./BitwiseCmdPages/* ../BitwiseCmdPages/react",
|
||||
"serv": "webpack-dev-server --content-base ./src",
|
||||
"e2e": "protractor ./tests/e2e.chrome.js --params.appUrl='http://localhost:8080/#clear'",
|
||||
"e2e:build": "protractor ./tests/e2e.chrome.js --params.appUrl='http://localhost:3000/#clear'",
|
||||
"e2e:remote:react": "protractor ./tests/e2e.chrome.js --params.appUrl='http://bitwisecmd.com/react/#clear||-notrack'",
|
||||
"e2e:stage": "protractor ./tests/e2e.chrome.js --params.appUrl='http://localhost:3000/#clear'",
|
||||
"e2e:remote:old": "protractor ./tests/e2e.chrome.js --params.appUrl='http://bitwisecmd.com/old/#clear||-notrack'",
|
||||
"e2e:remote": "protractor ./tests/e2e.chrome.js --params.appUrl='http://bitwisecmd.com//#clear||-notrack'",
|
||||
"test": "karma start"
|
||||
|
||||
@@ -27,7 +27,9 @@ export default class Operand {
|
||||
|
||||
getOtherKind(kind) {
|
||||
switch(kind || this.kind) {
|
||||
case 'dec': return 'hex';
|
||||
case 'dec':
|
||||
case 'bin':
|
||||
return 'hex';
|
||||
case 'hex': return 'dec';
|
||||
default : throw new Error(kind + " kind doesn't have opposite kind")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user