Skip to content

Commit 7b2b420

Browse files
committed
license
1 parent b60b1ea commit 7b2b420

File tree

1 file changed

+35
-17
lines changed

1 file changed

+35
-17
lines changed
Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
package org.apache.sysds.test.component.utils;
221

322
import static org.junit.Assert.assertEquals;
@@ -6,39 +25,38 @@
625
import org.junit.Test;
726

827
public class IOUtilsTest {
9-
1028

11-
@Test
12-
public void getTo(){
29+
@Test
30+
public void getTo() {
1331
String in = ",\"yyy\"·4,";
1432
assertEquals(0, getTo(in, 0, ","));
1533
assertEquals(8, getTo(in, 1, ","));
1634
assertEquals("\"yyy\"·4", in.substring(1, getTo(in, 1, ",")));
1735
}
1836

19-
@Test
20-
public void getTo2(){
37+
@Test
38+
public void getTo2() {
2139
String in = ",y,";
22-
assertEquals(0,getTo(in, 0, ","));
23-
assertEquals(2,getTo(in, 1, ","));
40+
assertEquals(0, getTo(in, 0, ","));
41+
assertEquals(2, getTo(in, 1, ","));
2442
}
2543

26-
@Test
27-
public void getTo3(){
44+
@Test
45+
public void getTo3() {
2846
String in = "a,b,c";
29-
assertEquals("a",in.substring(0,getTo(in, 0, ",")));
30-
assertEquals("b",in.substring(2,getTo(in, 2, ",")));
31-
assertEquals("c",in.substring(4,getTo(in, 4, ",")));
47+
assertEquals("a", in.substring(0, getTo(in, 0, ",")));
48+
assertEquals("b", in.substring(2, getTo(in, 2, ",")));
49+
assertEquals("c", in.substring(4, getTo(in, 4, ",")));
3250
}
3351

34-
@Test
35-
public void getTo4(){
52+
@Test
53+
public void getTo4() {
3654
String in = "a,\",\",c";
37-
assertEquals("a",in.substring(0,getTo(in, 0, ",")));
38-
assertEquals("\",\"",in.substring(2,getTo(in, 2, ",")));
55+
assertEquals("a", in.substring(0, getTo(in, 0, ",")));
56+
assertEquals("\",\"", in.substring(2, getTo(in, 2, ",")));
3957
}
4058

41-
private int getTo(String in, int from, String delim){
59+
private int getTo(String in, int from, String delim) {
4260
return IOUtilFunctions.getTo(in, from, ",", in.length(), 1);
4361
}
4462
}

0 commit comments

Comments
 (0)