added tests

pull/2069/head
Tiko7454 1 year ago
parent d219118c66
commit e3e4d0ec0b
  1. 20
      tests/e2e/solc_parsing/test_ast_parsing.py
  2. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.5-legacy.zip
  3. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.6-legacy.zip
  4. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.7-legacy.zip
  5. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.8-legacy.zip
  6. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.9-legacy.zip
  7. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-compact.zip
  8. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-legacy.zip
  9. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-compact.zip
  10. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-legacy.zip
  11. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-compact.zip
  12. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-legacy.zip
  13. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-compact.zip
  14. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-legacy.zip
  15. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-compact.zip
  16. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-legacy.zip
  17. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-compact.zip
  18. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-legacy.zip
  19. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-compact.zip
  20. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-legacy.zip
  21. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-compact.zip
  22. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-legacy.zip
  23. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-compact.zip
  24. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-legacy.zip
  25. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-compact.zip
  26. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-legacy.zip
  27. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-compact.zip
  28. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-legacy.zip
  29. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-compact.zip
  30. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-legacy.zip
  31. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-compact.zip
  32. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-legacy.zip
  33. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-compact.zip
  34. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-legacy.zip
  35. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-compact.zip
  36. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-legacy.zip
  37. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-compact.zip
  38. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-legacy.zip
  39. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-compact.zip
  40. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-legacy.zip
  41. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-compact.zip
  42. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-legacy.zip
  43. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-compact.zip
  44. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-legacy.zip
  45. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-compact.zip
  46. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-legacy.zip
  47. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-compact.zip
  48. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-legacy.zip
  49. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-compact.zip
  50. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-legacy.zip
  51. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-compact.zip
  52. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-legacy.zip
  53. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-compact.zip
  54. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-legacy.zip
  55. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-compact.zip
  56. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-legacy.zip
  57. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-compact.zip
  58. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-legacy.zip
  59. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-compact.zip
  60. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-legacy.zip
  61. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-compact.zip
  62. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-legacy.zip
  63. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-compact.zip
  64. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-legacy.zip
  65. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-compact.zip
  66. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-legacy.zip
  67. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-compact.zip
  68. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-legacy.zip
  69. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-compact.zip
  70. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-legacy.zip
  71. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-compact.zip
  72. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-legacy.zip
  73. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-compact.zip
  74. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-legacy.zip
  75. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-compact.zip
  76. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-legacy.zip
  77. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-compact.zip
  78. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-legacy.zip
  79. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-compact.zip
  80. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-legacy.zip
  81. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-compact.zip
  82. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-legacy.zip
  83. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.0-compact.zip
  84. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.1-compact.zip
  85. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.10-compact.zip
  86. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.11-compact.zip
  87. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.12-compact.zip
  88. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.13-compact.zip
  89. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.14-compact.zip
  90. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.15-compact.zip
  91. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.2-compact.zip
  92. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.3-compact.zip
  93. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.4-compact.zip
  94. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.5-compact.zip
  95. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.6-compact.zip
  96. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.7-compact.zip
  97. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.8-compact.zip
  98. BIN
      tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.9-compact.zip
  99. BIN
      tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.0-legacy.zip
  100. BIN
      tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.1-legacy.zip
  101. Some files were not shown because too many files have changed in this diff Show More

@ -287,6 +287,10 @@ ALL_TESTS = [
"if-all.sol", "if-all.sol",
ALL_VERSIONS, ALL_VERSIONS,
), ),
Test(
"if-with-ternary-condition-all.sol",
ALL_VERSIONS,
),
Test( Test(
"modifier-all.sol", "modifier-all.sol",
VERSIONS_04 + VERSIONS_05 + VERSIONS_06, VERSIONS_04 + VERSIONS_05 + VERSIONS_06,
@ -331,6 +335,10 @@ ALL_TESTS = [
"dowhile-0.4.5.sol", "dowhile-0.4.5.sol",
make_version(4, 5, 9) + VERSIONS_05 + VERSIONS_06 + VERSIONS_07 + VERSIONS_08, make_version(4, 5, 9) + VERSIONS_05 + VERSIONS_06 + VERSIONS_07 + VERSIONS_08,
), ),
Test(
"dowhile-with-ternary-condition-0.4.5.sol",
make_version(4, 5, 9) + VERSIONS_05 + VERSIONS_06 + VERSIONS_07 + VERSIONS_08,
),
Test( Test(
"custom_error-0.4.0.sol", "custom_error-0.4.0.sol",
ALL_VERSIONS, ALL_VERSIONS,
@ -367,6 +375,10 @@ ALL_TESTS = [
"for-all.sol", "for-all.sol",
ALL_VERSIONS, ALL_VERSIONS,
), ),
Test(
"for-with-ternary-condition-all.sol",
ALL_VERSIONS,
),
Test("trycatch-0.4.0.sol", VERSIONS_04 + VERSIONS_05), Test("trycatch-0.4.0.sol", VERSIONS_04 + VERSIONS_05),
# TODO: legacy failing # TODO: legacy failing
Test( Test(
@ -412,6 +424,14 @@ ALL_TESTS = [
"while-all.sol", "while-all.sol",
ALL_VERSIONS, ALL_VERSIONS,
), ),
Test(
"while-with-ternary-condition-all.sol",
ALL_VERSIONS,
),
Test(
"nested-while-with-ternary-condition-all.sol",
ALL_VERSIONS,
),
Test( Test(
"complex_imports/import_free/Caller.sol", "complex_imports/import_free/Caller.sol",
["0.8.2"], ["0.8.2"],

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save