mirror of
https://github.com/lux-amm/v4-periphery.git
synced 2026-10-30 20:54:39 +00:00
17 lines
627 B
Solidity
17 lines
627 B
Solidity
// SPDX-License-Identifier: UNLICENSED
|
|
pragma solidity ^0.8.24;
|
|
|
|
import "forge-std/Test.sol";
|
|
import {SafeCurrencyMetadata} from "../../src/libraries/SafeCurrencyMetadata.sol";
|
|
|
|
contract SafeCurrencyMetadataTest is Test {
|
|
function test_truncateSymbol_succeeds() public pure {
|
|
// 12 characters
|
|
assertEq(SafeCurrencyMetadata.truncateSymbol("123456789012"), "123456789012");
|
|
// 13 characters
|
|
assertEq(SafeCurrencyMetadata.truncateSymbol("1234567890123"), "123456789012");
|
|
// 14 characters
|
|
assertEq(SafeCurrencyMetadata.truncateSymbol("12345678901234"), "123456789012");
|
|
}
|
|
}
|