File: gen.txtar

package info (click to toggle)
golang-github-cue-lang-cue 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,644 kB
  • sloc: makefile: 20; sh: 15
file content (32 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# generated from the original tests.
# Henceforth it may be nicer to group tests into separate files.
-- in.cue --
import "math/bits"

t1:  bits.Or(0x8, 0x1)
t2:  bits.Lsh(0x8, 4)
t3:  bits.Rsh(0x100, 4)
t4:  bits.At(0x100, 8)
t5:  bits.At(0x100, 9)
t6:  bits.Set(0x100, 7, 1)
t7:  bits.Set(0x100, 8, 0)
t8:  bits.And(0x10000000000000F0E, 0xF0F7)
t9:  bits.Or(0x100000000000000F0, 0x0F)
t10: bits.Xor(0x10000000000000F0F, 0xFF0)
t11: bits.Xor(0xFF0, 0x10000000000000F0F)
t12: bits.Clear(0xF, 0x100000000000008)
t13: bits.Clear(0x1000000000000000008, 0xF)
-- out/bits --
t1:  9
t2:  128
t3:  16
t4:  1
t5:  0
t6:  384
t7:  0
t8:  6
t9:  18446744073709551871
t10: 18446744073709551871
t11: 18446744073709551871
t12: 7
t13: 4722366482869645213696