Add Bash.quote() test

This commit is contained in:
Jano Svitok 2018-07-04 15:38:01 +02:00
parent aef604459b
commit 9d201a6c83

View File

@ -0,0 +1,14 @@
package se.vidstige.jadb.managers;
import org.junit.Test;
import static org.junit.Assert.*;
public class BashTest {
@Test
public void quote() {
// http://wiki.bash-hackers.org/syntax/quoting#strong_quoting
assertEquals("'-t '\\''aaa'\\'''", Bash.quote("-t 'aaa'"));
}
}