| 1 | import os |
| 2 | |
| 3 | const shdc_exe_name = 'sokol-shdc.exe' |
| 4 | const tool_name = os.file_name(os.executable()) |
| 5 | const cache_dir = os.join_path(os.cache_dir(), 'v', tool_name) |
| 6 | const shdc = shdc_exe() |
| 7 | |
| 8 | fn 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 | |
| 16 | fn shdc_exe() string { |
| 17 | return os.join_path(cache_dir, shdc_exe_name) |
| 18 | } |
| 19 |