Skip to content

Commit

Permalink
build: include test utils package files
Browse files Browse the repository at this point in the history
test: change path of test utils
  • Loading branch information
andreivladbrg committed Nov 15, 2023
1 parent fd1f855 commit 49f2e73
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"files": [
"src",
"test/utils"
"CHANGELOG.md"
],
"homepage": "https://github.com/PaulRBerg/prb-math#readme",
Expand Down
4 changes: 2 additions & 2 deletions test/Base.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ pragma solidity >=0.8.19 <0.9.0;
import { StdCheats } from "@forge-std/src/StdCheats.sol";
import { PRBTest } from "@prb/test/src/PRBTest.sol";

import { PRBMathAssertions } from "../src/test/Assertions.sol";
import { PRBMathUtils } from "../src/test/Utils.sol";
import { PRBMathAssertions } from "./utils/Assertions.sol";
import { PRBMathUtils } from "./utils/Utils.sol";

/// @notice Base test contract with common logic needed by all tests.
abstract contract Base_Test is PRBTest, StdCheats, PRBMathAssertions, PRBMathUtils {
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions src/test/Utils.sol → test/utils/Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ pragma solidity >=0.8.19;

import { StdUtils } from "@forge-std/src/StdUtils.sol";

import { SD1x18 } from "../sd1x18/ValueType.sol";
import { SD59x18 } from "../sd59x18/ValueType.sol";
import { UD2x18 } from "../ud2x18/ValueType.sol";
import { UD60x18 } from "../ud60x18/ValueType.sol";
import { SD1x18 } from "../../src/sd1x18/ValueType.sol";
import { SD59x18 } from "../../src/sd59x18/ValueType.sol";
import { UD2x18 } from "../../src/ud2x18/ValueType.sol";
import { UD60x18 } from "../../src/ud60x18/ValueType.sol";

contract PRBMathUtils is StdUtils {
/*//////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 49f2e73

Please sign in to comment.