mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
55 lines
1.0 KiB
YAML
55 lines
1.0 KiB
YAML
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
|
|
cases:
|
|
- note: bits.rsh.error.wrongtype1
|
|
data: {}
|
|
modules:
|
|
- |
|
|
package test
|
|
|
|
x = bits.rsh(1, "str")
|
|
query: data.test
|
|
error: "`bits.rsh` expects numeric argument. Got `\"str\"` instead"
|
|
|
|
- note: bits.rsh.error.wrongtype2
|
|
data: {}
|
|
modules:
|
|
- |
|
|
package test
|
|
|
|
x = bits.rsh("str", 1)
|
|
query: data.test
|
|
error: "`bits.rsh` expects numeric argument. Got `\"str\"` instead"
|
|
|
|
- note: bits.rsh.error.morearg
|
|
data: {}
|
|
modules:
|
|
- |
|
|
package test
|
|
|
|
x = bits.rsh(1, 1, 1)
|
|
query: data.test
|
|
error: "`bits.rsh` expects 2 arguments"
|
|
|
|
- note: bits.rsh.error.lessarg
|
|
data: {}
|
|
modules:
|
|
- |
|
|
package test
|
|
|
|
x = bits.rsh(1)
|
|
query: data.test
|
|
error: "`bits.rsh` expects 2 arguments"
|
|
|
|
- note: bits.rsh
|
|
data: {}
|
|
modules:
|
|
- |
|
|
package test
|
|
|
|
x = bits.rsh(9, 2)
|
|
query: data.test
|
|
want_result:
|
|
x : 2
|