summaryrefslogtreecommitdiff
path: root/tests/code/bits.php
diff options
context:
space:
mode:
authorGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2026-07-12 15:51:52 +0300
committerGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2026-07-12 15:51:52 +0300
commit02608271bb2a9f3a65ed536984d306ee14b48e34 (patch)
tree3f23ec48a694ec014e845c4f70d9b5f1c065403c /tests/code/bits.php
downloadkalassa-master.tar.gz
kalassa-master.tar.bz2
kalassa-master.zip
initialize repository; add docker config; migrate configuration to new specsHEADmaster
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