vss/commands/build_test.v

16 lines
293 B
Coq
Raw Normal View History

2022-08-14 19:41:06 +09:00
module commands
2022-07-26 02:03:48 +09:00
import os
fn normalise_paths(paths []string) []string {
mut res := paths.map(it.replace(os.path_separator, '/'))
res.sort()
return res
}
2022-08-12 22:25:42 +09:00
fn test_get_html_filename() {
test_path := 'index.md'
2022-08-12 23:18:32 +09:00
html_name := get_html_filename(test_path)
2022-08-12 22:25:42 +09:00
assert html_name == 'index.html'
2022-08-12 23:18:32 +09:00
}