@@ -58,6 +58,48 @@ create or replace type body ut_expectation_compound as
5858 return l_result;
5959 end;
6060
61+ member function to_equal(a_expected sys_refcursor, a_nulls_are_equal boolean := null) return ut_expectation_compound is
62+ l_result ut_expectation_compound := self;
63+ begin
64+ l_result.matcher := ut_equal(a_expected, a_nulls_are_equal);
65+ return l_result;
66+ end;
67+
68+ member function not_to_equal(a_expected sys_refcursor, a_nulls_are_equal boolean := null) return ut_expectation_compound is
69+ l_result ut_expectation_compound := self;
70+ begin
71+ l_result.matcher := ut_equal(a_expected, a_nulls_are_equal).negated();
72+ return l_result;
73+ end;
74+
75+ member function to_contain(a_expected sys_refcursor) return ut_expectation_compound is
76+ l_result ut_expectation_compound := self;
77+ begin
78+ l_result.matcher := ut_contain(a_expected);
79+ return l_result;
80+ end;
81+
82+ member function not_to_contain(a_expected sys_refcursor) return ut_expectation_compound is
83+ l_result ut_expectation_compound := self;
84+ begin
85+ l_result.matcher := ut_contain(a_expected).negated();
86+ return l_result;
87+ end;
88+
89+ member function to_contain(a_expected anydata) return ut_expectation_compound is
90+ l_result ut_expectation_compound := self;
91+ begin
92+ l_result.matcher := ut_contain(a_expected);
93+ return l_result;
94+ end;
95+
96+ member function not_to_contain(a_expected anydata) return ut_expectation_compound is
97+ l_result ut_expectation_compound := self;
98+ begin
99+ l_result.matcher := ut_contain(a_expected).negated();
100+ return l_result;
101+ end;
102+
61103 member function include(a_items varchar2) return ut_expectation_compound is
62104 begin
63105 return include( ut_varchar2_list( a_items ) );
@@ -137,5 +179,28 @@ create or replace type body ut_expectation_compound as
137179 self.to_( treat(matcher as ut_equal).join_by(a_columns) );
138180 end;
139181
182+ member function unordered_columns return ut_expectation_compound is
183+ l_result ut_expectation_compound;
184+ begin
185+ l_result := self;
186+ l_result.matcher := treat(l_result.matcher as ut_equal).unordered_columns;
187+ return l_result;
188+ end;
189+
190+ member procedure unordered_columns(self in ut_expectation_compound) is
191+ begin
192+ self.to_( treat(matcher as ut_equal).unordered_columns );
193+ end;
194+
195+ member function uc return ut_expectation_compound is
196+ begin
197+ return unordered_columns;
198+ end;
199+
200+ member procedure uc(self in ut_expectation_compound) is
201+ begin
202+ unordered_columns;
203+ end;
204+
140205end;
141206/
0 commit comments