mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
add tests for string constants in BS files
This commit is contained in:
@@ -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
|
||||
|
||||
3
test/test/vendor/code/code.h
vendored
3
test/test/vendor/code/code.h
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user