diff --git a/test/libsolidity/syntaxTests/constantEvaluator/type_reference.sol b/test/libsolidity/syntaxTests/constantEvaluator/type_reference.sol index f10d01533..086d89151 100644 --- a/test/libsolidity/syntaxTests/constantEvaluator/type_reference.sol +++ b/test/libsolidity/syntaxTests/constantEvaluator/type_reference.sol @@ -1,4 +1,4 @@ int[L] constant L = 6; // ---- // TypeError 5462: (4-5): Invalid array length, expected integer literal or constant expression. -// TypeError 9259: (0-21): Only constants of value type and byte arrays are implemented. +// TypeError 9259: (0-21): Only constants of value type and byte array type are implemented. diff --git a/test/libsolidity/syntaxTests/constantEvaluator/type_reference_in_contract.sol b/test/libsolidity/syntaxTests/constantEvaluator/type_reference_in_contract.sol index c95eab19d..dfb81378b 100644 --- a/test/libsolidity/syntaxTests/constantEvaluator/type_reference_in_contract.sol +++ b/test/libsolidity/syntaxTests/constantEvaluator/type_reference_in_contract.sol @@ -3,4 +3,4 @@ contract C { } // ---- // TypeError 5462: (21-22): Invalid array length, expected integer literal or constant expression. -// TypeError 9259: (17-38): Only constants of value type and byte arrays are implemented. +// TypeError 9259: (17-38): Only constants of value type and byte array type are implemented. diff --git a/test/libsolidity/syntaxTests/constants/mapping_constant.sol b/test/libsolidity/syntaxTests/constants/mapping_constant.sol index 3ca53d35c..e6b5b124a 100644 --- a/test/libsolidity/syntaxTests/constants/mapping_constant.sol +++ b/test/libsolidity/syntaxTests/constants/mapping_constant.sol @@ -1,3 +1,3 @@ mapping(uint => uint) constant b = b; // ---- -// TypeError 9259: (0-36): Only constants of value type and byte arrays are implemented. +// TypeError 9259: (0-36): Only constants of value type and byte array type are implemented. diff --git a/test/libsolidity/syntaxTests/constants/struct_constant.sol b/test/libsolidity/syntaxTests/constants/struct_constant.sol index fd9d90ff5..9195dac0c 100644 --- a/test/libsolidity/syntaxTests/constants/struct_constant.sol +++ b/test/libsolidity/syntaxTests/constants/struct_constant.sol @@ -1,4 +1,4 @@ struct S { uint x; } S constant s; // ---- -// TypeError 9259: (21-33): Only constants of value type and byte arrays are implemented. +// TypeError 9259: (21-33): Only constants of value type and byte array type are implemented. diff --git a/test/libsolidity/syntaxTests/iceRegressionTests/const_struct_with_mapping.sol b/test/libsolidity/syntaxTests/iceRegressionTests/const_struct_with_mapping.sol index 79d0f93c6..2983b0e71 100644 --- a/test/libsolidity/syntaxTests/iceRegressionTests/const_struct_with_mapping.sol +++ b/test/libsolidity/syntaxTests/iceRegressionTests/const_struct_with_mapping.sol @@ -5,4 +5,4 @@ contract C { S public constant e = 0x1212121212121212121212121212121212121212; } // ---- -// TypeError 9259: (71-135): Only constants of value type and byte arrays are implemented. +// TypeError 9259: (71-135): Only constants of value type and byte array type are implemented. diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/105_constant_input_parameter.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/105_constant_input_parameter.sol index 9289e5dd8..e2ef8518d 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/105_constant_input_parameter.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/105_constant_input_parameter.sol @@ -3,4 +3,4 @@ contract test { } // ---- // DeclarationError 1788: (31-55): The "constant" keyword can only be used for state variables or variables at file level. -// TypeError 9259: (31-55): Only constants of value type and byte arrays are implemented. +// TypeError 9259: (31-55): Only constants of value type and byte array type are implemented. diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/171_assignment_to_const_array_vars.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/171_assignment_to_const_array_vars.sol index db3539b7c..590cec5a3 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/171_assignment_to_const_array_vars.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/171_assignment_to_const_array_vars.sol @@ -2,4 +2,4 @@ contract C { uint[3] constant x = [uint(1), 2, 3]; } // ---- -// TypeError 9259: (17-53): Only constants of value type and byte arrays are implemented. +// TypeError 9259: (17-53): Only constants of value type and byte array type are implemented. diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/173_constant_struct.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/173_constant_struct.sol index 24dab2fb2..6b5e7a13c 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/173_constant_struct.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/173_constant_struct.sol @@ -3,4 +3,4 @@ contract C { S constant x = S(5, new uint[](4)); } // ---- -// TypeError 9259: (52-86): Only constants of value type and byte arrays are implemented. +// TypeError 9259: (52-86): Only constants of value type and byte array type are implemented. diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_forward_reference_struct.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_forward_reference_struct.sol index 0c6281c95..d845e735c 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_forward_reference_struct.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_forward_reference_struct.sol @@ -1,4 +1,4 @@ S constant x; struct S { int y; } // ---- -// TypeError 9259: (0-12): Only constants of value type and byte arrays are implemented. +// TypeError 9259: (0-12): Only constants of value type and byte array type are implemented. diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_mapping.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_mapping.sol index b2670db79..803cdad53 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_mapping.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_mapping.sol @@ -2,4 +2,4 @@ contract C { mapping(uint => uint) constant x; } // ---- -// TypeError 9259: (17-49): Only constants of value type and byte arrays are implemented. +// TypeError 9259: (17-49): Only constants of value type and byte array type are implemented. diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_nested_mapping.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_nested_mapping.sol index dd5ae352c..2fed9d631 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_nested_mapping.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/constant_nested_mapping.sol @@ -5,4 +5,4 @@ contract C { S public constant c; } // ---- -// TypeError 9259: (71-90): Only constants of value type and byte arrays are implemented. +// TypeError 9259: (71-90): Only constants of value type and byte array type are implemented. diff --git a/test/libsolidity/syntaxTests/parsing/location_specifiers_for_params.sol b/test/libsolidity/syntaxTests/parsing/location_specifiers_for_params.sol index 866c7f427..c5761a944 100644 --- a/test/libsolidity/syntaxTests/parsing/location_specifiers_for_params.sol +++ b/test/libsolidity/syntaxTests/parsing/location_specifiers_for_params.sol @@ -3,4 +3,4 @@ contract Foo { } // ---- // DeclarationError 1788: (30-55): The "constant" keyword can only be used for state variables or variables at file level. -// TypeError 9259: (30-55): Only constants of value type and byte arrays are implemented. +// TypeError 9259: (30-55): Only constants of value type and byte array type are implemented. diff --git a/test/yulPhaser/GeneticAlgorithms.cpp b/test/yulPhaser/GeneticAlgorithms.cpp index 16d5cc654..29c9cfa2e 100644 --- a/test/yulPhaser/GeneticAlgorithms.cpp +++ b/test/yulPhaser/GeneticAlgorithms.cpp @@ -217,6 +217,9 @@ BOOST_FIXTURE_TEST_CASE(runNextRound_should_select_individuals_with_probability_ { constexpr double relativeTolerance = 0.1; constexpr size_t populationSize = 1000; + + SimulationRNG::reset(1); + assert(populationSize % 4 == 0 && "Choose a number divisible by 4 for this test"); auto population =