OO Homework One Notes

  • 系数/指数 过大 溢出(True) eg. - +999999999454554999999 * x ^ -85858554545454545548585858858
  • x前存在两个符号,与x有空格分离(True) eg. - - x
  • 带符号整数符号与数字分离(False) eg. - - 21
  • 系数和x之间的*号(False) eg. + -199x ^+5
  • 无符号项之前省略符号(False) eg. 123 321 / +2*x 32 / -85 7*x ^ -85 / -x x
  • 合并同类相 eg. + 6 * x^5 - - x ^ 5
  • 系数为零(True) eg. - +0 * x
  • 带符号整数之间出现空白(False): eg. + 12 3
  • 指数为零(True) eg. 6 * x ^ -0
  • 前导零 e.g - 00000000005 * x / + 00000000000* x ^ +6
  • 空字符串(False)
  • 空字符串Plus(False): eg. 空格
  • 指数不为整数(False): eg. 123 * x ^1.1
  • False: 123 * 123
  • False: x * x
  • False: 3 ^ 234
  • False: x ^ x
  • False: x * 245436
  • 缺少部件False: 3 * x ^ + -x / 3 + * x ^ 2 / -5 + 5 x
  • 异军突起False: 1 + * + 3
  • 多重符号False: - + - 5 * x
  • 结尾符号False:8*x^ +6 -
  • 输入不合法x(False): X / 2* a
  • 系数为小数(False): +2.3 * x
  • 450个+x 正则爆栈
原文地址:https://www.cnblogs.com/kidogucb/p/10471254.html