You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
687 lines
7.9 KiB
687 lines
7.9 KiB
---
|
|
test case: fail -10w
|
|
in:
|
|
num: -10w
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: succeed -1.0
|
|
in:
|
|
num: -1.0
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 1.0
|
|
in:
|
|
num: 1.0
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -1
|
|
in:
|
|
num: -1
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 1
|
|
in:
|
|
num: 1
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 1234567890.0987654321
|
|
in:
|
|
num: 1234567890.0987654321
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -1234567890.0987654321
|
|
in:
|
|
num: -1234567890.0987654321
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: fail 1234567890.0987654321K
|
|
in:
|
|
num: 1234567890.0987654321K
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail -1234567890.0987654321K
|
|
in:
|
|
num: -1234567890.0987654321K
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail .
|
|
in:
|
|
num: .
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail -.
|
|
in:
|
|
num: -.
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail +.
|
|
in:
|
|
num: +.
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail --1
|
|
in:
|
|
num: --1
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail ++1
|
|
in:
|
|
num: ++1
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "- -1"
|
|
in:
|
|
num: "- -1"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "+ +1"
|
|
in:
|
|
num: "+ +1"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail .K
|
|
in:
|
|
num: .K
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail -.K
|
|
in:
|
|
num: -.K
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail +.K
|
|
in:
|
|
num: +.K
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail -1.0k
|
|
in:
|
|
num: -1.0k
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail -1.0Kk
|
|
in:
|
|
num: -1.0Kk
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail -1,0K
|
|
in:
|
|
num: -1,0K
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail -1,0
|
|
in:
|
|
num: -1,0
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: succeed +1
|
|
in:
|
|
num: +1
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +1.0
|
|
in:
|
|
num: +1.0
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +.1
|
|
in:
|
|
num: +.1
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: fail 1.K
|
|
in:
|
|
num: 1.K
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail .1K
|
|
in:
|
|
num: .1K
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail -1.K
|
|
in:
|
|
num: -1.K
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail -.1K
|
|
in:
|
|
num: -.1K
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: succeed 1.
|
|
in:
|
|
num: 1.
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -1.
|
|
in:
|
|
num: -1.
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed .1
|
|
in:
|
|
num: .1
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -.1
|
|
in:
|
|
num: -.1
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: fail "1. "
|
|
in:
|
|
num: "1. "
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "-1. "
|
|
in:
|
|
num: "-1. "
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail " .1"
|
|
in:
|
|
num: " .1"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "- .1"
|
|
in:
|
|
num: "- .1"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail " -0.1"
|
|
in:
|
|
num: " -0.1"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "-0.1 "
|
|
in:
|
|
num: "-0.1 "
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "-0.1 K"
|
|
in:
|
|
num: "-0.1 K"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "1 K"
|
|
in:
|
|
num: "1 K"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "1K "
|
|
in:
|
|
num: "1K "
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "1 "
|
|
in:
|
|
num: "1 "
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail " 1"
|
|
in:
|
|
num: " 1"
|
|
out:
|
|
return: FAIL
|
|
|
|
---
|
|
test case: fail ..1
|
|
in:
|
|
num: ..1
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail .1.
|
|
in:
|
|
num: .1.
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail 1..
|
|
in:
|
|
num: 1..
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail .1.2
|
|
in:
|
|
num: .1.2
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail 1..2
|
|
in:
|
|
num: 1..2
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail ..
|
|
in:
|
|
num: ..
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: succeed 1e+2
|
|
in:
|
|
num: 1e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 1E+2
|
|
in:
|
|
num: 1E+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 1e-2
|
|
in:
|
|
num: 1e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 1E-2
|
|
in:
|
|
num: 1E-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -1e+2
|
|
in:
|
|
num: -1e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -1E+2
|
|
in:
|
|
num: -1E+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -1e-2
|
|
in:
|
|
num: -1e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -1E-2
|
|
in:
|
|
num: -1E-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +1e+2
|
|
in:
|
|
num: +1e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +1E+2
|
|
in:
|
|
num: +1E+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +1e-2
|
|
in:
|
|
num: +1e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +1E-2
|
|
in:
|
|
num: +1E-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 0.1e+2
|
|
in:
|
|
num: 0.1e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 1.0e+2
|
|
in:
|
|
num: 1.0e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -0.1e+2
|
|
in:
|
|
num: 0.1e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -1.0e+2
|
|
in:
|
|
num: 1.0e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +0.1e+2
|
|
in:
|
|
num: +0.1e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +1.0e+2
|
|
in:
|
|
num: +1.0e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 0.1e-2
|
|
in:
|
|
num: 0.1e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 1.0e-2
|
|
in:
|
|
num: 1.0e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -0.1e-2
|
|
in:
|
|
num: 0.1e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -1.0e-2
|
|
in:
|
|
num: 1.0e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +0.1e-2
|
|
in:
|
|
num: +0.1e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +1.0e-2
|
|
in:
|
|
num: +1.0e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed .1e+2
|
|
in:
|
|
num: .1e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 1.e+2
|
|
in:
|
|
num: 1.e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -.1e+2
|
|
in:
|
|
num: .1e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -1.e+2
|
|
in:
|
|
num: 1.e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +.1e+2
|
|
in:
|
|
num: +.1e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +1.e+2
|
|
in:
|
|
num: +1.e+2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed .1e-2
|
|
in:
|
|
num: .1e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 1.e-2
|
|
in:
|
|
num: 1.e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -.1e-2
|
|
in:
|
|
num: .1e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -1.e-2
|
|
in:
|
|
num: 1.e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +.1e-2
|
|
in:
|
|
num: +.1e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +1.e-2
|
|
in:
|
|
num: +1.e-2
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 1234567890.0123456789e-1234567890
|
|
in:
|
|
num: 1234567890.0123456789e-1234567890
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed -1234567890.0123456789e-1234567890
|
|
in:
|
|
num: -1234567890.0123456789e-1234567890
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed +1234567890.0123456789e-1234567890
|
|
in:
|
|
num: +1234567890.0123456789e-1234567890
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: succeed 1234567890.0123456789e+1234567890
|
|
in:
|
|
num: 1234567890.0123456789e+1234567890
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: succeed -1234567890.0123456789e+1234567890
|
|
in:
|
|
num: -1234567890.0123456789e+1234567890
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: succeed +1234567890.0123456789e+1234567890
|
|
in:
|
|
num: +1234567890.0123456789e+1234567890
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail 1.e-2K
|
|
in:
|
|
num: 1.e-2K
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "1.e-2 "
|
|
in:
|
|
num: "1.e-2 "
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail " 1.e-2 "
|
|
in:
|
|
num: " 1.e-2 "
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "1.e-2 K"
|
|
in:
|
|
num: "1.e-2 K"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "1.e-2 ."
|
|
in:
|
|
num: "1.e-2 ."
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail 1.e-2.
|
|
in:
|
|
num: 1.e-2.
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail .e-2
|
|
in:
|
|
num: .e-2
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail e-2
|
|
in:
|
|
num: e-2
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "1.0e- 2"
|
|
in:
|
|
num: "1.0e- 2"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "1.0e -2"
|
|
in:
|
|
num: "1.0e -2"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "1.0 e-2"
|
|
in:
|
|
num: "1.0 e-2"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "1. 0e-2"
|
|
in:
|
|
num: "1. 0e-2"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail "1 .0e-2"
|
|
in:
|
|
num: "1 .0e-2"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: fail " 1.0e-2"
|
|
in:
|
|
num: " 1.0e-2"
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: succeed 8E307
|
|
in:
|
|
num: 8E307
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: fail 8E310
|
|
in:
|
|
num: 8E310
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: num == DBL_MAX
|
|
in:
|
|
num: 1.7976931348623158e+308
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: num > DBL_MAX
|
|
in:
|
|
num: 1.7976931348623159e+308
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: num == -DBL_MAX
|
|
in:
|
|
num: -1.7976931348623158e+308
|
|
out:
|
|
return: SUCCEED
|
|
---
|
|
test case: num < -DBL_MAX
|
|
in:
|
|
num: -1.7976931348623159e+308
|
|
out:
|
|
return: FAIL
|
|
---
|
|
test case: num == DBL_MIN
|
|
in:
|
|
num: 2.2250738585072014e-308
|
|
out:
|
|
return: SUCCEED
|
|
...
|