expect(begin.parse().begin).toEqual(0);\r
begin.string = "1";\r
expect(begin.parse().begin).toEqual(1000);\r
- begin.string = "+1ms";\r
- expect(begin.parse().begin).toEqual(1);\r
- begin.string = "-1ms";\r
- expect(begin.parse().begin).toEqual(-1);\r
+ begin.string = "+0ms";\r
+ expect(begin.parse().begin).toEqual(0);\r
+ begin.string = "-0ms";\r
+ expect(begin.parse().begin).toEqual(0);\r
} );\r
/*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
it("should be this for the value (the valid partion)", function() {\r
begin.isResolved = false;\r
expect(begin.parse().begin).toEqual(0);\r
expect(begin.isResolved).toBeFalsy();\r
+ begin.string = "1ms";\r
+ begin.isResolved = false;\r
+ expect(begin.parse().begin).toEqual(1);\r
+ expect(begin.isResolved).toBeTruthy();\r
} );\r
/*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
it("should be this for the value (the invalid partion)", function() {\r