Created
January 5, 2015 17:56
-
-
Save jrf0110/b5453c70aba94cdf42b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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