Files
regorus/tests/interpreter/cases/builtins/bitwise/lsh.yaml
eric-therond e08d13df53 fix bitwise.and and add tests (#19)
Signed-off-by: eric-therond <eric.therond.fr@gmail.com>
2023-06-22 11:27:58 -07:00

55 lines
1.0 KiB
YAML

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: bits.lsh.error.wrongtype1
data: {}
modules:
- |
package test
x = bits.lsh(1, "str")
query: data.test
error: "`bits.lsh` expects numeric argument. Got `\"str\"` instead"
- note: bits.lsh.error.wrongtype2
data: {}
modules:
- |
package test
x = bits.lsh("str", 1)
query: data.test
error: "`bits.lsh` expects numeric argument. Got `\"str\"` instead"
- note: bits.lsh.error.morearg
data: {}
modules:
- |
package test
x = bits.lsh(1, 1, 1)
query: data.test
error: "`bits.lsh` expects 2 arguments"
- note: bits.lsh.error.lessarg
data: {}
modules:
- |
package test
x = bits.lsh(1)
query: data.test
error: "`bits.lsh` expects 2 arguments"
- note: bits.lsh
data: {}
modules:
- |
package test
x = bits.lsh(9, 2)
query: data.test
want_result:
x : 36