/*開始時刻やタイミングが書かれた文字列*/\r
string: "",\r
trim: function() {\r
- return ( this.string = this.string.replace(/\s\n/g, "") );\r
+ return ( this.string = this.string.replace(/[\s\n]+/g, "") );\r
},\r
offset: function() {\r
return parseFloat(this.trim().match(/[\+\-]?\d+$/));\r
/*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
it("should be this for the value (the valid partion)", function() {\r
begin.string = " hoge ";\r
- expect(begin.trim()).toBe("w");\r
+ expect(begin.trim()).toBe("hoge");\r
} );\r
/*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
it("should be this for the value (the invalid partion)", function() {\r