v2 / vlib / v / fmt / tests / import_with_symbols_keep.vv
14 lines · 12 sloc · 264 bytes · 7bc3e67e2453e23b6896000d0af95ae645ff9996
Raw
1import readline { Readline }
2
3fn no_lines(s string) string {
4 return s.replace('\n', ' ')
5}
6
7fn main() {
8 mut methods := []string{}
9 $for method in Readline.methods {
10 methods << method.name
11 }
12 assert 'read_line_utf8' in methods
13 assert 'read_line' in methods
14}
15