mirror of
https://github.com/revanced/jadb.git
synced 2025-05-28 04:20:17 +02:00
Merge pull request #90 from janosvitok/add-Bash-quote-test
Add Bash.quote() test
This commit is contained in:
commit
3b5d74e82e
14
test/se/vidstige/jadb/managers/BashTest.java
Normal file
14
test/se/vidstige/jadb/managers/BashTest.java
Normal 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'"));
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user