mirror of
https://github.com/revanced/jadb.git
synced 2024-06-02 11:26:12 +02:00
Add Bash.quote() test
This commit is contained in:
parent
aef604459b
commit
9d201a6c83
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…
Reference in New Issue
Block a user