Merge pull request #90 from janosvitok/add-Bash-quote-test

Add Bash.quote() test
This commit is contained in:
Samuel Carlsson 2018-07-31 08:50:43 +02:00 committed by GitHub
commit 3b5d74e82e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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'"));
}
}