v2 / vlib / v / tests / consts / const_resolution_test.v
11 lines · 9 sloc · 356 bytes · bbb61ab3687afe512a1fa12492c876d011626107
Raw
1// vtest build: !musl? // gx now transitively imports sokol, and that needs GL/gl.h, which is not installed on the musl CIs
2import gg
3
4const left = gg.HorizontalAlign.left
5
6fn test_main() {
7 align := left
8 assert dump(align.str()) == 'left'
9 assert dump(gg.HorizontalAlign.left) == gg.HorizontalAlign.left
10 assert gg.HorizontalAlign.left.str() == 'left'
11}
12