Skip to content

Commit 4047f33

Browse files
committed
binary format test.
1 parent cd7ca0d commit 4047f33

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/scripts/script_engine_test.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@ print Or and xor operation, VARIABLE_1_TEST : $VARIABLE_1_TEST (Should be 0xCCCC
141141

142142
if $VARIABLE_1_TEST != 0xCCCCAA55 then goto test_failed
143143

144+
print Binary number format test
145+
146+
$VARIABLE_1_TEST = 0b1010
147+
$VARIABLE_2_TEST = 0b01010000
148+
149+
$VARIABLE_TMP = $VARIABLE_1_TEST | $VARIABLE_2_TEST
150+
151+
if $VARIABLE_TMP != 0b01011010 then goto test_failed
152+
153+
print Binary number format test passed !
154+
144155
print End of script ( All Tests passed :) ) !
145156

146157
return # exit the from current script

0 commit comments

Comments
 (0)