皇家方舟

          junit數組比較

          以下斷言只是對整型數組進行比較,如需其它數據類型的比較則只需修改相應的數據類型;
          /**
          ? * Asserts that two int arrays are equal. If they are not an
          ? * AssertionFailedError is thrown.
          ? */
          ?static public void assertEquals(int[] expected, int[] actual )
          ?{
          ??for(int i = 0; i < expected.length; i++)
          ??{
          ???assertEquals(null, expected[i], actual[i]);
          ??}
          ?}


          posted on 2006-09-18 17:30 阿輝 閱讀(873) 評論(0)  編輯  收藏 所屬分類: junit

          My Links

          Blog Stats

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 周宁县| 嫩江县| 昌图县| 开原市| 长宁区| 永年县| 靖西县| 桦甸市| 嘉善县| 衡南县| 揭东县| 通渭县| 徐水县| 元氏县| 介休市| 门源| 黄陵县| 金堂县| 远安县| 宣城市| 诏安县| 奎屯市| 称多县| 威海市| 乳源| 铜梁县| 普兰店市| 安国市| 荣成市| 安西县| 金寨县| 张掖市| 五台县| 鄂州市| 且末县| 乌鲁木齐县| 雅江县| 昌都县| 黄龙县| 商洛市| 静宁县|