Skip to content

Commit a0f2ccb

Browse files
LiBrian415jaystarshot
authored andcommitted
re-add deleted subtraction test
1 parent d4417e4 commit a0f2ccb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

presto-main/src/test/java/com/facebook/presto/type/TestIntervalDayTime.java

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public void testSubtract()
117117
{
118118
assertFunction("INTERVAL '6' SECOND - INTERVAL '3' SECOND", INTERVAL_DAY_TIME, new SqlIntervalDayTime(3 * 1000));
119119
assertFunction("INTERVAL '9' DAY - INTERVAL '6' DAY", INTERVAL_DAY_TIME, new SqlIntervalDayTime(3 * 24 * 60 * 60 * 1000));
120+
assertFunction("INTERVAL '3' SECOND - INTERVAL '6' DAY", INTERVAL_DAY_TIME, new SqlIntervalDayTime((3 * 1000) - (6 * 24 * 60 * 60 * 1000)));
120121
}
121122

122123
@Test

0 commit comments

Comments
 (0)