@@ -13,6 +13,7 @@ def test_compile_from_file
1313 Dir . mktmpdir ( 'contracts-' ) do |dir |
1414 lib_path = File . join dir , 'Other.sol'
1515 File . write lib_path , <<-EOF
16+ pragma solidity ^0.4.0;
1617 library Other {
1718 function seven() returns (int256 y) {
1819 y = 7;
@@ -22,6 +23,7 @@ def test_compile_from_file
2223
2324 user_path = File . join dir , 'user.sol'
2425 File . write user_path , <<-EOF
26+ pragma solidity ^0.4.0;
2527 import "Other.sol";
2628 contract user {
2729 function test() returns (int256 seven) {
@@ -53,6 +55,8 @@ def sub1():
5355 return(5)
5456 EOF
5557 SOLIDITY_CONTRACT = <<-EOF
58+ pragma solidity ^0.4.0;
59+
5660 contract serpent { function sub1() returns (int256 y) {} }
5761
5862 contract zoo {
@@ -78,6 +82,7 @@ def test_interop
7882 end
7983
8084 COMPILE_RICH_CONTRACT = <<-EOF
85+ pragma solidity ^0.4.0;
8186 contract contract_add {
8287 function add7(uint a) returns(uint d) { return a + 7; }
8388 function add42(uint a) returns(uint d) { return a + 42; }
@@ -104,6 +109,7 @@ def test_solidity_compile_rich
104109 end
105110
106111 CONSTRUCTOR_CONTRACT = <<-EOF
112+ pragma solidity ^0.4.0;
107113 contract testme {
108114 uint value;
109115 function testme(uint a) {
@@ -121,6 +127,7 @@ def test_constructor
121127
122128 def test_abi_contract
123129 one_contract = <<-EOF
130+ pragma solidity ^0.4.0;
124131 contract foo {
125132 function seven() returns (int256 y) {
126133 y = 7;
@@ -132,6 +139,7 @@ def test_abi_contract
132139 EOF
133140
134141 two_contracts = one_contract + <<-EOF
142+ pragma solidity ^0.4.0;
135143 contract baz {
136144 function echo(address a) returns (address b) {
137145 b = a;
0 commit comments