summaryrefslogtreecommitdiff
path: root/tests/code/bits.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-27 03:47:30 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-27 03:47:30 +0300
commit059e0d95d0c28bc5060e87e146eaf7411f51bf90 (patch)
tree7c21ac432f16dde2329a0d5954d70711eceb48e6 /tests/code/bits.php
parent26cd8ee99659ef1926c96a049c93645ffc9b169d (diff)
downloadgyraf1gov-059e0d95d0c28bc5060e87e146eaf7411f51bf90.tar.gz
gyraf1gov-059e0d95d0c28bc5060e87e146eaf7411f51bf90.tar.bz2
gyraf1gov-059e0d95d0c28bc5060e87e146eaf7411f51bf90.zip
skeleton commit; based on an anom project
Diffstat (limited to 'tests/code/bits.php')
-rwxr-xr-xtests/code/bits.php51
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/code/bits.php b/tests/code/bits.php
new file mode 100755
index 0000000..1ee1826
--- /dev/null
+++ b/tests/code/bits.php
@@ -0,0 +1,51 @@
+<?php
+echo '<pre>';
+
+
+$a = 1;
+$b = 2;
+$c = 4;
+
+echo "\n\n(a|b)&...\n---\n";
+echo ($a|$b)&$a;
+echo "\n";
+echo ($a|$b)&$b;
+echo "\n";
+echo ($a|$b)&$c;
+
+echo "\n\n(b|c)&...\n---\n";
+echo ($b|$c)&$a;
+echo "\n";
+echo ($b|$c)&$b;
+echo "\n";
+echo ($b|$c)&$c;
+
+echo "\n\n(a|b|c)&...\n---\n";
+echo ($a|$b|$c)&$a;
+echo "\n";
+echo ($a|$b|$c)&$b;
+echo "\n";
+echo ($a|$b|$c)&$c;
+echo "\n";
+
+
+/*
+
+3
+---
+%2 = 1 then a
+/2 = 1
+
+%2 = 1 then b
+0 end
+
+
+6
+---
+%2 = 0 NOT A
+/2 = 3
+
+%2 =
+
+
+*/ \ No newline at end of file