File tree 1 file changed +2
-12
lines changed
1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -13,25 +13,15 @@ contract GetArtifactPathTest is DSTest {
13
13
DummyForGetArtifactPath dummy = new DummyForGetArtifactPath ();
14
14
bytes memory dummyCreationCode = type (DummyForGetArtifactPath).creationCode;
15
15
16
- string memory root = vm.projectRoot ();
17
16
string memory path = vm.getArtifactPathByCode (dummyCreationCode);
18
-
19
- string memory expectedPath =
20
- string .concat (root, "/out/default/GetArtifactPath.t.sol/DummyForGetArtifactPath.json " );
21
-
22
- assertEq (path, expectedPath);
17
+ assertTrue (vm.contains (path, "/out/default/GetArtifactPath.t.sol/DummyForGetArtifactPath.json " ));
23
18
}
24
19
25
20
function testGetArtifactPathByDeployedCode () public {
26
21
DummyForGetArtifactPath dummy = new DummyForGetArtifactPath ();
27
22
bytes memory dummyRuntimeCode = address (dummy).code;
28
23
29
- string memory root = vm.projectRoot ();
30
24
string memory path = vm.getArtifactPathByDeployedCode (dummyRuntimeCode);
31
-
32
- string memory expectedPath =
33
- string .concat (root, "/out/default/GetArtifactPath.t.sol/DummyForGetArtifactPath.json " );
34
-
35
- assertEq (path, expectedPath);
25
+ assertTrue (vm.contains (path, "/out/default/GetArtifactPath.t.sol/DummyForGetArtifactPath.json " ));
36
26
}
37
27
}
You can’t perform that action at this time.
0 commit comments