add tests for string constants in BS files

This commit is contained in:
Laurent Sansonetti
2013-03-02 19:23:16 +01:00
parent 830e78db17
commit e25526d3bf
2 changed files with 15 additions and 0 deletions

View File

@@ -16,3 +16,15 @@ describe "Constants starting with a lower-case character" do
LowerCaseConstant.should == 42
end
end
describe "#define foo @\"value\" constants (NSString)" do
it "can be retrieved" do
TestNSStringConstant.should == 'foo'
end
end
describe "#define foo \"value\" constants (C string)" do
it "can be retrieved" do
TestStringConstant.should == 'foo'
end
end

View File

@@ -58,3 +58,6 @@ static inline int TestInlineFunction(int x, int y, int z) {
extern int lowerCaseConstant;
@interface lowerCaseClass : NSObject
@end
#define TestStringConstant "foo"
#define TestNSStringConstant @"foo"