solidity/test/libsolidity/semanticTests
Paarth Madan 17fa85a2fb Add Base64 test cases with and without inline assembly
Adds two implementations of Base64 encoding as specified in RFC4648.
Implementation (1) uses inline assembly, while Implementation (2) is
written purely in Solidity.

Assertions are added to replicate the test vectors specified in the RFC
for Base64 to ensure both implementations to specification.
2022-03-05 19:51:46 -05:00
..
abiencodedecode abi.encodeCall for declarations. 2021-12-29 12:26:04 +01:00
abiEncoderV1 returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
abiEncoderV2 returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
accessor Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
arithmetics Skip extcodesize check if return data is expected. 2021-11-08 14:58:09 +01:00
array returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
asmForLoop Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
builtinFunctions Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
calldata Update tests. 2022-02-21 14:32:52 +01:00
cleanup Corresponding code in the .cpp file has been commented instead of begin removed pending preliminary reviews 2022-01-28 19:56:15 +05:30
constantEvaluator Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
constants Enable more semantic tests for Ewasm 2021-04-23 17:00:01 +01:00
constructor returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
conversions Fix assertion preventing assignment of arrays of implicitly convertible function types 2021-06-03 08:56:02 +02:00
ecrecover Merge remote-tracking branch 'origin/develop' into breaking 2020-11-24 16:22:03 +01:00
enums trial test cases extracted from SoliidityEndToEndTest.cpp into .sol files. 2021-12-16 16:56:38 +05:30
error Syntax for custom errors. 2021-03-30 21:15:18 +02:00
errors Fix shadowing struct types by struct member names 2021-06-09 12:37:11 +02:00
events returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
exponentiation Enable more semantic tests for Ewasm 2021-04-23 17:00:01 +01:00
expressions Fix yul codegen bug when using binary negatition. 2021-06-29 17:41:03 +02:00
externalContracts Add Base64 test cases with and without inline assembly 2022-03-05 19:51:46 -05:00
externalSource [isoltest] Add support for external sources. 2021-04-26 08:27:30 -05:00
fallback trial test cases extracted from SoliidityEndToEndTest.cpp into .sol files. 2021-12-16 16:56:38 +05:30
freeFunctions Skip extcodesize check if return data is expected. 2021-11-08 14:58:09 +01:00
functionCall returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
functionSelector Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
functionTypes Adding Stack Height Checker and modifying the number of POP instructions to appropriately provide the pointer address 2022-01-20 01:15:08 +05:30
getters Enable more semantic tests for Ewasm 2021-04-23 17:00:01 +01:00
immutable returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
inheritance returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
inlineAssembly Update tests. 2021-11-03 12:39:55 +01:00
integer Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
interfaceID Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
isoltestTesting returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
libraries returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
literals Do not use \b, \v and \f escapes in string literals in generated Yul code 2021-06-28 14:13:47 +02:00
memoryManagement Extracted some test cases from SolidityEndToEnd.cpp 2021-11-29 21:27:43 +05:30
metaTypes Enable more semantic tests for Ewasm 2021-04-23 17:00:01 +01:00
modifiers Fix assignment of return variables from modifiers. 2021-11-01 14:14:50 +01:00
multiSource Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
operators Yul: Fix cleanup for left shift of bytes types. 2021-08-05 10:54:48 +02:00
optimizer Enable more semantic tests for Ewasm 2021-04-23 17:00:01 +01:00
payable [isoltest] Add support to query balance. 2021-04-28 16:19:05 +02:00
receive Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
reverts Enable more semantic tests for Ewasm 2021-04-23 17:00:01 +01:00
revertStrings Cleanup ABICoder V1 tests 2021-05-17 12:37:10 +01:00
salted_create returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
smoke Update tests. 2022-02-21 14:32:52 +01:00
specialFunctions Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
state Update tests. 2022-02-21 14:32:52 +01:00
statements Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
storage Update tests. 2021-11-03 12:39:55 +01:00
strings Added support for FunctionType::Kind::StringConcat and functions string.concat 2022-02-10 22:08:47 +05:30
structs Update tests. 2022-02-21 14:32:52 +01:00
tryCatch Trivial isoltest updates: normalized whitespace 2021-04-20 17:38:29 +02:00
types Fix ICE when printing an error message related to mappings 2021-10-06 17:02:36 +02:00
underscore Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
uninitializedFunctionPointer Enable more semantic tests for Ewasm 2021-04-23 17:00:01 +01:00
userDefinedValueType returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
variables Extracted some test cases from SolidityEndToEnd.cpp 2021-11-29 21:27:43 +05:30
various returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
viaYul returnSize assigned according to truth value of returnInfo.dynamicReturnSize 2022-03-03 18:55:10 +05:30
virtualFunctions Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
c99_scoping_activation.sol Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
constructor_inheritance_init_order_2.sol Update tests. 2022-02-21 14:32:52 +01:00
constructor_inheritance_init_order_3_legacy.sol Move stray semantics test to proper directory. 2022-02-10 13:43:49 +01:00
constructor_inheritance_init_order_3_viaIR.sol Move stray semantics test to proper directory. 2022-02-10 13:43:49 +01:00
constructor_inheritance_init_order.sol Update tests. 2022-02-21 14:32:52 +01:00
constructor_with_params_diamond_inheritance.sol Update tests. 2022-02-21 14:32:52 +01:00
constructor_with_params_inheritance_2.sol
constructor_with_params_inheritance.sol Update gas expectations 2021-11-15 16:32:45 +01:00
constructor_with_params.sol Update gas expectations 2021-11-15 16:32:45 +01:00
dirty_calldata_bytes.sol Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
dirty_calldata_dynamic_array.sol Tests/Docs after stricter explicit conversion. 2020-12-03 16:51:05 +01:00
empty_contract.sol Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
empty_for_loop.sol Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
interface_inheritance_conversions.sol Update tests. 2021-11-08 14:59:00 +01:00
isoltestFormatting.sol Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
state_var_initialization.sol Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
state_variables_init_order_2.sol Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00
state_variables_init_order_3.sol
state_variables_init_order.sol Trivial isoltest updates: directives sorted alphabetically 2021-04-20 17:21:56 +02:00