From 4047f3334afb183c0ad75492f6d1a156a136384b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20DEL=20NERO?= Date: Thu, 17 Oct 2024 23:28:14 +0200 Subject: [PATCH] binary format test. --- docs/scripts/script_engine_test.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/scripts/script_engine_test.txt b/docs/scripts/script_engine_test.txt index e60ee14..64d16f0 100644 --- a/docs/scripts/script_engine_test.txt +++ b/docs/scripts/script_engine_test.txt @@ -141,6 +141,17 @@ print Or and xor operation, VARIABLE_1_TEST : $VARIABLE_1_TEST (Should be 0xCCCC if $VARIABLE_1_TEST != 0xCCCCAA55 then goto test_failed +print Binary number format test + +$VARIABLE_1_TEST = 0b1010 +$VARIABLE_2_TEST = 0b01010000 + +$VARIABLE_TMP = $VARIABLE_1_TEST | $VARIABLE_2_TEST + +if $VARIABLE_TMP != 0b01011010 then goto test_failed + +print Binary number format test passed ! + print End of script ( All Tests passed :) ) ! return # exit the from current script