Skip to content

Commit

Permalink
ylem 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaZezulinsky committed Jan 30, 2024
1 parent 7800496 commit a9be57c
Show file tree
Hide file tree
Showing 116 changed files with 141 additions and 141 deletions.
22 changes: 11 additions & 11 deletions cli/tests/it/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ sparktest!(can_handle_direct_imports_into_src, |prj: TestProject, mut cmd: TestC
"Foo",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import {FooLib} from "src/FooLib.sol";
struct Bar {
uint8 x;
Expand All @@ -564,7 +564,7 @@ contract Foo {
"FooLib",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import {Foo, Bar} from "src/Foo.sol";
library FooLib {
function check(Bar memory b) public {}
Expand Down Expand Up @@ -595,7 +595,7 @@ sparktest!(can_execute_inspect_command, |prj: TestProject, mut cmd: TestCommand|
contract_name,
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
contract Foo {
event log_string(string);
function run() external {
Expand Down Expand Up @@ -637,7 +637,7 @@ sparktest!(
"ATest.t.sol",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "./test.sol";
contract ATest is DSTest {
function testExample() public {
Expand Down Expand Up @@ -671,7 +671,7 @@ sparktest!(can_compile_without_warnings, |prj: TestProject, mut cmd: TestCommand
.add_source(
"A",
r#"
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
contract A {
function testExample() public {}
}
Expand Down Expand Up @@ -707,7 +707,7 @@ sparktest!(can_fail_compile_with_warnings, |prj: TestProject, mut cmd: TestComma
.add_source(
"A",
r#"
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
contract A {
function testExample() public {}
}
Expand Down Expand Up @@ -779,7 +779,7 @@ sparktest!(can_build_after_failure, |prj: TestProject, mut cmd: TestCommand| {
"ATest.t.sol",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "./test.sol";
contract ATest is DSTest {
function testExample() public {
Expand All @@ -794,7 +794,7 @@ contract ATest is DSTest {
"BTest.t.sol",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "./test.sol";
contract BTest is DSTest {
function testExample() public {
Expand All @@ -812,7 +812,7 @@ contract BTest is DSTest {

let syntax_err = r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "./test.sol";
contract CTest is DSTest {
function testExample() public {
Expand Down Expand Up @@ -842,7 +842,7 @@ contract CTest is DSTest {
"CTest.t.sol",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "./test.sol";
contract CTest is DSTest {
function testExample() public {
Expand Down Expand Up @@ -1590,7 +1590,7 @@ sparktest_init!(can_build_skip_glob, |prj: TestProject, mut cmd: TestCommand| {
"Foo",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
contract TestDemo {
function test_run() external {}
}"#,
Expand Down
20 changes: 10 additions & 10 deletions cli/tests/it/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sparktest!(can_execute_script_command2, |prj: TestProject, mut cmd: TestCommand|
"Foo",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
contract Demo {
event log_string(string);
function run() external {
Expand All @@ -81,7 +81,7 @@ sparktest!(can_execute_script_command_fqn, |prj: TestProject, mut cmd: TestComma
"Foo",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
contract Demo {
event log_string(string);
function run() external {
Expand All @@ -107,7 +107,7 @@ sparktest!(can_execute_script_command_with_sig, |prj: TestProject, mut cmd: Test
"Foo",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
contract Demo {
event log_string(string);
function myFunction() external {
Expand Down Expand Up @@ -136,7 +136,7 @@ sparktest_async!(
"Foo",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "forge-std/Script.sol";
contract GasWaster {
Expand Down Expand Up @@ -198,7 +198,7 @@ sparktest_async!(
"Foo",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "forge-std/Script.sol";
contract GasWaster {
Expand Down Expand Up @@ -257,7 +257,7 @@ sparktest!(can_execute_script_command_with_args, |prj: TestProject, mut cmd: Tes
"Foo",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
contract Demo {
event log_string(string);
event log_uint(uint);
Expand Down Expand Up @@ -292,7 +292,7 @@ sparktest!(can_execute_script_command_with_returned, |prj: TestProject, mut cmd:
"Foo",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
contract Demo {
event log_string(string);
function run() external returns (uint256 result, uint8) {
Expand Down Expand Up @@ -320,7 +320,7 @@ sparktest_async!(
"DeployScript",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "forge-std/Script.sol";
contract HashChecker {
Expand Down Expand Up @@ -386,7 +386,7 @@ contract DeployScript is Script {

let run_code = r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "forge-std/Script.sol";
import { HashChecker } from "./DeployScript.sol";
Expand Down Expand Up @@ -1007,7 +1007,7 @@ sparktest_init!(can_execute_script_and_skip_contracts, |prj: TestProject, mut cm
"Foo",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
contract Demo {
event log_string(string);
function run() external returns (uint256 result, uint8) {
Expand Down
12 changes: 6 additions & 6 deletions cli/tests/it/test_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ sparktest!(suggest_when_no_tests_match, |prj: TestProject, mut cmd: TestCommand|
"TestE.t.sol",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
contract TestC {
function test1() public {
Expand Down Expand Up @@ -121,7 +121,7 @@ sparktest!(can_fuzz_array_params, |prj: TestProject, mut cmd: TestCommand| {
"ATest.t.sol",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "./test.sol";
contract ATest is DSTest {
function testArray(uint64[2] calldata values) external {
Expand All @@ -146,7 +146,7 @@ sparktest!(can_test_pre_bytecode_hash, |prj: TestProject, mut cmd: TestCommand|
r#"
// SPDX-License-Identifier: UNLICENSED
// pre bytecode hash version, was introduced in 0.6.0
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "./test.sol";
contract ATest is DSTest {
function testArray(uint64[2] calldata values) external {
Expand All @@ -170,7 +170,7 @@ sparktest!(can_test_with_match_path, |prj: TestProject, mut cmd: TestCommand| {
"ATest.t.sol",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "./test.sol";
contract ATest is DSTest {
function testArray(uint64[2] calldata values) external {
Expand All @@ -186,7 +186,7 @@ contract ATest is DSTest {
"FailTest.t.sol",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "./test.sol";
contract FailTest is DSTest {
function testNothing() external {
Expand Down Expand Up @@ -216,7 +216,7 @@ sparktest!(can_run_test_in_custom_test_folder, |prj: TestProject, mut cmd: TestC
"nested/spark-tests/MyTest.t.sol",
r#"
// SPDX-License-Identifier: UNLICENSED
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
import "../../test.sol";
contract MyTest is DSTest {
function testTrue() public {
Expand Down
2 changes: 1 addition & 1 deletion shuttle/test-data/SimpleStorage.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

contract SimpleStorage {

Expand Down
4 changes: 2 additions & 2 deletions shuttle/tests/it/traces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async fn test_parity_suicide_trace() {
prj.add_source(
"Contract",
r#"
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
contract Contract {
address payable private owner;
constructor() public {
Expand Down Expand Up @@ -99,7 +99,7 @@ async fn test_transfer_debug_trace_call() {
prj.add_source(
"Contract",
r#"
pragma solidity 1.1.0;
pragma solidity >=1.1.0;
contract Contract {
address payable private owner;
constructor() public {
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Addr.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Assume.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Bank.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Broadcast.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/ChainId.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Deal.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Derive.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Env.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Etch.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/ExpectCall.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/ExpectEmit.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/ExpectRevert.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Ffi.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Fork.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Fork2.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Fs.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/GasMetering.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/GetCode.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/GetDeployedCode.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity 1.1.0;
pragma solidity >=1.1.0;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
Loading

0 comments on commit a9be57c

Please sign in to comment.