https://github.com/hirosystems/principal-to-string-tests
Tests for `principal-to-string` function
https://github.com/hirosystems/principal-to-string-tests
Last synced: 4 months ago
JSON representation
Tests for `principal-to-string` function
- Host: GitHub
- URL: https://github.com/hirosystems/principal-to-string-tests
- Owner: hirosystems
- Created: 2025-04-16T19:39:46.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-10-14T21:14:22.000Z (9 months ago)
- Last Synced: 2025-12-23T06:43:50.219Z (6 months ago)
- Language: Clarity
- Homepage:
- Size: 152 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `principal-to-string` Tests
This repo exists to test the `principal-to-string` function found in contract [`SP1E0XBN9T4B10E9QMR7XMFJPMA19D77WY3KP2QKC.self-listing-helper-v3`](SP1E0XBN9T4B10E9QMR7XMFJPMA19D77WY3KP2QKC.self-listing-helper-v3)
We intend to call this function in another contract, but need to be confident that it correctly converts a `principal` to the corresponding `string-ascii`
## Running the Tests
Clone this repo and run the following in the root directory:
```sh
npm install
npm test
```