0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-11 22:59:41 -04:00
deno/tools/util_test.py

24 lines
756 B
Python
Raw Normal View History

# Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import os
from test_util import DenoTestCase, run_tests
2020-11-04 22:09:06 +01:00
from util import (shell_quote_win, root_path)
class TestUtil(DenoTestCase):
def test_shell_quote_win(self):
assert shell_quote_win('simple') == 'simple'
assert shell_quote_win(
'roof/\\isoprojection') == 'roof/\\isoprojection'
assert shell_quote_win('with space') == '"with space"'
assert shell_quote_win('embedded"quote') == '"embedded""quote"'
assert shell_quote_win(
'a"b""c\\d\\"e\\\\') == '"a""b""""c\\d\\\\""e\\\\\\\\"'
2020-05-06 16:34:48 -04:00
def test_executable_exists(self):
assert os.path.exists(self.deno_exe)
2018-10-15 16:44:35 -04:00
2018-08-19 03:00:34 -04:00
if __name__ == '__main__':
run_tests()