Skip to content

Commit

Permalink
Fix \set variable string values.
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Jul 16, 2010
1 parent 0fed146 commit 572687c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Revision history for pgTAP
Richard Huxton for the report.
* Fixed `is_superuser()` and `isnt_superuser()` so that they properly detect
superuser roles as well as users.
* Fixed examples of single-quoted string values stored in `psql` variables in
`README.pgtap`.

0.24 2010-05-24T23:33:22
-------------------------
Expand Down
6 changes: 3 additions & 3 deletions README.pgtap
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ So why use these test functions? They produce better diagnostics on failure.
`is()` and `isnt()` know what the test was and why it failed. For example this
test:

\set foo '\'' waffle '\''
\set bar '\'' yarblokos '\''
\set foo '\'waffle\''
\set bar '\'yarblokos\''
SELECT is( :foo::text, :bar::text, 'Is foo the same as bar?' );

Will produce something like this:
Expand Down Expand Up @@ -3706,7 +3706,7 @@ because you haven't fixed a bug or haven't finished a new feature:

SELECT todo('URIGeller not finished', 2);

\set card '\'' Eight of clubs '\''
\set card '\'Eight of clubs\''
SELECT is( URIGeller.yourCard(), :card, 'Is THIS your card?' );
SELECT is( URIGeller.bendSpoon(), 'bent', 'Spoon bending, how original' );

Expand Down

0 comments on commit 572687c

Please sign in to comment.