You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @ts-expect-error: string arguments are not supported by the types, but it works (if the string contains a number)
90
+
math.add(2,'3')
91
+
// @ts-expect-error: string arguments are not supported by the types, but it works (if the string contains a number), but should throw an error if it is something else
92
+
assert.throws(()=>math.add(2,'3 + 5'))
93
+
// @ts-expect-error: string arguments are not supported by the types, but it works (if the string contains a number), but should throw an error if it is something else
94
+
assert.throws(()=>math.add(2,'3 cm'))
95
+
// @ts-expect-error: no arguments are not supported by the types, and should throw an error
96
+
assert.throws(()=>math.add())
97
+
// @ts-expect-error: 1 argument is not supported by the types, and should throw an error
98
+
assert.throws(()=>math.add(1))
99
+
89
100
math.multiply(2,3,4)
90
101
math.multiply(2,3,math.bignumber(4))
102
+
// @ts-expect-error: string arguments are not supported by the types, but it works (if the string contains a number)
103
+
math.multiply(2,'2')// currently not supported by the types, but turns out to work
104
+
// @ts-expect-error: string arguments are not supported by the types, but it works (if the string contains a number), but should throw an error if it is something else
105
+
assert.throws(()=>math.multiply(2,'3 + 5'))
106
+
// @ts-expect-error: string arguments are not supported by the types, but it works (if the string contains a number), but should throw an error if it is something else
107
+
assert.throws(()=>math.multiply(2,'3 cm'))
108
+
// @ts-expect-error: no arguments are not supported by the types, and should throw an error
109
+
assert.throws(()=>math.multiply())
110
+
// @ts-expect-error: 1 argument is not supported by the types, and should throw an error
0 commit comments