• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

dev


Commit MetaInfo

Revisão504aee973afb1a3bf305949ac65de0a2c72777e9 (tree)
Hora2013-05-10 06:55:40
AutorKimura Youichi <kim.upsilon@bucy...>
CommiterKimura Youichi

Mensagem de Log

FiltersClassTest のテストコードの誤りを修正

Mudança Sumário

Diff

--- a/OpenTween.Tests/FiltersClassTest.cs
+++ b/OpenTween.Tests/FiltersClassTest.cs
@@ -71,25 +71,25 @@ namespace OpenTween
7171 var filter = new FiltersClass { UseRegex = true };
7272 PostClass post;
7373
74- filter.NameFilter = "(hoge)+";
74+ filter.NameFilter = "hoge(hoge)+";
7575 post = new PostClass { ScreenName = "hogehoge", Text = "test" };
7676 Assert.That(filter.IsHit(post), Is.EqualTo(MyCommon.HITRESULT.CopyAndMark));
7777
78- filter.NameFilter = "(hoge)+";
78+ filter.NameFilter = "hoge(hoge)+";
7979 post = new PostClass { ScreenName = "hoge", Text = "test" };
8080 Assert.That(filter.IsHit(post), Is.EqualTo(MyCommon.HITRESULT.None));
8181
8282 // NameFilter は RetweetedBy にもマッチする
83- filter.NameFilter = "(hoge)+";
83+ filter.NameFilter = "hoge(hoge)+";
8484 post = new PostClass { ScreenName = "foo", Text = "test", RetweetedBy = "hogehoge" };
8585 Assert.That(filter.IsHit(post), Is.EqualTo(MyCommon.HITRESULT.CopyAndMark));
8686
87- filter.NameFilter = "(hoge)+";
87+ filter.NameFilter = "hoge(hoge)+";
8888 post = new PostClass { ScreenName = "foo", Text = "test", RetweetedBy = "hoge2" };
8989 Assert.That(filter.IsHit(post), Is.EqualTo(MyCommon.HITRESULT.None));
9090
9191 // 大小文字を区別しないオプション
92- filter.NameFilter = "(hoge)+";
92+ filter.NameFilter = "hoge(hoge)+";
9393 filter.CaseSensitive = false;
9494 post = new PostClass { ScreenName = "HogeHogeHoge", Text = "test" };
9595 Assert.That(filter.IsHit(post), Is.EqualTo(MyCommon.HITRESULT.CopyAndMark));