File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
commons-codeassist/src/test/java/io/onedev/commons/codeassist
commons-utils/src/test/java/io/onedev/commons/utils Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public void test() {
115
115
assertEquals (1 , suggestions .size ());
116
116
assertEquals ("tag(:4" , suggestions .get (0 ).toString ());
117
117
118
- suggestions = codeAssist .suggest (new InputStatus ("branch(master)t " ), "query" );
118
+ suggestions = codeAssist .suggest (new InputStatus ("branch(master)ta " ), "query" );
119
119
assertEquals (1 , suggestions .size ());
120
120
assertEquals ("branch(master)tag(:18" , suggestions .get (0 ).toString ());
121
121
}
Original file line number Diff line number Diff line change 5
5
6
6
import io .onedev .commons .utils .LinearRange ;
7
7
8
- public class RangeTest {
8
+ public class LinearRangeTest {
9
9
10
10
@ Test
11
11
public void test () {
12
- LinearRange range = LinearRange .match ("hello world" , "hellowo " );
12
+ LinearRange range = LinearRange .match ("hello world" , "hello wo " );
13
13
Assert .assertEquals (0 , range .getFrom ());
14
14
Assert .assertEquals (8 , range .getTo ());
15
15
16
- range = LinearRange .match (" hello world" , "hellowo " );
16
+ range = LinearRange .match (" hello world" , "hello wo " );
17
17
Assert .assertEquals (1 , range .getFrom ());
18
18
Assert .assertEquals (9 , range .getTo ());
19
19
20
20
range = LinearRange .match (" hello world" , "ellowo" );
21
21
Assert .assertEquals (null , range );
22
22
23
- range = LinearRange .match (" hello world" , "ellowo " );
23
+ range = LinearRange .match (" hello world" , "ello wo " );
24
24
Assert .assertEquals (2 , range .getFrom ());
25
25
Assert .assertEquals (9 , range .getTo ());
26
26
}
You can’t perform that action at this time.
0 commit comments