return this.string.match(/[^\d\-\+\.eE]+/g);\r
},\r
\r
- /*$advanceオブジェクトに適用させる関数*/\r
+ /*$toオブジェクトにこのオブジェクトを適用させる関数*/\r
call: function() {\r
+ this.$to.from = this;\r
return this.$to;\r
}\r
\r
from.$to.string = "12cm-7";\r
expect(from.$to.numList().join(",")).toBe("12,-7");\r
expect(from.$to.strList().toString()).toBe("cm");\r
+ \r
+ from.string = "7cm+8";\r
+ from.$to.call();\r
+ expect(from.call()).toBe(from.$to);\r
+ expect(from.$to.numList.join(",")).toBe("12,-7");\r
+ expect(from.$to.strList.toString()).toBe("cm");\r
+ expect(from.numList.join(",")).toBe("7,8");\r
+ expect(from.strList.toString()).toBe("cm");\r
+ expect(from.$to.from).toBe(from);\r
\r
} );\r
/*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r