Last active
October 26, 2017 08:48
Revisions
-
tarot revised this gist
Oct 26, 2017 . 1 changed file with 5 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,8 @@ Object a = 'あ'; Object b = 'ア'; System.assertEquals(true, a == b); // ←わかる System.assertEquals(false, a.equals(b)); // => Assertion Failed ←は? // Solution System.assertEquals(false, ((String) a).equals(b)); -
tarot created this gist
Oct 26, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ Object a = ' '; Object b = '\u3000'; // 全角スペース System.assertEquals(true, a == b); // ←わかる System.assertEquals(false, a.equals(b)); // => Assertion Failed ←は?