vss/commands/build_test.v
2022-08-14 19:41:06 +09:00

15 lines
293 B
V

module commands
import os
fn normalise_paths(paths []string) []string {
mut res := paths.map(it.replace(os.path_separator, '/'))
res.sort()
return res
}
fn test_get_html_filename() {
test_path := 'index.md'
html_name := get_html_filename(test_path)
assert html_name == 'index.html'
}