blob: 9143e45d7dc35d2731ef2ebbf77808e981620e42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package joptsimple.examples;
import joptsimple.OptionParser;
import joptsimple.OptionSet;
import org.junit.Test;
import static org.junit.Assert.*;
public class ShortOptionsClusteringTest {
@Test
public void allowsClusteringShortOptions() {
OptionParser parser = new OptionParser( "aBcd" );
OptionSet options = parser.parse( "-cdBa" );
assertTrue( options.has( "a" ) );
assertTrue( options.has( "B" ) );
assertTrue( options.has( "c" ) );
assertTrue( options.has( "d" ) );
}
}
|