85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
defaultValue: false] == true)
TEST(@"-[setBool:forKey:]", R([category setBool: false
forKey: @"bool"]))
TEST(@"-[floatForKey:defaultValue:]",
[category floatForKey: @"float"
defaultValue: 1] == 0.5)
TEST(@"-[setFloat:forKey:]", R([category setFloat: 0.25
forKey: @"float"]))
TEST(@"-[doubleForKey:defaultValue:]",
[category doubleForKey: @"double"
defaultValue: 3] == 0.25)
TEST(@"-[setDouble:forKey:]", R([category setDouble: 0.75
|
|
|
|
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
defaultValue: false] == true)
TEST(@"-[setBool:forKey:]", R([category setBool: false
forKey: @"bool"]))
TEST(@"-[floatForKey:defaultValue:]",
[category floatForKey: @"float"
defaultValue: 1] == 0.5f)
TEST(@"-[setFloat:forKey:]", R([category setFloat: 0.25f
forKey: @"float"]))
TEST(@"-[doubleForKey:defaultValue:]",
[category doubleForKey: @"double"
defaultValue: 3] == 0.25)
TEST(@"-[setDouble:forKey:]", R([category setDouble: 0.75
|