Skip to content

Instantly share code, notes, and snippets.

@jrf0110
Created January 5, 2015 17:56
Show Gist options
  • Save jrf0110/b5453c70aba94cdf42b9 to your computer and use it in GitHub Desktop.
Save jrf0110/b5453c70aba94cdf42b9 to your computer and use it in GitHub Desktop.
perform test_case('Should format string as URL friendly');
perform assert_equals(
select str_to_slug( E'John\'s Burger Joint' )
, 'johns-burger-joint'
);
perform end_test();
perform test_case('Should do something else');
perform assert_equals( 'bob', 'bob' );
perform end_test();
perform test_case('Should do another thing');
perform assert_gt( 5, 7 );
perform assert_lt( 5, 7 );
perform end_test();
+--------------------------------------+--------+
| Test | Result |
+--------------------------------------+--------+
| Should format string as URL friendly | Passed |
+--------------------------------------+--------+
| Should do something else | Passed |
+--------------------------------------+--------+
| Should do another thing | Failed |
+--------------------------------------+--------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment