Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69d5121

Browse files
committed
fixed one of failing tests. Updated timestamp tests.
1 parent 0b992df commit 69d5121

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/asssertions/ut.expect.to_equal.GivesSuccessForEqualValues.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ PROMPT Gives a success when comparing equal number values
1414
@@asssertions/common/ut.expect.to_equal.scalar.common.sql 'number' '12345' '12345' 'ut_utils.tr_success'
1515

1616
PROMPT Gives a success when comparing equal timestamp values
17-
@@asssertions/common/ut.expect.to_equal.scalar.common.sql 'timestamp' 'to_timestamp(sysdate)' 'to_timestamp(sysdate)' 'ut_utils.tr_success'
17+
@@asssertions/common/ut.expect.to_equal.scalar.common.sql 'timestamp(9)' 'to_Timestamp(''2016-09-06 22:36:11.123456789'',''yyyy-mm-dd hh24:mi:ss.ff'')' 'to_Timestamp(''2016-09-06 22:36:11.123456789'',''yyyy-mm-dd hh24:mi:ss.ff'')' 'ut_utils.tr_success'
1818

1919
PROMPT Gives a success when comparing equal timestamp with local time zone values
20-
@@asssertions/common/ut.expect.to_equal.scalar.common.sql 'timestamp with local time zone' 'to_timestamp(sysdate)' 'to_timestamp(sysdate)' 'ut_utils.tr_success'
20+
@@asssertions/common/ut.expect.to_equal.scalar.common.sql 'timestamp(9) with local time zone' 'to_Timestamp(''2016-09-06 22:36:11.123456789'',''yyyy-mm-dd hh24:mi:ss.ff'')' 'to_Timestamp(''2016-09-06 22:36:11.123456789'',''yyyy-mm-dd hh24:mi:ss.ff'')' 'ut_utils.tr_success'
2121

2222
PROMPT Gives a success when comparing equal timestamp with time zone values
23-
@@asssertions/common/ut.expect.to_equal.scalar.common.sql 'timestamp with time zone' 'to_timestamp(sysdate)' 'to_timestamp(sysdate)' 'ut_utils.tr_success'
23+
@@asssertions/common/ut.expect.to_equal.scalar.common.sql 'timestamp(9) with time zone' 'to_Timestamp(''2016-09-06 22:36:11.123456789'',''yyyy-mm-dd hh24:mi:ss.ff'')' 'to_Timestamp(''2016-09-06 22:36:11.123456789'',''yyyy-mm-dd hh24:mi:ss.ff'')' 'ut_utils.tr_success'
2424

2525
PROMPT Gives a success when comparing equal varchar2 values
2626
@@asssertions/common/ut.expect.to_equal.scalar.common.sql 'varchar2(4000)' '''Abc''' '''Abc''' 'ut_utils.tr_success'

tests/ut_assert/ut_assert.are_equal.anydata.PutsObjectStrucureIntoAssert.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ create or replace type department$ as object(
77

88
declare
99
l_expected department$ := department$('HR');
10-
l_actual department$ := department$('IT');
10+
l_actual department$ := department$('it');
1111
l_result integer;
1212
l_assert_result ut_assert_result;
1313
begin

0 commit comments

Comments
 (0)