We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1334f3d commit 2efda6eCopy full SHA for 2efda6e
tests/op_in.lgx
@@ -0,0 +1,39 @@
1
+#set:string:"Hello World"
2
+#set:numbers:(1,2,3, 53.2)
3
+#set:strings:("a","b","c")
4
+
5
+# --- Test with just str
6
7
+"World" in string
8
+#expect:True
9
10
+"Earth" in string
11
+#expect:False
12
13
+"Earth" not in string
14
15
16
+# --- Test with list of numbers
17
18
+3 in numbers
19
20
21
+4 in numbers
22
23
24
+4 not in numbers
25
26
27
+"a" in numbers
28
29
30
+# --- Test with list of str
31
32
+"a" in strings
33
34
35
+"aa" in strings
36
37
38
+"x" not in strings
39
0 commit comments