(t *testing.T)
| 242 | } |
| 243 | |
| 244 | func Test_plusFunc(t *testing.T) { |
| 245 | // 1+1 |
| 246 | assertEqual(t, float64(2), plusFunc(nil, float64(1), float64(1))) |
| 247 | // string + |
| 248 | assertEqual(t, float64(2), plusFunc(nil, "1", "1")) |
| 249 | // invalid string |
| 250 | v := plusFunc(nil, "a", 1) |
| 251 | assertTrue(t, math.IsNaN(v.(float64))) |
| 252 | // Nodeset |
| 253 | // TODO |
| 254 | } |
| 255 | |
| 256 | func Test_minusFunc(t *testing.T) { |
| 257 | // 1 - 1 |
nothing calls this directly
no test coverage detected
searching dependent graphs…