init
This commit is contained in:
9
shell_test.v
Normal file
9
shell_test.v
Normal file
@@ -0,0 +1,9 @@
|
||||
import shell
|
||||
|
||||
fn test_quote() {
|
||||
assert shell.quote("janna d'arc") == '\'janna d\'"\'"\'arc\''
|
||||
}
|
||||
|
||||
fn test_join() {
|
||||
assert shell.join(['sh', '-c', 'hostname -f']) == "sh -c 'hostname -f'"
|
||||
}
|
Reference in New Issue
Block a user