tests: fix failed consts test (it now works properly)

pull/10858/head
Delyan Angelov 2021-07-19 01:18:39 +03:00
parent 241a7b760d
commit 8ea576783b
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,6 @@
pub const ( pub const (
a = b a = b
c = a + b ccc = a + b
b = 1 b = 1
d = (e / 2) + 7 d = (e / 2) + 7
e = 9 e = 9
@ -9,9 +9,13 @@ pub const (
pub const x = 10 pub const x = 10
fn test_const() { fn test_const() {
assert a == 1
assert d == 11 assert d == 11
assert c == 1 //
assert b == 1
assert a == 1
assert ccc == a + b
assert e == 9
assert d == (e / 2) + 7
} }
// const optional test // const optional test