v/vlib/v/tests/alias_custom_type_map_test.v

9 lines
181 B
V

import geometry
fn test_aliases_map_init() {
a := geometry.ShapeMap({
geometry.Shape.circle: 'Shape is a circle.'
})
assert a[geometry.Shape.circle] == 'Shape is a circle.'
}