| 1 | // vtest vflags: -autofree |
| 2 | import toml |
| 3 | import os |
| 4 | |
| 5 | config_fname := os.join_path(os.vtmp_dir(), 'config.toml') |
| 6 | tab_title := 'test tab title' |
| 7 | os.write_file(config_fname, 'tab_title = "${tab_title}"')! |
| 8 | doc := toml.parse_file(config_fname)! |
| 9 | assert doc.value('tab_title').string() == tab_title |
| 10 | |