builtin, cgen: improve the assert informations (related #22666)#22668
builtin, cgen: improve the assert informations (related #22666)#22668spytheman merged 2 commits intovlang:masterfrom
Conversation
|
Great!!! |
There was a problem hiding this comment.
Excellent work.
Please add a .vv/.out pair too in vlib/v/slow_tests/inout/ (include only the system independent part before the panic in the .out file; see ./vlib/v/slow_tests/inout/panic_on_fixed_array_slice.out for example) and it will be good to merge.
The _test.vv/.run.out pair is better to be placed in vlib/v/tests/skip_unused/, see below.
|
type Sum = int | string
fn test_ab() {
a,b := Sum(1), Sum(2)
assert a == b
}
fn test_sumtype_literals() {
assert Sum(1) == Sum(2)
}can be tested by Can we remove the |
|
I've added the test pair. |
This PR improve the assert informations (related #22666).
Huly®: V_0.6-21117