mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
Check "b = not true".
This commit is contained in:
1 parent
5d51c6c42c
commit
0e59b05432
4 files changed
+56
-18
No files matched your search
@@ -21,9 +21,11 @@ func TestCheck(t *testing.T) {
|
||||
var y i32 = 2
|
||||
var z u64[:123]
|
||||
var a [4]u8
|
||||
var b bool
|
||||
|
||||
x = 0
|
||||
y = -y
|
||||
b = not true
|
||||
|
||||
y = x as i32
|
||||
}
|
||||
@@ -73,6 +75,7 @@ func TestCheck(t *testing.T) {
|
||||
|
||||
want := [][2]string{
|
||||
{"a", "[4] u8"},
|
||||
{"b", "bool"},
|
||||
{"x", "u8"},
|
||||
{"y", "i32"},
|
||||
{"z", "u64[:123]"},
|
||||
|
||||
Reference in new issue
Block a user