mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
c0282c4073
commit
3e081a3670
1 changed files with 6 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue