added test for BOOL (should be same as char normally)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39641 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-04-07 06:21:50 +00:00
parent c0282c4073
commit 3e081a3670

View file

@ -154,6 +154,7 @@ TEST_DECL(unsigned short, ushort);
#define VAL_TEST(testx, testy) EQ(testx,testy)
TEST_DECL(float, float);
TEST_DECL(double, double);
TEST_DECL(BOOL, BOOL);
int main()
{
@ -184,6 +185,8 @@ int main()
float f2;
double d = 1.7976931348623157e+308;
double d2;
BOOL b = YES;
BOOL b2;
fm = [NSFileManager defaultManager];
@ -223,6 +226,9 @@ int main()
testWriteBasicType_ushort("ushort", &us);
testReadBasicType_ushort("ushort", &us, &us2);
testWriteBasicType_double("BOOL", &b);
testReadBasicType_double("BOOL", &b, &b2);
obj1 = [Model new];
[obj1 setValues];
data = [NSArchiver archivedDataWithRootObject: obj1];