We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c8b98a commit b623ff4Copy full SHA for b623ff4
runtime/ztests/expr/cast/enum.yaml
@@ -0,0 +1,19 @@
1
+spq: this::enum(e1,e2)
2
+
3
+vector: true
4
5
+input: |
6
+ "e2"
7
+ "e3"
8
+ 0
9
+ null
10
+ null::string
11
+ null::int64
12
13
+output: |
14
+ "e2"::enum(e1,e2)
15
+ error({message:"no such symbol in enum(e1,e2)",on:"e3"})
16
+ error({message:"cannot cast to enum",on:0})
17
+ null::enum(e1,e2)
18
19
runtime/ztests/expr/cast/string.yaml
@@ -28,6 +28,7 @@ input: |
28
{foo:"bar"}
29
null::{foo:string}
30
[1,2,3]
31
32
33
output: |
34
"1"
@@ -55,3 +56,4 @@ output: |
55
56
"{foo:\"bar\"}"
57
null::string
58
"[1,2,3]"
59
0 commit comments