Skip to content

Commit

Permalink
Merge pull request #154 from LucyLikeMilk/master
Browse files Browse the repository at this point in the history
Fix some typos in plunit.c and plvdate.c.
  • Loading branch information
okbob authored Nov 19, 2021
2 parents 654d915 + cc4e09a commit e9ab8a3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
14 changes: 7 additions & 7 deletions plunit.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static char *assert_get_message(FunctionCallInfo fcinfo, int nargs, char *defaul
* Syntax:
* PROCEDURE assert_true(condition boolean, message varchar default '');
*
* Purpouse:
* Purpose:
* Asserts that the condition is true. The optional message will be
* displayed if the assertion fails. If not supplied, a default message
* is displayed.
Expand Down Expand Up @@ -79,7 +79,7 @@ plunit_assert_true_message(PG_FUNCTION_ARGS)
* Syntax:
* PROCEDURE assert_false(condition boolean, message varchar default '');
*
* Purpouse:
* Purpose:
* Asserts that the condition is false. The optional message will be
* displayed if the assertion fails. If not supplied, a default message
* is displayed.
Expand Down Expand Up @@ -113,7 +113,7 @@ plunit_assert_false_message(PG_FUNCTION_ARGS)
* Syntax:
* PROCEDURE assert_null(actual anyelement, message varchar default '');
*
* Purpouse:
* Purpose:
* Asserts that the actual is null. The optional message will be
* displayed if the assertion fails. If not supplied, a default message
* is displayed.
Expand Down Expand Up @@ -146,7 +146,7 @@ plunit_assert_null_message(PG_FUNCTION_ARGS)
* Syntax:
* PROCEDURE assert_not_null(actual anyelement, message varchar default '');
*
* Purpouse:
* Purpose:
* Asserts that the actual isn't null. The optional message will be
* displayed if the assertion fails. If not supplied, a default message
* is displayed.
Expand Down Expand Up @@ -185,7 +185,7 @@ plunit_assert_not_null_message(PG_FUNCTION_ARGS)
* PROCEDURE assert_equals(expected double precision, actual double precision,
* range double precision, message varchar default '');
*
* Purpouse:
* Purpose:
* Asserts that expected and actual are equal. The optional message will be
* displayed if the assertion fails. If not supplied, a default
* message is displayed.
Expand Down Expand Up @@ -338,7 +338,7 @@ plunit_assert_equals_range_message(PG_FUNCTION_ARGS)
* PROCEDURE assert_not_equals(expected double precision, expected double precision,
* range double precision, message varchar default '');
*
* Purpouse:
* Purpose:
* Asserts that expected and actual are equal. The optional message will be
* displayed if the assertion fails. If not supplied, a default
* message is displayed.
Expand Down Expand Up @@ -408,7 +408,7 @@ plunit_assert_not_equals_range_message(PG_FUNCTION_ARGS)
* Syntax:
* PROCEDURE fail(message varchar default '');
*
* Purpouse:
* Purpose:
* Fail can be used to cause a test procedure to fail
* immediately using the supplied message.
*
Expand Down
42 changes: 21 additions & 21 deletions plvdate.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ ora_diff_bizdays(DateADT day1, DateADT day2)
* Syntax:
* FUNCTION add_bizdays(IN dt DATE, IN days int) RETURNS DATE;
*
* Purpouse:
* Purpose:
* Get the date created by adding <n> business days to a date
*
****************************************************************/
Expand All @@ -375,7 +375,7 @@ plvdate_add_bizdays (PG_FUNCTION_ARGS)
* Syntax:
* FUNCTION nearest_bizday(IN dt DATE) RETURNS DATE;
*
* Purpouse:
* Purpose:
* Get the nearest business date to a given date, user defined
*
****************************************************************/
Expand Down Expand Up @@ -404,7 +404,7 @@ plvdate_nearest_bizday (PG_FUNCTION_ARGS)
* Syntax:
* FUNCTION next_bizday(IN dt DATE) RETURNS DATE;
*
* Purpouse:
* Purpose:
* Get the next business date from a given date, user defined
*
****************************************************************/
Expand All @@ -425,7 +425,7 @@ plvdate_next_bizday (PG_FUNCTION_ARGS)
* FUNCTION bizdays_between(IN dt1 DATE, IN dt2 DATE)
* RETURNS int;
*
* Purpouse:
* Purpose:
* Get the number of business days between two dates
*
****************************************************************/
Expand All @@ -446,7 +446,7 @@ plvdate_bizdays_between (PG_FUNCTION_ARGS)
* Syntax:
* FUNCTION prev_bizday(IN dt DATE) RETURNS date;
*
* Purpouse:
* Purpose:
* Get the previous business date from a given date, user
* defined
*
Expand All @@ -467,7 +467,7 @@ plvdate_prev_bizday (PG_FUNCTION_ARGS)
* Syntax:
* FUNCTION isbizday(IN dt DATE) RETURNS bool;
*
* Purpouse:
* Purpose:
* Call this function to determine if a date is a business day
*
****************************************************************/
Expand Down Expand Up @@ -503,7 +503,7 @@ plvdate_isbizday (PG_FUNCTION_ARGS)
* Syntax:
* FUNCTION set_nonbizday(IN dow VARCHAR) RETURNS void;
*
* Purpouse:
* Purpose:
* Set day of week as non bussines day
*
****************************************************************/
Expand Down Expand Up @@ -537,7 +537,7 @@ plvdate_set_nonbizday_dow (PG_FUNCTION_ARGS)
* Syntax:
* FUNCTION unset_nonbizday(IN dow VARCHAR) RETURNS void;
*
* Purpouse:
* Purpose:
* Unset day of week as non bussines day
*
****************************************************************/
Expand All @@ -562,7 +562,7 @@ plvdate_unset_nonbizday_dow (PG_FUNCTION_ARGS)
* FUNCTION set_nonbizday(IN day DATE) RETURNS void;
* FUNCTION set_nonbizday(IN day DATE, IN repeat := false BOOL) RETURNS void;
*
* Purpouse:
* Purpose:
* Set day as non bussines day, second arg specify year's
* periodicity
*
Expand Down Expand Up @@ -629,7 +629,7 @@ plvdate_set_nonbizday_day (PG_FUNCTION_ARGS)
* FUNCTION unset_nonbizday(IN day DATE) RETURNS void;
* FUNCTION unset_nonbizday(IN day DATE, IN repeat := false BOOL) RETURNS void;
*
* Purpouse:
* Purpose:
* Unset day as non bussines day, second arg specify year's
* periodicity
*
Expand Down Expand Up @@ -688,7 +688,7 @@ plvdate_unset_nonbizday_day (PG_FUNCTION_ARGS)
* FUNCTION use_easter() RETURNS void;
* FUNCTION use_easter(IN bool) RETURNS void
*
* Purpouse:
* Purpose:
* Have to use easter as nonbizday?
*
****************************************************************/
Expand All @@ -708,7 +708,7 @@ plvdate_use_easter (PG_FUNCTION_ARGS)
* Syntax:
* FUNCTION using_easter() RETURNS bool
*
* Purpouse:
* Purpose:
* Use it easter as nonbizday?
*
****************************************************************/
Expand All @@ -728,7 +728,7 @@ plvdate_using_easter (PG_FUNCTION_ARGS)
* FUNCTION use_great_friday() RETURNS void;
* FUNCTION use_great_friday(IN bool) RETURNS void
*
* Purpouse:
* Purpose:
* Have to use great_friday as nonbizday?
*
****************************************************************/
Expand All @@ -748,7 +748,7 @@ plvdate_use_great_friday (PG_FUNCTION_ARGS)
* Syntax:
* FUNCTION using_great_friday() RETURNS bool
*
* Purpouse:
* Purpose:
* Use it great friday as nonbizday?
*
****************************************************************/
Expand All @@ -768,7 +768,7 @@ plvdate_using_great_friday (PG_FUNCTION_ARGS)
* FUNCTION noinclude_start() RETURNS void;
* FUNCTION include_start(IN bool) RETURNS void
*
* Purpouse:
* Purpose:
* Have to include current day in bizdays_between calculation?
*
****************************************************************/
Expand All @@ -788,7 +788,7 @@ plvdate_include_start (PG_FUNCTION_ARGS)
* Syntax:
* FUNCTION including_start() RETURNS bool
*
* Purpouse:
* Purpose:
* include current day in bizdays_between calculation?
*
****************************************************************/
Expand Down Expand Up @@ -841,7 +841,7 @@ plvdate_version (PG_FUNCTION_ARGS)
* Syntax:
* FUNCTION days_inmonth(date) RETURNS integer
*
* Purpouse:
* Purpose:
* Returns month's length
*
****************************************************************/
Expand All @@ -867,7 +867,7 @@ plvdate_days_inmonth(PG_FUNCTION_ARGS)
* Syntax:
* FUNCTION isleapyear() RETURNS bool
*
* Purpouse:
* Purpose:
* Returns true, if year is leap
*
****************************************************************/
Expand All @@ -891,7 +891,7 @@ plvdate_isleapyear(PG_FUNCTION_ARGS)
* Syntax:
* FUNCTION set_nonbizdays(IN dow bool[7]) RETURNS void;
*
* Purpouse:
* Purpose:
* Set pattern bussines/nonbussines days in week
*
****************************************************************/
Expand All @@ -903,7 +903,7 @@ plvdate_isleapyear(PG_FUNCTION_ARGS)
* FUNCTION set_nonbizdays(IN days DATE[]) RETURNS void;
* FUNCTION set_nonbizdays(IN days DATE[], IN repeat := false BOOL) RETURNS void;
*
* Purpouse:
* Purpose:
* Set days as non bussines day, second arg specify year's
* periodicity
*
Expand All @@ -915,7 +915,7 @@ plvdate_isleapyear(PG_FUNCTION_ARGS)
* Syntax:
* FUNCTION display() RETURNS void;
*
* Purpouse:
* Purpose:
* Show current calendar
*
****************************************************************/

0 comments on commit e9ab8a3

Please sign in to comment.