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

Skip to content
Merged
Prev Previous commit
Next Next commit
actualized example packages to use ut.expect syntax
  • Loading branch information
Pazus committed Dec 1, 2016
commit 382d67c03e14277886d89b55e6f0c9d8a3341446
4 changes: 2 additions & 2 deletions examples/test_pkg1.pck
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ create or replace package body test_pkg1 is

procedure test1 is
begin
ut.expect(g_val1,'1 equals 1 check').to_equal(1);
ut_assert.are_equal(a_msg => '1 equals 1 check', a_expected => 1, a_actual => g_val1);
end;

procedure test2 is
begin
--ut_assert.are_equal(a_msg => 'null equals null check', a_expected => to_number(null), a_actual => g_val1);
ut_assert.are_equal(a_msg => '2 equals 2 check', a_expected => 2, a_actual => g_val2);
ut.expect(g_val2,'2 equals 2 check').to_equal(2);
end;

procedure global_setup is
Expand Down
4 changes: 2 additions & 2 deletions examples/test_pkg2.pck
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ create or replace package body test_pkg2 is

procedure test1 is
begin
ut_assert.are_equal(a_msg => '1 equals 1 check', a_expected => 1, a_actual => 1);
ut.expect(1,'1 equals 1 check').to_equal(1);
end;

procedure test2 is
begin
ut_assert.are_equal(a_msg => '2 equals 2 check', a_expected => 2, a_actual => 2);
ut.expect(2,'2 equals 2 check').to_equal(2);
end;

end test_pkg2;
Expand Down