aboutsummaryrefslogtreecommitdiff
path: root/test/integers.tm
diff options
context:
space:
mode:
Diffstat (limited to 'test/integers.tm')
-rw-r--r--test/integers.tm18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/integers.tm b/test/integers.tm
index 6ba1559c..3035ad3b 100644
--- a/test/integers.tm
+++ b/test/integers.tm
@@ -139,3 +139,21 @@ func main()
= yes
>> (3).is_between(100, 200)
= no
+
+ >> (6).get_bit(1)
+ = no
+ >> (6).get_bit(2)
+ = yes
+ >> (6).get_bit(3)
+ = yes
+ >> (6).get_bit(4)
+ = no
+
+ >> Int64(6).get_bit(1)
+ = no
+ >> Int64(6).get_bit(2)
+ = yes
+ >> Int64(6).get_bit(3)
+ = yes
+ >> Int64(6).get_bit(4)
+ = no