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

Skip to content

Commit 7c945c0

Browse files
committed
public synonym
removed nulls_are_equal from examples
1 parent 4a0a7d9 commit 7c945c0

2 files changed

Lines changed: 47 additions & 14 deletions

File tree

client_source/grant_public.sql

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
Create all necessary grant for the user who owns test packages and want to execute utPLSQL framework
3+
*/
4+
5+
prompt Granting user
6+
set echo off
7+
set feedback off
8+
set heading off
9+
set verify off
10+
11+
define ut3_owner = &1
12+
13+
grant execute on &ut3_owner .ut_be_between to public;
14+
grant execute on &ut3_owner .ut_be_false to public;
15+
grant execute on &ut3_owner .ut_be_greater_or_equal to public;
16+
grant execute on &ut3_owner .ut_be_greater_than to public;
17+
grant execute on &ut3_owner .ut_be_less_or_equal to public;
18+
grant execute on &ut3_owner .ut_be_less_than to public;
19+
grant execute on &ut3_owner .ut_be_like to public;
20+
grant execute on &ut3_owner .ut_be_not_null to public;
21+
grant execute on &ut3_owner .ut_be_null to public;
22+
grant execute on &ut3_owner .ut_be_true to public;
23+
grant execute on &ut3_owner .ut_equal to public;
24+
grant execute on &ut3_owner .ut_match to public;
25+
grant execute on &ut3_owner .ut to public;
26+
grant execute on &ut3_owner .ut_runner to public;
27+
grant execute on &ut3_owner .ut_teamcity_reporter to public;
28+
grant execute on &ut3_owner .ut_documentation_reporter to public;
29+
grant execute on &ut3_owner .ut_reporters to public;
30+
31+
create or replace public synonym be_between for &ut3_owner .ut_be_between;
32+
create or replace public synonym be_false for &ut3_owner .ut_be_false;
33+
create or replace public synonym be_greater_or_equal for &ut3_owner .ut_be_greater_or_equal;
34+
create or replace public synonym be_greater_than for &ut3_owner .ut_be_greater_than;
35+
create or replace public synonym be_less_or_equal for &ut3_owner .ut_be_less_or_equal;
36+
create or replace public synonym be_less_than for &ut3_owner .ut_be_less_than;
37+
create or replace public synonym be_like for &ut3_owner .ut_be_like;
38+
create or replace public synonym be_not_null for &ut3_owner .ut_be_not_null;
39+
create or replace public synonym be_null for &ut3_owner .ut_be_null;
40+
create or replace public synonym be_true for &ut3_owner .ut_be_true;
41+
create or replace public synonym equal for &ut3_owner .ut_equal;
42+
create or replace public synonym match for &ut3_owner .ut_match;
43+
create or replace public synonym ut for &ut3_owner .ut;
44+
create or replace public synonym ut_runner for &ut3_owner .ut_runner;
45+
create or replace public synonym ut_teamcity_reporter for &ut3_owner .ut_teamcity_reporter;
46+
create or replace public synonym ut_documentation_reporter for &ut3_owner .ut_documentation_reporter;
47+
create or replace public synonym ut_reporters for &ut3_owner .ut_reporters;

examples/demo_expectations.pck

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,25 +84,11 @@ create or replace package body demo_expectations is
8484
ut.expect( to_char(null), 'this should fail' ).to_( equal( to_char(null) ) );
8585
ut.expect( to_char(null), 'this should fail' ).not_to( equal( to_char(null) ) );
8686

87-
--fails on nulls not beeig equal
88-
ut.nulls_are_equal(false);
89-
ut.expect( to_char(null), 'fails when global null_are_equal=false' ).to_( equal(to_char(null) ) );
90-
ut.nulls_are_equal( true );
91-
ut.expect( to_char(null), 'fails when local null_are_equal=false' ).to_( equal(to_char(null), a_nulls_are_equal => false ) );
92-
93-
--succeeds when nulls are considered equal
94-
ut.nulls_are_equal(false);
95-
ut.expect( to_char(null) , 'succeeds when local null_are_equal=true' ).to_( equal( to_char(null), a_nulls_are_equal => true ) );
96-
ut.nulls_are_equal( true );
97-
ut.expect( to_char(null), 'succeeds when global null_are_equal=true' ).to_( equal( to_char(null) ) );
98-
9987
--fails as null is not comparable with not null
10088
ut.expect( to_char(null), 'fails on null = not null' ).to_( equal( 'a text' ) );
10189
ut.expect( 'a text', 'fails on not null = null' ).to_( equal( to_char(null) ) );
10290
ut.expect( to_char(null), 'fails on null <> not null' ).not_to( equal( 'a text' ) );
10391
ut.expect( 'a text', 'fails on not null <> null' ).not_to( equal( to_char(null) ) );
104-
ut.expect( to_char(null), 'fails on null <> not null, with a_nulls_are_equal => true' ).not_to( equal( 'a text', a_nulls_are_equal => true ) );
105-
ut.expect( 'a text', 'fails on not null <> null, with a_nulls_are_equal => false' ).not_to( equal( to_char(null), a_nulls_are_equal => false ) );
10692

10793
ut.expect( to_char(null), 'fails on null like ''text''' ).to_( be_like( 'a text' ) );
10894
ut.expect( to_char(null), 'fails on null not like ''text''' ).not_to( be_like( 'a text' ) );

0 commit comments

Comments
 (0)