mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Implement Expr.String.
This commit is contained in:
1 parent
d92049b8fa
commit
1dd51ac30f
4 files changed
+156
-3
No files matched your search
@@ -16,11 +16,36 @@ func TestString(t *testing.T) {
|
||||
"1",
|
||||
"x",
|
||||
|
||||
"f()",
|
||||
"f(i)",
|
||||
"f(i, j)",
|
||||
"f(i, j) + 1",
|
||||
"f(i, j)(k)",
|
||||
"f(i, j)(k, l, m + 2) + 3",
|
||||
|
||||
"x[i]",
|
||||
"x[i][j]",
|
||||
"x[i:j]",
|
||||
"x[i](j)",
|
||||
"x(i)[j]",
|
||||
|
||||
"x.y",
|
||||
"x.y.z.a",
|
||||
|
||||
"+x",
|
||||
"-(x + y)",
|
||||
"not x",
|
||||
"not not x",
|
||||
"+++-x",
|
||||
|
||||
"x + 42",
|
||||
"x and (y < z)",
|
||||
"x & (y as u8)",
|
||||
"x * ((a / b) - (i / j))",
|
||||
|
||||
"x + y + z",
|
||||
"x + (i * j.k[l] * (-m << 4) * (n & o(p, q[:r.s + 5]))) + z",
|
||||
|
||||
"x as bool",
|
||||
"x as u32",
|
||||
"x as T",
|
||||
|
||||
Reference in new issue
Block a user