v2 / vlib / v / tests / options / option_array_compare_test.v
5 lines · 5 sloc · 75 bytes · 511a64424f2e787dbddacf4235d0492b8ce55e87
Raw
1fn test_main() {
2 mut a := []?int{}
3 a << none
4 assert a == [?int(none)]
5}
6