Created
April 27, 2012 17:57
-
-
Save jweyrich/2511325 to your computer and use it in GitHub Desktop.
Test case for https://github.com/jweyrich/Catch/commit/11dca663
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
#define CATCH_CONFIG_MAIN | |
#include "catch.hpp" | |
TEST_CASE( "compare/long_to_unsigned_x", "Should compile fine." ) | |
{ | |
long long_var = 1L; | |
unsigned char unsigned_char_var = 1; | |
unsigned short unsigned_short_var = 1; | |
unsigned int unsigned_int_var = 1; | |
unsigned long unsigned_long_var = 1L; | |
REQUIRE( long_var == unsigned_char_var ); | |
REQUIRE( long_var == unsigned_short_var ); | |
REQUIRE( long_var == unsigned_int_var ); | |
REQUIRE( long_var == unsigned_long_var ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment