v2 / vlib / v / tests / consts / const_call_expr_order_test.v
18 lines · 15 sloc · 428 bytes · 6488041a749df9762348d019c4223908c476f2e2
Raw
1import os
2
3const shdc_exe_name = 'sokol-shdc.exe'
4const tool_name = os.file_name(os.executable())
5const cache_dir = os.join_path(os.cache_dir(), 'v', tool_name)
6const shdc = shdc_exe()
7
8fn test_const_call_expr_order() {
9 dump(cache_dir)
10 dump(shdc)
11 assert shdc.contains(cache_dir)
12 assert shdc.contains(tool_name)
13 assert shdc.ends_with(shdc_exe_name)
14}
15
16fn shdc_exe() string {
17 return os.join_path(cache_dir, shdc_exe_name)
18}
19