1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        Cedar-BDDObjective-C單元測試框架

        聯(lián)合創(chuàng)作 · 2023-10-01 15:22

        Cedar 是 Objective-C 上 BDD 風格的單元測試框架。

        describe(@"Example specs on NSString", ^{
            it(@"lowercaseString returns a new string with everything in lower case", ^{
                [@"FOOBar" lowercaseString] should equal(@"foobar");
            });
        
            it(@"length returns the number of characters in the string", ^{
                [@"internationalization" length] should equal(20);
            });
        
            describe(@"isEqualToString:", ^{
                it(@"should return true if the strings are the same", ^{
                    [@"someString" isEqualToString:@"someString"] should be_truthy;
                });
        
                it(@"should return false if the strings are not the same", ^{
                    [@"someString" isEqualToString:@"anotherString"] should be_falsy;
                });
            });
        });
         
        瀏覽 4
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
        評論
        圖片
        表情
        推薦
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            一起艹视频 | 大尺度av在线 | 艳魔大战2春荡女淫在线观看 | 樱桃性爱视频 | 奇米第四色狠狠 | 公主被太监h各种姿势调教 | 亚洲狠狠操 | 黄片网站在线免费看 | 国产久久视频 | 公夜袭一区二区三区电影 |