Skip to content

Commit b53d2dc

Browse files
committed
1 parent e4dd7b3 commit b53d2dc

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* (c) Copyright 2024 IBM Corporation
3+
* 1 New Orchard Road,
4+
* Armonk, New York, 10504-1722
5+
* United States
6+
* +1 914 499 1900
7+
* support: Nathaniel Mills wnm3@us.ibm.com
8+
*
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
*
21+
*/
22+
23+
// Thanks to @uw4 for fixing the bug that this tests in #310/#311
24+
package com.api.jsonata4java.expressions.functions;
25+
26+
import static com.api.jsonata4java.expressions.utils.Utils.test;
27+
import org.junit.Test;
28+
29+
public class DateTimeFunctionTest {
30+
@Test
31+
public void testFormatInteger() throws Exception {
32+
test("$toMillis('2018th', '[Y0001;o]')", "1514764800000", null, (String)null );
33+
}
34+
}

0 commit comments

Comments
 (0)