Skip to content

Instantly share code, notes, and snippets.

@jweyrich
Created April 27, 2012 17:57
Show Gist options
  • Save jweyrich/2511325 to your computer and use it in GitHub Desktop.
Save jweyrich/2511325 to your computer and use it in GitHub Desktop.
#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